forked from online-go/online-go.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (20 loc) · 911 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
NODE_PATH:=node_modules:$(NODE_PATH)
PATH:=node_modules/.bin/:$(PATH)
dev: node_modules
NODE_PATH=$(NODE_PATH) PATH=$(PATH) supervisor -w Gulpfile.js,webpack.config.js,tsconfig.json supervisor -w Gulpfile.js -x gulp --
node_modules:
npm install yarn
npm install supervisor
NODE_PATH=$(NODE_PATH) PATH=$(PATH) yarn install
lint tslint:
NODE_PATH=$(NODE_PATH) PATH=$(PATH) tslint --type-check --project tsconfig.json
min: minjs mincss
mincss:
NODE_PATH=$(NODE_PATH) PATH=$(PATH) gulp min_styl
@echo 'gzipped ogs.min.css: ' `gzip -9 dist/ogs.min.css -c | wc -c`
minjs:
NODE_PATH=$(NODE_PATH) PATH=$(PATH) PRODUCTION=true webpack --optimize-minimize --devtool=source-map --display-modules
@echo 'gzipped ogs.min.js: ' `gzip -9 dist/ogs.min.js -c | wc -c`
@echo 'gzipped vendor.min.js: ' `gzip -9 dist/vendor.min.js -c | wc -c`
.PHONY: dev lint tslint min minjs mincss
-include Makefile.production