forked from oakes/full-stack-boot-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.boot
executable file
·50 lines (45 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/clj" "src/cljc" "src/cljs"}
:resource-paths #{"resources"}
:dependencies '[[adzerk/boot-cljs "2.1.4" :scope "test"]
[adzerk/boot-reload "0.5.2" :scope "test"]
[adzerk/boot-cljs-repl "0.3.3" :scope "test"]
; used by boot-cljs-repl
[com.cemerick/piggieback "0.2.1" :scope "test"]
[weasel "0.7.0" :scope "test"]
[org.clojure/tools.nrepl "0.2.12" :scope "test"]
; project deps
[org.clojure/clojure "1.9.0"]
[org.clojure/clojurescript "1.9.946" :scope "test"]
[reagent "0.7.0" :scope "test"]
[ring "1.5.1"]])
(task-options!
pom {:project 'full-stack-boot-example
:version "1.0.0-SNAPSHOT"
:description "FIXME: write description"}
aot {:namespace '#{full-stack-boot-example.core}}
jar {:main 'full-stack-boot-example.core}
sift {:include #{#"\.jar$"}})
(require
'[adzerk.boot-cljs :refer [cljs]]
'[adzerk.boot-reload :refer [reload]]
'[adzerk.boot-cljs-repl :refer [start-repl cljs-repl]]
'full-stack-boot-example.core)
(deftask run []
(comp
(with-pass-thru _
(full-stack-boot-example.core/dev-main))
(watch)
(reload :asset-path "public")
(cljs-repl :nrepl-opts {:port 9009})
(cljs :source-map true :optimizations :none :compiler-options {:asset-path "main.out"})
(target)))
(deftask build []
(comp
(cljs :optimizations :advanced)
(aot)
(pom)
(uber)
(jar)
(sift)
(target)))