-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.boot
71 lines (61 loc) · 1.61 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
(def project 'thedavidmeister/cljs-i18n)
(def version "0.5.0-SNAPSHOT")
(def description "Convenience wrapper around goog.i18n for cljs")
(def github-url "https://github.com/thedavidmeister/cljs-i18n")
(set-env!
:source-paths #{"src"}
:dependencies
'[; scaffolding...
[org.clojure/clojure "1.10.2-rc2"]
[org.clojure/clojurescript "1.10.773"]
[adzerk/boot-cljs "2.1.4"]
[crisptrutski/boot-cljs-test "0.3.5-SNAPSHOT"]
[adzerk/bootlaces "0.1.13"]
; transitive deps...
[doo "0.1.8"]
; everything else...
[com.taoensso/timbre "5.1.0" :scope "test"]])
(task-options!
pom {:project project
:version version
:description description
:url github-url
:scm {:url github-url}})
(require
'[adzerk.bootlaces :refer :all]
'[crisptrutski.boot-cljs-test :refer [test-cljs]])
(bootlaces! version)
(deftask deploy-clojars
[]
(comp
(build-jar)
(push-release)))
(defn cljs-compiler-options
[opts]
(merge
{
:parallel-build true
:load-tests false}
opts))
(def test-cljs-compiler-options
(partial cljs-compiler-options
{:load-tests true
:process-shim false}))
(deftask tests-cljs
"Run all the CLJS tests"
[w watch? bool "Watches the filesystem and reruns tests when changes are made."
o optimizations OPTIMIZATIONS str "Sets the optimizations level for cljs"]
; Run the JS tests
(comp
(if watch?
(comp
(watch)
(speak :theme "woodblock"))
identity)
(test-cljs
:exit? (not watch?)
; :js-env :chrome-headless
:js-env :phantom
:optimizations (or (keyword optimizations) :none)
:cljs-opts (test-cljs-compiler-options)
:namespaces [#".*"])))