-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathbuild.boot
50 lines (42 loc) · 1.51 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
(set-env!
:resource-paths #{"src"}
:source-paths #{"test"}
:dependencies '[[org.clojure/clojure "1.8.0" :scope "provided"]
[adzerk/boot-test "1.1.0" :scope "test"]
[pandeiro/boot-http "0.7.0" :scope "test"]
[org.clojure/clojurescript "1.7.228" :scope "test"]
[ns-tracker "0.3.1" :scope "test"]])
(require '[adzerk.boot-test]
'[adzerk.boot-cljs :refer [cljs]]
'[pandeiro.boot-http :refer [serve]])
(def +version+ "2.1.5")
(task-options!
pom {:project 'adzerk/boot-cljs
:version +version+
:description "Boot task to compile ClojureScript applications."
:url "https://github.com/adzerk/boot-cljs"
:scm {:url "https://github.com/adzerk/boot-cljs"}
:license {"EPL" "http://www.eclipse.org/legal/epl-v10.html"}})
(ns-unmap *ns* 'test)
(deftask test
[O optimizations LEVEL kw "Compiler optimization level."
j junit-output-to JUNIT str "Test report destination."]
(comp (serve)
(cljs :optimizations (or optimizations :whitespace))
(adzerk.boot-test/test
:namespaces #{'adzerk.boot-cljs-test 'adzerk.boot-cljs.util-test}
:junit-output-to junit-output-to)))
(deftask build []
(comp
(pom)
(jar)
(install)))
(deftask dev []
(comp
(watch)
(build)
(repl :server true)))
(deftask deploy []
(comp
(build)
(push :repo "clojars" :gpg-sign (not (.endsWith +version+ "-SNAPSHOT")))))