-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.boot
51 lines (43 loc) · 1.48 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
(set-env!
:source-paths #{"example-src/cljs" "example-src/html"}
:resource-paths #{"src"}
:dependencies '[[org.clojure/clojure "1.10.3" :scope "provided"]
[org.clojure/clojurescript "1.10.764" :scope "provided"]
[adzerk/boot-cljs "2.1.5" :scope "test"]
[adzerk/boot-reload "0.6.1" :scope "test"]
[metosin/boot-alt-http "0.2.0" :scope "test"]
;; No need to depend on Reagent, it is presumed
;; the application provides it.
[reagent "1.1.1" :scope "provided"]
[cljsjs/react "17.0.2-0" :scope "test"]
[cljsjs/react-dom "17.0.2-0" :scope "test"]
[frankiesardo/linked "1.3.0" :scope "test"]])
(require
'[adzerk.boot-cljs :refer [cljs]]
'[adzerk.boot-reload :refer [reload]]
'[metosin.boot-alt-http :refer [serve]])
(def +version+ "1.0.3")
(task-options!
pom {:project 'metosin/reagent-dev-tools
:version +version+
:description "Reagent dev tools"
:license {"Eclipse Public License" "http://www.eclipse.org/legal/epl-v10.html"}}
cljs {:source-map true})
(deftask dev []
(comp
(watch)
(reload :on-jsload 'example.main/restart!
:asset-path "public")
(repl :server true)
(cljs)
(serve :port 3002)))
(deftask build []
(comp
(pom)
(jar)
(install)))
(deftask deploy []
(comp
(build)
(push :gpg-sign false
:repo "clojars")))