Skip to content

Commit

Permalink
Switch to bun for almost everything.
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarron committed Jan 14, 2024
1 parent 6cba983 commit c915b83
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- run: make setup
- run: make build-site-docs
- name: Upload artifact
Expand Down
7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ test-dist-lib-node-import: build-lib-js
${NODE} script/test/dist/lib/cubing/node/import/main.js
.PHONY: test-dist-lib-bun-scramble-all-events
test-dist-lib-bun-scramble-all-events: build-lib-js
${BUN} script/test/dist/lib/cubing/node/scramble-all-events/main.js # TODO: why does this fail in `bun`?
${BUN} script/test/dist/lib/cubing/node/scramble-all-events/main.js
.PHONY: test-dist-lib-perf
test-dist-lib-perf: build-lib-js
${BUN} script/test/dist/lib/cubing/perf/*.js
Expand All @@ -178,7 +178,7 @@ test-dist-lib-build-size: build-lib-js
test-dist-sites-experiments: playwright-install build-sites
${BUN} ./script/test/dist/sites/experiments.cubing.net/main.js
.PHONY: test-dist-bin
test-dist-bin: test-dist-bin-shebang test-dist-bin-npm-exec test-dist-bin-bunx
test-dist-bin: test-dist-bin-shebang test-dist-bin-npm-exec
.PHONY: test-dist-bin-shebang
test-dist-bin-shebang: build-bin
# Note: we're not testing the output, just that these don't exit with an error.
Expand All @@ -188,9 +188,6 @@ test-dist-bin-shebang: build-bin
.PHONY: test-dist-bin-npm-exec
test-dist-bin-npm-exec: build-bin
time ${NPM} exec scramble -- 222
.PHONY: test-dist-bin-bunx
test-dist-bin-bunx: build-bin
time ${BUN} x scramble 222 # TODO: why doesn't `bun x` take `--`?
.PHONY: format
format:
${BIOME} format --write ./script ./src
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@
"test-dist-bin": "make test-dist-bin",
"test-dist-bin-shebang": "make test-dist-bin-shebang",
"test-dist-bin-npm-exec": "make test-dist-bin-npm-exec",
"test-dist-bin-bunx": "make test-dist-bin-bunx",
"format": "make format",
"setup": "make setup",
"quick-setup": "make quick-setup",
Expand Down

0 comments on commit c915b83

Please sign in to comment.