-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.boot
35 lines (32 loc) · 964 Bytes
/
build.boot
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
(set-env!
:dependencies '[[adzerk/boot-cljs "1.7.170-3"]
[adzerk/boot-reload "0.4.2"]
[hoplon/boot-hoplon "0.1.10"]
[hoplon/hoplon "6.0.0-alpha11"]
[org.clojure/clojure "1.7.0"]
[org.clojure/clojurescript "1.7.170"]
[tailrecursion/boot-jetty "0.1.0"]]
:source-paths #{"src"}
:asset-paths #{"assets"})
(require
'[adzerk.boot-cljs :refer [cljs]]
'[adzerk.boot-reload :refer [reload]]
'[hoplon.boot-hoplon :refer [hoplon prerender]]
'[tailrecursion.boot-jetty :refer [serve]])
(deftask dev
"Build binary-clock for local development."
[]
(comp
(watch)
(speak)
(hoplon)
(reload)
(cljs)
(serve :port 8000)))
(deftask prod
"Build binary-clock for production deployment."
[]
(comp
(hoplon)
(cljs :optimizations :advanced)
(prerender)))