mirror of
https://github.com/yldio/copilot.git
synced 2024-11-28 14:10:04 +02:00
make: refactor make files
This commit is contained in:
parent
e5c226fa9c
commit
c92ebf30f2
@ -1,7 +1,5 @@
|
|||||||
|
include ../tools/node-install.mk
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test:
|
test:
|
||||||
./node_modules/.bin/ava
|
./node_modules/.bin/ava
|
||||||
|
|
||||||
.PHONY: install
|
|
||||||
install:
|
|
||||||
yarn
|
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
|
include ../tools/node-install.mk
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test:
|
test:
|
||||||
./node_modules/.bin/ava
|
./node_modules/.bin/ava
|
||||||
|
|
||||||
.PHONY: install
|
|
||||||
install:
|
|
||||||
yarn
|
|
||||||
|
@ -1,11 +1,9 @@
|
|||||||
|
include ../tools/node-install.mk
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test:
|
test:
|
||||||
npm run test
|
npm run test
|
||||||
|
|
||||||
.PHONY: install
|
|
||||||
install:
|
|
||||||
yarn
|
|
||||||
|
|
||||||
.PHONY: compile
|
.PHONY: compile
|
||||||
compile: install
|
compile: install
|
||||||
NODE_ENV=production ./node_modules/.bin/webpack --config webpack/index.js
|
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
|
.PHONY: test
|
||||||
test:
|
test:
|
||||||
yarn run test
|
yarn run test
|
||||||
|
|
||||||
.PHONY: install
|
|
||||||
install:
|
|
||||||
yarn
|
|
||||||
|
Loading…
Reference in New Issue
Block a user