-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.boot
98 lines (90 loc) · 3.09 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
(set-env!
:source-paths #{"src"}
:dependencies '[[adzerk/boot-cljs "2.1.5" :scope "test"]
[adzerk/boot-reload "0.6.0" :scope "test"]
[org.clojure/test.check "0.9.0" :scope "test"]
[crisptrutski/boot-cljs-test "0.3.5-SNAPSHOT" :scope "test"]
[nightlight "2.3.2" :scope "test"]
[proto-repl "0.3.1" :scope "test"]
[binaryage/devtools "0.9.10" :scope "test"]
#_[binaryage/dirac "RELEASE" :scope "test"]
[powerlaces/boot-cljs-devtools "0.2.0" :scope "test"]
; project deps
[org.clojure/clojure "1.9.0"]
[org.clojure/clojurescript "1.10.439"]
[org.clojure/core.async "0.4.474"]
[org.clojure/data.json "0.2.6"]
[org.clojure/tools.cli "0.4.1"]
[javax.xml.bind/jaxb-api "2.3.0"]
[http-kit "2.2.0"]
[ring "1.6.2"]
[reagent "0.8.1"]
[cljs-react-material-ui "0.2.50"]
[com.cemerick/url "0.1.1"]
[compojure "1.6.1"]
[com.rpl/specter "1.1.2"]
[com.taoensso/sente "1.13.1"]
[org.clojure/java.jdbc "0.7.8"]])
(task-options!
pom {:project 'columnsforsteem
:version "1.0.0-SNAPSHOT"
:description "Multi column client for Steem"}
aot {:namespace '#{columnsforsteem.server}}
jar {:main 'columnsforsteem.server}
sift {:include #{#"\.jar$"}})
(require
'[clojure.spec.test.alpha :refer [instrument]]
'[nightlight.core :as nightlight]
'[adzerk.boot-cljs :refer [cljs]]
'[adzerk.boot-reload :refer [reload]]
'[crisptrutski.boot-cljs-test :refer [test-cljs]]
'[powerlaces.boot-cljs-devtools :refer [cljs-devtools]]
'columnsforsteem.server)
(deftask testing []
(merge-env! :source-paths #{"test"})
identity)
(deftask test-once []
(set-env! :resource-paths #{"resources" "test-resources"})
(comp
(testing)
(test-cljs :js-env :phantom)))
(deftask auto-test []
(set-env! :resource-paths #{"resources" "test-resources"})
(comp
(testing)
(watch)
(test-cljs :js-env :phantom)))
(deftask dev []
(set-env! :resource-paths #{"resources" "dev-resources"})
(comp
(with-pass-thru _
(instrument)
(let [server (columnsforsteem.server/-main)
port (-> server meta :local-port)
url (str "http://localhost:" port "/index.html")]
(println "Started app on" url)
(nightlight/start {:port 4000 :url url})))
(watch)
(reload :asset-path "columnsforsteem")
(cljs-devtools)
#_(dirac)
(cljs
:source-map true
:optimizations :none
:compiler-options {:asset-path "main.out"})
(target)))
(deftask build []
(set-env! :resource-paths #{"resources" "prod-resources"})
(comp
(cljs :optimizations :advanced)
(aot)
(pom)
(uber)
(jar)
(sift)
(target)))
(deftask build-simple []
(set-env! :resource-paths #{"resources" "prod-resources"})
(comp
(cljs :optimizations :advanced)
(target)))