-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.boot
39 lines (33 loc) · 1.45 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
(set-env!
:resource-paths #{"src"}
:source-paths #{"tst"}
:dependencies '[[org.clojure/clojure "1.10.0" :scope "provided"]
[boot/core "2.6.0" :scope "provided"]
[adzerk/bootlaces "0.1.13" :scope "test"]
[adzerk/boot-test "1.1.1" :scope "test"]
[clj-http "3.1.0" :scope "test"]
[ring/ring-mock "0.3.0" :scope "test"]]
:repositories [["clojars" "https://clojars.org/repo/"]
["maven-central" "https://repo1.maven.org/maven2/"]])
(require
'[adzerk.bootlaces :refer :all]
'[adzerk.boot-test :refer [test]]
'[tailrecursion.boot-static :refer [serve]])
(def +version+ "0.2.0")
(bootlaces! +version+)
(replace-task!
[t test] (fn [& xs] (comp (build-jar) (serve) (apply t xs))))
(deftask build []
(comp (test) (build-jar)))
(deftask develop []
(comp (watch) (speak) (test)))
(task-options!
pom {:project 'tailrecursion/boot-static
:version +version+
:description "a boot task for serving static resources"
:url "https://github.com/tailrecursion/boot-static"
:scm {:url "https://github.com/tailrecursion/boot-static"}
:license {"EPL" "http://www.eclipse.org/legal/epl-v10.html"}}
serve {:port 3006}
test {:namespaces #{'tailrecursion.boot-static-test}}
web {:serve 'tailrecursion.boot-static-app/serve})