-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.boot
43 lines (36 loc) · 1.15 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
(set-env!
:source-paths #{"src/cljs" "src/cljc"}
:resource-paths #{"resources"}
:dependencies '[[adzerk/boot-cljs "1.7.48-6" :scope "test"]
[adzerk/boot-cljs-repl "0.2.0" :scope "test"]
[adzerk/boot-reload "0.4.1" :scope "test"]
[pandeiro/boot-http "0.6.3" :scope "test"]
[org.clojure/clojurescript "1.7.122"]
[reagent "0.5.0"]])
(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]])
(deftask build []
(comp (speak)
(cljs)
))
(deftask run []
(comp (serve)
(watch)
(cljs-repl)
(reload)
(build)))
(deftask production []
(task-options! cljs {:optimizations :advanced})
identity)
(deftask development []
(task-options! cljs {:optimizations :none :source-map true}
reload {:on-jsload 'skinner-web.app/init})
identity)
(deftask dev
"Simple alias to run application in development mode"
[]
(comp (development)
(run)))