forked from drakezhard/tic-tac-toe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.boot
54 lines (43 loc) · 1.46 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
(set-env!
:source-paths #{"src/cljs"}
: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.170"]
[org.omcljs/om "1.0.0-alpha31-SNAPSHOT"]
[prismatic/om-tools "0.3.12"]
[racehub/om-bootstrap "0.6.1"]])
(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]])
(require 'boot.repl)
(swap! boot.repl/*default-dependencies*
concat '[[cider/cider-nrepl "0.11.0-SNAPSHOT"]])
(swap! boot.repl/*default-middleware*
conj 'cider.nrepl/cider-middleware)
(deftask build []
(comp (speak)
(cljs)
))
(deftask run []
(comp (serve)
(watch)
(cljs-repl)
(reload)
(build)))
(deftask production []
(task-options! cljs {:optimizations :whitespace})
identity)
(deftask development []
(task-options! cljs {:optimizations :none :source-map true}
reload {:on-jsload 'tic-tac-toe.app/init})
identity)
(deftask dev
"Simple alias to run application in development mode"
[]
(comp (development)
(run)))