make: refactor make files
This commit is contained in:
parent
e5c226fa9c
commit
c92ebf30f2
@ -1,7 +1,5 @@
|
||||
include ../tools/node-install.mk
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
./node_modules/.bin/ava
|
||||
|
||||
.PHONY: install
|
||||
install:
|
||||
yarn
|
||||
|
@ -1,7 +1,5 @@
|
||||
include ../tools/node-install.mk
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
./node_modules/.bin/ava
|
||||
|
||||
.PHONY: install
|
||||
install:
|
||||
yarn
|
||||
|
@ -1,11 +1,9 @@
|
||||
include ../tools/node-install.mk
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
npm run test
|
||||
|
||||
.PHONY: install
|
||||
install:
|
||||
yarn
|
||||
|
||||
.PHONY: compile
|
||||
compile: install
|
||||
NODE_ENV=production ./node_modules/.bin/webpack --config webpack/index.js
|
||||
|
7
tools/node-install.mk
Normal file
7
tools/node-install.mk
Normal file
@ -0,0 +1,7 @@
|
||||
.PHONY: install
|
||||
install:
|
||||
yarn install
|
||||
|
||||
.PHONY: install-production
|
||||
install-production:
|
||||
yarn install --production --pure-lockfile
|
@ -1,7 +1,5 @@
|
||||
include ../tools/node-install.mk
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
yarn run test
|
||||
|
||||
.PHONY: install
|
||||
install:
|
||||
yarn
|
||||
|
Loading…
Reference in New Issue
Block a user