-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.boot
51 lines (48 loc) · 1.62 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
(set-env!
:source-paths #{"src"}
:resource-paths #{"resources"}
:dependencies '[
[org.clojure/clojure "1.7.0"]
[org.clojure/clojurescript "1.7.132"]
; [adzerk/boot-cljs "0.0-3308-0" :scope "test"]
[adzerk/boot-cljs "1.7.48-3" :scope "test"]
[adzerk/boot-cljs-repl "0.1.10-SNAPSHOT" :scope "test"]
[adzerk/boot-reload "0.3.2" :scope "test"]
[pandeiro/boot-http "0.6.3" :scope "test"]
]
)
(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 dev []
(set-env! :source-paths #{"src"})
(comp (serve :dir "target/")
(watch)
(speak)
(reload :on-jsload 'd3-test.core/reload)
(cljs-repl)
(cljs
:source-map true
:optimizations :none
:main "d3-test.core/init"
:verbose true
:compiler-options {
:warnings {:single-segment-namespace false}
:foreign-libs [{:file "resources/js/d3.js"
:provides ["d3"]
:module-type :commonjs}]})))
(deftask build []
(set-env! :source-paths #{"src"})
(comp (cljs
:optimizations :advanced
:verbose true
:pretty-print true
:main "d3-test.core/init"
:compiler-options {
:warnings {:single-segment-namespace false}
:foreign-libs [{:file "resources/js/d3.js"
:provides ["d3"]
:module-type :commonjs}]})))