-
Notifications
You must be signed in to change notification settings - Fork 40
/
Makefile
28 lines (23 loc) · 1.17 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
help:
@echo ""
@echo "Available actions:"
@echo ""
@echo " * minify: to uglify/minify all the sources"
@echo " * minify_js: to minify the JS sources"
@echo " * minify_css: to minify the CSS sources"
@echo ""
minify_js:
uglifyjs -nc --output vendor/js/codemirror.min.js vendor/js/codemirror.js
uglifyjs -nc --output vendor/js/editor.min.js vendor/js/editor.js
uglifyjs -nc --output vendor/js/intro.min.js vendor/js/intro.js
uglifyjs -nc --output vendor/js/marked.min.js vendor/js/marked.js
uglifyjs -nc --output static/js/load.min.js static/js/load.js
minify_css:
uglifycss --ugly-comments vendor/css/grid.css > vendor/css/grid.min.css
uglifycss --ugly-comments vendor/css/meteo/stylesheet.css > vendor/css/meteo/stylesheet.min.css
uglifycss --ugly-comments vendor/css/fontello/fontello.css > vendor/css/fontello/fontello.min.css
uglifycss --ugly-comments vendor/css/glyphicons.css > vendor/css/glyphicons.min.css
uglifycss --ugly-comments vendor/css/editor.css > vendor/css/editor.min.css
uglifycss --ugly-comments static/css/style.css > static/css/style.min.css
uglifycss --ugly-comments static/css/preview.css > static/css/preview.min.css
minify: minify_js minify_css