-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
35 lines (29 loc) · 1.44 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
# Makefile for this site
#
#
OUTSTYLES="./static/styles"
OUTSCRIPTS="./static/scripts"
LESSC="./node_modules/less/bin/lessc"
UGLIFY="./node_modules/uglify-js/bin/uglifyjs"
BOOTSTRAP_FILES=vendor/bootstrap/js/bootstrap-transition.js vendor/bootstrap/js/bootstrap-alert.js\
vendor/bootstrap/js/bootstrap-button.js vendor/bootstrap/js/bootstrap-carousel.js \
vendor/bootstrap/js/bootstrap-collapse.js vendor/bootstrap/js/bootstrap-dropdown.js \
vendor/bootstrap/js/bootstrap-modal.js vendor/bootstrap/js/bootstrap-tooltip.js \
vendor/bootstrap/js/bootstrap-popover.js vendor/bootstrap/js/bootstrap-scrollspy.js \
vendor/bootstrap/js/bootstrap-tab.js vendor/bootstrap/js/bootstrap-typeahead.js vendor/bootstrap/js/bootstrap-affix.js
# Compile assets for development
assets-compile:
mkdir -p ${OUTSTYLES} ${OUTSCRIPTS}
${LESSC} assets/styles/main.less > ${OUTSTYLES}/main.css
${LESSC} assets/styles/main-responsive.less > ${OUTSTYLES}/main-responsive.css
${UGLIFY} ${BOOTSTRAP_FILES} assets/scripts/main.js -b > ${OUTSCRIPTS}/main.js
# Compile and compresss assets for deployment
assets-compress:
mkdir -p ${OUTSTYLES} ${OUTSCRIPTS}
${LESSC} --compress assets/styles/main.less > ${OUTSTYLES}/main.css
${LESSC} --compress assets/styles/main-responsive.less > ${OUTSTYLES}/main-responsive.css
${UGLIFY} ${BOOTSTRAP_FILES} assets/scripts/main.js > ${OUTSCRIPTS}/main.js
deploy: assets-compress
appcfg.py update .
run: assets-compile
dev_appserver.py --use_sqlite .