-
Notifications
You must be signed in to change notification settings - Fork 16
/
build.boot
53 lines (45 loc) · 1.85 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
(set-env!
:resource-paths #{"src"}
:dependencies '[[adzerk/bootlaces "0.1.13" :scope "test"]
[adzerk/boot-cljs "1.7.228-2" :scope "test"]
[adzerk/boot-test "1.1.2" :scope "test"]
[adzerk/boot-reload "0.4.13" :scope "test"]
[pandeiro/boot-http "0.7.3" :scope "test"]
[boot-codox "0.10.3" :scope "test"]
[org.clojure/clojure "1.9.0-alpha14" :scope "provided"]
[org.clojure/clojurescript "1.9.946" :scope "provided"]
[com.stuartsierra/dependency "0.2.0"]
[rum "0.10.8"]
[cljsjs/prop-types "15.6.0-0"]])
(def +version+ "0.3.1-alpha")
(def github "https://github.com/martinklepsch/derivatives")
(task-options!
pom {:project 'org.martinklepsch/derivatives
:version +version+
:description "Chains of derived values"
:url github
:scm {:url github}})
;; Example app stuff ============================================================
(require
'[adzerk.bootlaces :refer [bootlaces! build-jar push-release]]
'[adzerk.boot-cljs :refer [cljs]]
'[adzerk.boot-test :refer [test]]
'[adzerk.boot-reload :refer [reload]]
'[pandeiro.boot-http :refer [serve]]
'[codox.boot :refer [codox]])
(bootlaces! +version+)
(deftask deploy []
(comp (pom) (jar) (push :repo "clojars" :tag true)))
(deftask dev []
(set-env! :resource-paths #(conj % "example"))
(task-options! cljs {:optimizations :none :source-map true}
reload {:on-jsload 'drv-example.app/init})
(comp (serve)
(watch)
(reload)
(speak)
(cljs)))
(deftask gen-docs []
(codox :name "Derivatives"
:version +version+
:output-path "gh-pages"))