-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.boot
35 lines (32 loc) · 980 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-repl "0.1.9"]
[adzerk/boot-reload "0.2.6"]
[pandeiro/boot-http "0.6.2"]
[adzerk/boot-cljs "0.0-2814-0"]
[tailrecursion/boot-hoplon "0.1.0-SNAPSHOT"]
[tailrecursion/hoplon "6.0.0-SNAPSHOT"]]
:source-paths #{"src"}
:resource-paths #{"assets"})
(require
'[adzerk.boot-cljs :refer [cljs]]
'[adzerk.boot-reload :refer [reload]]
'[pandeiro.boot-http :refer [serve]]
'[adzerk.boot-cljs-repl :refer [cljs-repl start-repl]]
'[tailrecursion.boot-hoplon :refer [haml hoplon prerender html2cljs]])
(deftask dev
"Build demo for local development."
[]
(comp
(watch)
(speak)
(haml)
(hoplon)
(reload)
(cljs)))
(deftask prod
"Build demo for production deployment."
[]
(comp
(hoplon)
(cljs :optimizations :advanced)
(prerender)))