-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.boot
More file actions
115 lines (87 loc) · 2.92 KB
/
build.boot
File metadata and controls
115 lines (87 loc) · 2.92 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
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#!/usr/bin/env boot
(def +project+ 'workflo/entitydb)
(def +version+ "0.1.9")
(set-env!
:resource-paths #{"src/main" "resources"}
:dependencies '[;; Boot setup
[adzerk/boot-cljs "2.0.0" :scope "test"]
[adzerk/boot-reload "0.5.1" :scope "test"]
[adzerk/boot-test "1.2.0" :scope "test"]
[adzerk/bootlaces "0.1.13" :scope "test"]
[boot-codox "0.10.3" :scope "test"]
[crisptrutski/boot-cljs-test "0.3.0" :scope "test"]
;; General dependencies
[org.clojure/spec.alpha "0.1.123"]
[org.clojure/test.check "0.9.0" :scope "test"]
[inflections "0.13.0"]
[org.clojure/clojure "1.9.0-alpha17"]
[org.clojure/clojurescript "1.9.671"]
;; Workflo dependencies
[workflo/macros "0.2.63"]])
(require '[adzerk.boot-cljs :refer [cljs]]
'[adzerk.boot-reload :refer [reload]]
'[adzerk.boot-test :refer [test] :rename {test test-clj}]
'[adzerk.bootlaces :refer :all]
'[boot.git :refer [last-commit]]
'[codox.boot :refer [codox]]
'[crisptrutski.boot-cljs-test :refer [test-cljs]])
(bootlaces! +version+ :dont-modify-paths? true)
(task-options!
test-cljs {:js-env :phantom
:update-fs? true
:exit? true
:optimizations :none}
push {:repo "deploy-clojars"
:ensure-branch "master"
:ensure-clean true
:ensure-tag (last-commit)
:ensure-version +version+}
pom {:project +project+
:version +version+
:description "Database for entities defined with workflo/macros"
:url "https://github.com/workfloapp/entitydb"
:scm {:url "https://github.com/workfloapp/entitydb"}
:license {"MIT License" "https://opensource.org/licenses/MIT"}})
(deftask build-dev
[]
(comp (cljs :source-map true
:optimizations :none
:compiler-options {:devcards true
:parallel-build true})))
(deftask build-production
[]
(comp (cljs :optimizations :advanced
:compiler-options {:devcards true
:parallel-build true})))
(deftask testing
[]
(merge-env! :source-paths #{"src/test"})
identity)
(deftask docs
[]
(comp (codox :name "workflo/entitydb"
:source-paths #{"src/main"}
:output-path "docs"
:metadata {:doc/format :markdown}
:themes [:default :entitydb])
(target)))
(deftask test
[]
(comp (testing)
(test-cljs)
(test-clj)))
(deftask install-local
[]
(comp (pom)
(jar)
(install)))
(deftask deploy-snapshot
[]
(comp (pom)
(jar)
(push-snapshot)))
(deftask deploy-release
[]
(comp (pom)
(jar)
(push-release)))