-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.boot
55 lines (48 loc) · 1.63 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
48
49
50
51
52
53
54
55
(set-env!
:source-paths #{"src/cljs"}
:resource-paths #{"resources"}
:dependencies '[[adzerk/boot-cljs "1.7.228-2" :scope "test"]
[adzerk/boot-reload "0.4.13" :scope "test"]
[pandeiro/boot-http "0.7.3" :scope "test"]
[org.clojure/clojure "1.9.0-alpha14"]
[org.clojure/clojurescript "1.9.293"]
[org.clojure/core.async "0.2.395"]
[datascript "0.15.4"]
[posh "0.5.4"]
[reagent "0.6.0"]
[devcards "0.2.2"]
[cljsjs/d3 "4.3.0-0"]
[cljsjs/firebase "3.5.3-0"]
[cljsjs/material "1.2.1-0"]
[cljsjs/google-platformjs-extern "1.0.0-0"]])
(require
'[adzerk.boot-cljs :refer [cljs]]
'[adzerk.boot-reload :refer [reload]]
'[pandeiro.boot-http :refer [serve]])
(deftask build []
(comp ;;(speak)
(cljs)))
(deftask run []
(comp (serve)
(watch)
(reload)
(build)))
(deftask production []
(task-options! cljs {:optimizations :advanced
:source-map true})
identity)
(deftask development []
(task-options! cljs {:optimizations :none
:source-map true}
reload {:on-jsload 'voterx.main/render})
identity)
(deftask dev
"Simple alias to run application in development mode"
[]
(comp (development)
(run)))
(deftask public []
(comp (production)
(build)
(sift :invert true :include #{#"js/devcards\.out" #"js/app\.out" #"\S+\.cljs\.edn"})
(target :dir #{"public"})))