-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.boot
34 lines (31 loc) · 971 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
(set-env!
:dependencies '[[adzerk/boot-cljs "{{boot-cljs-v}}"]
[adzerk/boot-reload "{{boot-reload-v}}"]
[hoplon/hoplon "{{hoplon-v}}"]
[org.clojure/clojure "{{clojure-v}}"]
[org.clojure/clojurescript "{{clojurescript-v}}"]
[tailrecursion/boot-jetty "{{boot-jetty-v}}"]]
: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 {{raw-name}} for local development."
[]
(comp
(watch)
(speak)
(hoplon)
(reload)
(cljs)
(serve :port 8000)))
(deftask prod
"Build {{raw-name}} for production deployment."
[]
(comp
(hoplon)
(cljs :optimizations :advanced)
(target :dir #{"target"})))