-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.boot
134 lines (111 loc) · 4.74 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
(def project 'app)
(def version "0.1.1")
(set-env!
:repositories #(conj % '["bintray" {:url "https://dl.bintray.com/nitram509/jbrotli"}]))
(set-env!
:resource-paths #{"resources"}
:source-paths #{"src/clj" "src/cljs"}
:dependencies '[[adzerk/boot-cljs "2.1.5" :scope "test"]
[adzerk/boot-reload "0.6.0" :scope "test"]
[adzerk/boot-cljs-repl "0.4.0" :scope "test"]
[nha/boot-uglify "0.0.6"]
[org.clojure/clojure "1.10.1"]
[org.clojure/clojurescript "1.10.764"]
[org.clojure/java.jdbc "0.7.3"]
[org.clojure/tools.cli "0.3.5"]
[org.clojure/tools.logging "0.4.0"]
[clj-commons/fs "1.5.0"]
[environ "1.1.0"]
[boot-environ "1.1.0"]
[org.danielsz/system "0.4.2-SNAPSHOT"]
[org.clojure/tools.nrepl "0.2.13"]
[org.clojure/core.async "0.3.443"]
[async-interop "0.1.4"]
[com.taoensso/sente "1.11.0"]
[com.taoensso/timbre "4.10.0"]
[com.taoensso/encore "2.91.1"]
[brave/zente "0.1.3-SNAPSHOT"]
[brave/swords "0.1.3-SNAPSHOT"]
[org.immutant/immutant "2.1.9"]
;;; TODO Choose (uncomment) a supported web server -----------------------
[http-kit "2.3.0"] ; Default
;; [org.immutant/web "2.1.4"]
;; [nginx-clojure/nginx-clojure-embed "0.4.4"] ; Needs v0.4.2+
;; [aleph "0.4.1"]
;; -----------------------------------------------------------------------
[ring "1.8.1"]
[ring/ring-defaults "0.3.2"] ; Includes `ring-anti-forgery`, etc.
[ring-middleware-format "0.7.4"]
[compojure "1.6.1"] ; Or routing lib of your choice
[hiccup "1.0.5"] ; Optional, just for HTML
[com.cognitect/transit-clj "1.0.324"]
[com.cognitect/transit-cljs "0.8.264"]
[metosin/ring-http-response "0.9.0"]
[reagent "0.8.1"]
[reagi "0.10.1"]
[funcool/bide "1.6.0"]
[com.cemerick/piggieback "0.2.1" :scope "test"]
[binaryage/devtools "0.9.4" :scope "test"]
[weasel "0.7.0" :scope "test"]
[cljsjs/react "16.13.1-0"]
[cljsjs/react-dom "16.13.1-0"]
[cljsjs/create-react-class "15.6.3-1"]
[alandipert/storage-atom "2.0.1"]
[cljs-http "0.1.46"]
[differ "0.3.2"]
;[paren-soup "2.14.3"]
;[fipp "0.6.18"]
[com.brunobonacci/clj-sophia "0.5.2"]
;[cljsjs/three "0.1.01-1"]
[zcaudate/hara.time "2.8.7"]
[im.chit/hara.io.scheduler "2.5.10"]])
(task-options!
aot {:namespace #{'app.core}}
pom {:project project
:version version
:description ""
:url ""
:scm {:url ""}
:license {"MIT" ""}}
jar {:main 'app.core
:file "harmony-portal.jar"})
(require '[system.repl :refer [init start stop go reset]]
'[app.system :refer [dev-system]]
'[environ.boot :refer [environ]]
'[nha.boot-uglify :refer [uglify]]
'[system.boot :refer [system run]])
(require '[adzerk.boot-cljs :refer :all]
'[adzerk.boot-cljs-repl :refer :all]
'[adzerk.boot-reload :refer :all])
(deftask dev
[]
(comp
(environ :env {:http-port "7000"})
(watch :verbose true)
(system :sys #'dev-system
:auto true
:files ["system.clj" "server.clj"])
; (reload :asset-path "public")
; (cljs-repl)
(cljs :source-map true :optimizations :none)
(repl :server true)))
(deftask cljsbuild
"Build the project locally as a JAR."
[d dir PATH #{str} "the set of directories to write to (target)."]
(let [dir (if (seq dir) dir #{"target"})]
(comp
(cljs :optimizations :simple)
(target :dir dir))))
(deftask build
"Build the project locally as a JAR."
[d dir PATH #{str} "the set of directories to write to (target)."]
(let [dir (if (seq dir) dir #{"target"})]
(comp
(cljs :optimizations :simple)
;(uglify)
(environ :env {:http-port "8000"})
(aot)
(pom)
(uber)
(jar)
(target :dir dir))))