chore(dev): update makefile

This commit is contained in:
xfy
2024-07-26 13:13:48 +08:00
parent 920c6289fa
commit 7d2d495db1
3 changed files with 17 additions and 1 deletions

15
Makefile Normal file
View File

@ -0,0 +1,15 @@
PACKAGE_MANAGER = pnpm
NVM = nvm
all: build
nvm:
. ${NVM_DIR}/nvm.sh && nvm use && $(CMD)
deps:
make nvm CMD="$(PACKAGE_MANAGER) i"
build:
make nvm CMD="$(PACKAGE_MANAGER) i && $(PACKAGE_MANAGER) build"
.PHONY: all