-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
51 lines (30 loc) · 1.15 KB
/
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
MODS=' react react/addons async immutable'
X_MODS=`echo ${MODS} | sed -e 's/ / -x /g'`
R_MODS=`echo ${MODS} | sed -e 's/ / -r /g'`
OPTS=${X_MODS} -d -t [ babelify --experimental ]
inject: inject-js inject-css
inject-watch:
watchify -v ${OPTS} -x dexie src/inject/inject.js -o build/inject.js
inject-js:
browserify ${OPTS} -x dexie src/inject/inject.js -o build/inject.js
inject-css:
lessc src/inject/run.less > build/inject.css
zip:
rsync icon* build dashboard manifest.json -r build-chrome
zip build-chrome.zip -r ./build-chrome
# dashboard: dashboard-js dashboard-css
# dashboard-watch:
# watchify -v ${OPTS} -x dexie src/dashboard/run.js -o build/dashboard.js
# dashboard-js:
# browserify ${OPTS} -x dexie src/dashboard/run.js -o build/dashboard.js
dashboard-css:
lessc src/dashboard/run.less > build/dashboard.css
background:
browserify ${OPTS} src/background/run.js -o build/background.js
background-watch:
watchify -v ${OPTS} src/background/run.js -o build/background.js
lib-test:
browserify -r dexie -o build/lib-test.js
lib:
browserify ${R_MODS} -r dexie -o build/lib.js
.PHONY: lib inject lib-test dashboard dashboard-js dashboard-watch