-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
40 lines (27 loc) · 943 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
PATH := $(PWD)/node_modules/.bin:$(PATH)
.PHONY: bundle clean relink disc
bundle: build/bundle.min.js build/splash.min.js
clean:
rm -rf build/*.js build/*.json data/*.md
disc:
browserify src/index.js src/splash.js --full-paths | uglifyjs -c | discify --open
start: relink build/examples.json build/contributors.json
wzrd src/index.js:build/bundle.min.js \
src/splash.js:build/splash.min.js
relink:
district stackgl splash-grid
postinstall: relink
scoped-bulk stackgl npm install
npm dedupe
build/:
mkdir build
build/bundle.min.js: build/ build/examples.json build/contributors.json
browserify src/index.js | uglifyjs -c > build/bundle.min.js
build/splash.min.js: build/ build/examples.json
browserify src/splash.js | uglifyjs -c > build/splash.min.js
build/examples.json: build/ data/examples.md
node data/regenerate
build/contributors.json: build/
node data/contributors
data/examples.md: build/
node data/sync