Skip to content

Commit

Permalink
[Makefile] Add a message about bun.
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarron committed Jan 29, 2025
1 parent 5929e97 commit 28edaa0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,12 @@ dev: update-dependencies
link: build
${BUN} link
.PHONY: clean
clean:
clean: clean-types
rm -rf \
dist .temp coverage ./package-lock.json \
./alg ./bluetooth ./kpuzzle ./notation ./protocol ./puzzle-geometry ./puzzles ./scramble ./search ./stream ./twisty
.PHONY: clean-types
clean-types: setup
${BUN_RUN} script/build/lib/clean-types.ts
.PHONY: reset
reset: clean
Expand Down Expand Up @@ -204,6 +206,7 @@ format: update-dependencies
setup: update-dependencies
.PHONY: update-dependencies
update-dependencies:
@command -v ${BUN} > /dev/null || { echo "\nPlease install \`bun\` to work on this project:\n\n # from npm\n npm install --global bun\n\n # macOS (Homebrew)\n brew install oven-sh/bun/bun\n\n # For other options, see: https://bun.sh/\n" && exit 1 ; }
${BUN} install --no-save # TODO: was `npm ci`
.PHONY: quick-setup
quick-setup:
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
"dev": "make dev",
"link": "make link",
"clean": "make clean",
"clean-types": "make clean-types",
"reset": "make reset",
"audit": "make audit",
"test": "make test",
Expand Down

0 comments on commit 28edaa0

Please sign in to comment.