-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.boot
49 lines (39 loc) · 1.56 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
(set-env!
:source-paths #{"src/cljs"}
:resource-paths #{"html"}
:dependencies '[[org.clojure/clojure "1.9.0"]
[org.clojure/clojurescript "1.9.946"]
[org.clojure/core.async "0.4.474"]
;; the cljs task to compile cljs
[adzerk/boot-cljs "2.1.4"]
;; the serve task to serve target/ folder
[pandeiro/boot-http "0.8.3"]
[org.clojure/tools.nrepl "0.2.13"] ;; required by boot-http
;; the reload task to reload the browser
[adzerk/boot-reload "0.5.2"]
;; the cljs-repl task to start a repl
[adzerk/boot-cljs-repl "0.3.3"]
[com.cemerick/piggieback "0.2.1"] ;; required by cljs-repl
[weasel "0.7.0"] ;; required by cljs-repl
;; for spec generators
[org.clojure/test.check "0.9.0"]
;; for improved chrome dev tools
[powerlaces/boot-cljs-devtools "0.2.0"]
[binaryage/devtools "0.9.9"]
[binaryage/dirac "1.2.25"]
])
(require '[adzerk.boot-cljs :refer [cljs]]
'[pandeiro.boot-http :refer [serve]]
'[adzerk.boot-reload :refer [reload]]
'[adzerk.boot-cljs-repl :refer [cljs-repl start-repl]]
'[powerlaces.boot-cljs-devtools :refer [cljs-devtools dirac]])
(deftask dev []
(comp
(serve :dir "target")
(watch)
(cljs-devtools)
(dirac)
(reload)
(cljs-repl)
(cljs)
(target)))