1
0
mirror of https://github.com/yldio/copilot.git synced 2024-12-29 05:10:05 +02:00

make: refactor make files

This commit is contained in:
Tom Gallacher 2016-10-24 14:14:11 +01:00
parent e5c226fa9c
commit c92ebf30f2
5 changed files with 15 additions and 16 deletions

View File

@ -1,7 +1,5 @@
include ../tools/node-install.mk
.PHONY: test
test:
./node_modules/.bin/ava
.PHONY: install
install:
yarn

View File

@ -1,7 +1,5 @@
include ../tools/node-install.mk
.PHONY: test
test:
./node_modules/.bin/ava
.PHONY: install
install:
yarn

View File

@ -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
View File

@ -0,0 +1,7 @@
.PHONY: install
install:
yarn install
.PHONY: install-production
install-production:
yarn install --production --pure-lockfile

View File

@ -1,7 +1,5 @@
include ../tools/node-install.mk
.PHONY: test
test:
yarn run test
.PHONY: install
install:
yarn