forked from pwmarcz/minefield
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (30 loc) · 859 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
.PHONY: all
all: env node static
.PHONY: env
env:
[ -e server/env/bin/python ] || virtualenv server/env/
server/env/bin/pip install -q -r server/requirements.txt
.PHONY: node
node:
cd client && npm install
.PHONY: static
static:
cd client && node_modules/.bin/webpack
.PHONY: test
test:
server/env/bin/nosetests server/*.py -v
.PHONY: test_js
test_js:
cd client && node_modules/.bin/mocha js/test.js --compilers 'js:babel-register' --ui tdd
.PHONY: watch_test_js
watch_test_js:
cd client && node_modules/.bin/mocha js/test.js --compilers 'js:babel-register' --ui tdd --watch
.PHONY: watch
watch:
cd client && ./node_modules/.bin/webpack --watch
.PHONY: serve
serve:
server/env/bin/python server/server.py --debug --host 0.0.0.0 --port 8080
.PHONY: serve_prod
serve_prod:
server/env/bin/python server/server.py --host 127.0.0.1 --port 8080