forked from whtsky/Gather
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (23 loc) · 1.04 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
all: css js
css:
sass assets/css/pbb.scss:static/css/style.css --style compressed
css-watch:
sass --watch assets/css/pbb.scss:static/css/style.css --style compressed
js: js-lib js-editor js-locale
js-lib:
uglifyjs -nc assets/js/jquery-2.0.3.min.js > static/js/lib.js
uglifyjs -nc assets/js/bootstrap.min.js >> static/js/lib.js
uglifyjs -nc assets/js/jquery.timeago.js >> static/js/lib.js
coffee -b -p assets/js/site.coffee | uglifyjs >> static/js/lib.js
coffee -p assets/js/notifier.coffee | uglifyjs >> static/js/lib.js
uglifyjs -nc assets/js/tornado_xsrf.js >> static/js/lib.js
js-editor:
uglifyjs -nc assets/js/jquery.caret.js > static/js/editor.js
uglifyjs -nc assets/js/jquery.atwho.js >> static/js/editor.js
uglifyjs -nc assets/js/jquery.elastic.js >> static/js/editor.js
coffee -p assets/js/editor.coffee | uglifyjs >> static/js/editor.js
js-locale:
rm -rf static/js/locale
mkdir static/js/locale
uglifyjs -nc assets/js/locale/en_US.js > static/js/locale/en_US.js
uglifyjs -nc assets/js/locale/zh_CN.js > static/js/locale/zh_CN.js