-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.boot
More file actions
43 lines (36 loc) · 1.58 KB
/
build.boot
File metadata and controls
43 lines (36 loc) · 1.58 KB
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
(set-env!
:source-paths #{ "src/main/clj" "src/main/cljs" }
:resource-paths #{ "resources" }
:test-paths #{ "src/tests/cljs" } ;; if we do not test then test are not compiled
:dependencies '[
[org.clojure/clojure "1.6.0" :scope "provided"]
[boot/core "2.0.0-rc12" :scope "provided"]
[adzerk/boot-cljs "0.0-2760-0" :scope "compile"]
[adzerk/bootlaces "0.1.11" :scope "test"]
[adzerk/boot-test "1.0.4"]
[com.cemerick/clojurescript.test "0.3.3"]])
(require '[adzerk.bootlaces :refer :all]
'[boot-clojurescript.test.tasks :refer :all]
'[boot.core :refer :all]
'[adzerk.boot-cljs :refer :all]
)
(def +version+ "0.1.0-SNAPSHOT")
(bootlaces! +version+)
(set-env! :resource-paths #{"resources"}) ;;bootlaces have hardcoded path to src in resources. It follows common convetion rule but sometimes can brake things.
(deftask continous-testing []
(comp (watch) (cljs-tests))
)
(deftask build-local-install []
(set-env! :resource-paths #{"resources" "src/main/clj"})
(build-jar))
(task-options!
pom {:project 'voytech/boot-clojurescript.test
:version +version+
:description "Boot task to test ClojureScript namespaces using framework clojurescript.test (A maximal port of clojure.test)."
}
cljs {
;; :main "mock.sample-test"
;; :output-to "tutaruputa.js"
;;:asset-path "/"
}
cljs-tests {:namespaces #{'mock.sample-test}})