-
Notifications
You must be signed in to change notification settings - Fork 39
/
build.boot
47 lines (40 loc) · 1.44 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
(set-env!
:source-paths {{{source-paths}}}
:resource-paths #{"resources"}
:dependencies '[[adzerk/boot-cljs "1.7.228-2" :scope "test"]
[adzerk/boot-cljs-repl "0.3.3" :scope "test"]
[adzerk/boot-reload "0.4.13" :scope "test"]
[pandeiro/boot-http "0.7.6" :scope "test"]
[com.cemerick/piggieback "0.2.1" :scope "test"]
[org.clojure/tools.nrepl "0.2.12" :scope "test"]
[weasel "0.7.0" :scope "test"]
[org.clojure/clojurescript "1.9.293"]{{{deps}}}])
(require
'[adzerk.boot-cljs :refer [cljs]]
'[adzerk.boot-cljs-repl :refer [cljs-repl start-repl]]
'[adzerk.boot-reload :refer [reload]]
'[pandeiro.boot-http :refer [serve]]{{{requires}}})
(deftask build []
(comp (speak)
{{{pre-build-steps}}}
(cljs)
{{{build-steps}}}))
(deftask run []
(comp (serve)
(watch)
(cljs-repl)
(reload)
(build)))
(deftask production []
(task-options! cljs {:optimizations :advanced}{{{production-task-opts}}})
identity)
(deftask development []
(task-options! cljs {:optimizations :none}
reload {:on-jsload '{{name}}.app/init}{{{development-task-opts}}})
identity)
(deftask dev
"Simple alias to run application in development mode"
[]
(comp (development)
(run)))
{{{tasks}}}