forked from mitsuhiko/timesched
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (32 loc) · 1.02 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
all: compress
compress: lib/generated/data.js
uglifyjs \
lib/jquery.js \
lib/jquery-ui.js \
lib/angular.js \
lib/bootstrap/js/bootstrap.js \
lib/sortable.js \
lib/slider.js \
lib/ui-bootstrap.js \
lib/moment.js \
lib/moment-timezone.js \
lib/typeahead.js \
-c > lib/generated/compressed.js
uglifyjs \
lib/generated/data.js \
-c > lib/generated/data-compressed.js
download-timezone-info:
wget https://raw.github.com/moment/moment-timezone/develop/moment-timezone.json -O data/timezones.json
wget http://unicode.org/repos/cldr/trunk/common/supplemental/windowsZones.xml -O data/windows_zones.xml
wget http://unicode.org/repos/cldr/trunk/common/supplemental/supplementalData.xml -O data/supplemental_data.xml
lib/generated/data.js: data/*.json
python data/convert.py
upload:
rm -rf _deploy
mkdir _deploy
cp timesched.html _deploy/index.html
cp -R lib _deploy
cp -R static _deploy
rsync -a _deploy/ pocoo.org:/var/www/timesched.pocoo.org/
rm -rf _deploy
.PHONY: compress download-timezone-info upload