-
Notifications
You must be signed in to change notification settings - Fork 12
/
build.boot
55 lines (48 loc) · 1.62 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
(set-env!
:source-paths #{"src" "test"}
:resource-paths #{"html"}
:dependencies '[[adzerk/boot-cljs "0.0-2814-3" :scope "test"]
[adzerk/boot-test "1.0.4" :scope "test"]
[deraen/boot-cljx "0.2.2"]
[com.cemerick/piggieback "0.1.5"]
[adzerk/boot-reload "0.2.6" :scope "test"]
[adzerk/bootlaces "0.1.11" :scope "test"]
[org.clojure/clojurescript "0.0-3123" :scope "test"]])
(require
'[adzerk.bootlaces :refer [bootlaces! build-jar push-release]]
'[adzerk.boot-cljs :refer [cljs]]
'[deraen.boot-cljx :refer [cljx]]
'[adzerk.boot-reload :refer [reload]]
'[adzerk.boot-test :refer [test]])
(def +version+ "1.3.0")
(bootlaces! +version+)
(task-options!
pom {:project 'synthread
:version +version+
:description "Syntax Threading library"
:url "http://github.com/lonocloud/synthread/"
:scm {:url "https://github.com/lonocloud/synthread"}
:license {"EPL" "http://www.eclipse.org/legal/epl-v10.html"}})
(deftask run-cljs-test
"Run cljs tests"
[]
(fn middleware [next-handler]
(fn handler [fileset]
(sh "node" "target/script.js")
(-> fileset next-handler))))
(deftask dev []
(comp (watch)
(speak)
(reload)
(cljx)
(test)
(cljs :main 'test-runner
:output-to "script.js"
:asset-path "target/out"
:target :nodejs
:optimizations :none)
(run-cljs-test)))
(deftask release []
(comp (cljx)
(build-jar)
(push-release)))