-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
52 lines (35 loc) · 1002 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
41
42
43
44
45
46
47
48
49
50
51
52
PATH := node_modules/.bin:$(PATH)
.PHONY: test hint build-dev less clean setup webpack-dev watch server client
all: setup less hint test
full-install: clean setup less
npm install
test:
npm test
less:
lessc assets/less/index.less > public/css/index.css
hint:
npm run link
clean:
rm -rf public/
setup:
mkdir -p public/css
webpack-dev:
webpack --debug --progress --colors --config ./webpack.config.dev.js
watch:
nodemon -e js,jsx,less,md -w ./client -w ./server -w ./lib -x make webpack-dev
watch-tests:
nodemon -e js,jsx,less -w ./lib -w ./app -w ./tests -x npm test
server: clean setup less index.html
NODE_ENV=development npm run setupdb
NODE_ENV=development node server.js
client:
webpack-dev-server --config ./webpack.config.dev.js
index.html:
cp ./assets/index.html ./public/index.html
setupdb:
npm run setupdb
prod: clean setup less index.html setupdb
webpack --colors --debug --progress --config ./webpack.config.prod.js
docker:
mkdir ./tmp
docker-compose up