-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.boot
71 lines (66 loc) · 3.03 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
(task-options!
pom {:project 'sig-gis/mapcha
:version "1.0.0-SNAPSHOT"
:description "SIG's Image Analysis Crowdsourcing Platform"
:url "http://mapcha.sig-gis.com"}
repl {:eval '(set! *warn-on-reflection* true)})
(set-env!
:source-paths #{"src/clj" "src/cljs" "test/clj" "test/cljs"}
:resource-paths #{"resources"}
:dependencies '[[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.8.51"]
[ring "1.4.0"]
[com.cemerick/friend "0.2.1"
:exclusions [commons-codec]]
[net.cgrand/moustache "1.2.0-alpha2"
:exclusions [org.clojure/clojure ring/ring-core]]
[hiccup "1.0.5"]
[garden "1.3.2"]
[org.clojure/java.jdbc "0.5.0"]
[org.postgresql/postgresql "9.4.1208.jre7"]
[yesql "0.5.2"]
[com.draines/postal "1.11.4"]
[org.clojure/data.csv "0.1.3"]
[org.clojars.magomimmo/shoreleave-remote-ring "0.3.2"]
[org.clojars.magomimmo/shoreleave-remote "0.3.1"]
[javax.servlet/servlet-api "2.5"]
[reagent "0.6.0"]
[cljsjs/openlayers "3.15.1"]
[adzerk/boot-reload "0.4.13" :scope "test"]
[adzerk/boot-cljs "1.7.228-1" :scope "test"]
[adzerk/boot-cljs-repl "0.3.0" :scope "test"]
[pandeiro/boot-http "0.7.3" :scope "test"]
[crisptrutski/boot-cljs-test "0.2.1" :scope "test"]
[com.cemerick/piggieback "0.2.1" :scope "test"]
[weasel "0.7.0" :scope "test"]
[org.clojure/tools.nrepl "0.2.12" :scope "test"]])
(require
'[adzerk.boot-reload :refer [reload]]
'[adzerk.boot-cljs :refer [cljs]]
'[adzerk.boot-cljs-repl :refer [cljs-repl start-repl]]
'[pandeiro.boot-http :refer [serve]]
'[crisptrutski.boot-cljs-test :refer [test-cljs]])
(deftask auto-test []
(comp (watch)
(speak)
(test-cljs)))
(deftask dev []
(comp (serve :port 8080
:init 'mapcha.server/set-development-mode!
:handler 'mapcha.server/secure-app
:reload true)
(watch)
(cljs-repl)
(reload)
(cljs :optimizations :none
:source-map true)
(target :dir #{"target/"})))
(deftask site []
(comp (serve :httpkit true
:port 8080
:init 'mapcha.server/set-production-mode!
:handler 'mapcha.server/secure-app)
(cljs :optimizations :advanced
:source-map true)
(target :dir #{"target/"})
(wait)))