[FIX] Add npm, yarn executable
This commit is contained in:
parent
6ef8175b5a
commit
2d441f9f90
9
Makefile
9
Makefile
@ -15,16 +15,11 @@ build:
|
||||
install.dep:
|
||||
ifeq ($(shell command -v yarn),)
|
||||
@echo "Installing yarn..."
|
||||
|
||||
$(eval npm := $(shell command -v npm))
|
||||
$(npm) install -g yarn
|
||||
npm install -g yarn
|
||||
endif
|
||||
|
||||
$(eval yarn := $(shell command -v yarn))
|
||||
|
||||
install: install.dep
|
||||
$(yarn) \
|
||||
--cwd $(BASEDIR)
|
||||
yarn --cwd $(BASEDIR)
|
||||
|
||||
test:
|
||||
NODE_ENV=test \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user