forked from orcatechteam/react-neuropsych-trails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
23 lines (22 loc) · 915 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
mkdir := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
all: build
publish: build
npm publish
watch: test
$(mkdir)node_modules/.bin/webpack --config $(mkdir)webpack.config.js --progress --colors -w
build: test
$(mkdir)node_modules/.bin/webpack --config $(mkdir)webpack.config.js --progress --colors
serve:
$(mkdir)node_modules/.bin/live-server --port=8081 --host=0.0.0.0 --no-browser $(mkdir)dist
serve_create:
$(mkdir)node_modules/.bin/live-server --port=8081 --host=0.0.0.0 --no-browser $(mkdir)dist/create
serve_test:
$(mkdir)node_modules/.bin/live-server --port=8081 --host=0.0.0.0 --no-browser $(mkdir)dist/test
test: lint
#find $(mkdir)src -name '*_test.js' | xargs $(mkdir)node_modules/.bin/mocha --require $(mkdir)babel-polyfill.js --reporter spec
lint: clean
$(mkdir)node_modules/.bin/eslint $(mkdir)src --fix
clean:
mkdir -p $(mkdir)dist
rm -f $(mkdir)dist/create/*.js
rm -f $(mkdir)dist/*.js