-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
29 lines (22 loc) · 943 Bytes
/
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
default: build
setup:
bower install
build: elm.js
elm.js: src/Main.elm src/JsonDateDecode.elm src/Native/JsonDateDecode.js
elm make src/Main.elm --yes --output=elm.js
DISTDIR = pages
dist:
-@mkdir $(DISTDIR)
vulcanize index.html -o $(DISTDIR)/index.html
cp elm.js $(DISTDIR)
# copy over dependencies that vulcanize misses
rsync -R bower_components/moment/min/moment.min.js $(DISTDIR)
rsync -R bower_components/moment/min/moment-with-locales.min.js $(DISTDIR)
rsync -R bower_components/web-animations-js/web-animations-next-lite.min.js $(DISTDIR)
rsync -R bower_components/webcomponentsjs/webcomponents-lite.min.js $(DISTDIR)
rsync -R bower_components/web-animations-js/web-animations-next-lite.min.js.map $(DISTDIR)
before-dist:
git clone -b gh-pages [email protected]:fredcy/elm-polymer-calendar.git $(DISTDIR)
cd $(DISTDIR) && git rm -rf .
after-dist:
cd $(DISTDIR) && git add . && git commit -m 'rebuild pages' && git push