forked from chrisharrington/react-todo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
32 lines (25 loc) · 666 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
.PHONY: build clean start stop list package
clean:
rm -rf bower_components
rm -rf node_modules
rm -rf public
rm -rf dist
build: clean
npm install
./node_modules/bower/bin/bower install
./node_modules/brunch/bin/brunch build
production: clean
npm install
./node_modules/bower/bin/bower install --production
./node_modules/brunch/bin/brunch build --production
start:
./node_modules/brunch/bin/brunch watch --server
stop:
./node_modules/pm2/bin/pm2 stop pm2-config.json
./node_modules/pm2/bin/pm2 delete pm2-config.json
./node_modules/pm2/bin/pm2 kill
list:
./node_modules/pm2/bin/pm2 list
package:
mkdir dist
tar -czvf dist/public.tar.gz public