-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.boot
47 lines (39 loc) · 1.34 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
#!/usr/bin/env boot
#tailrecursion.boot.core/version "2.5.1"
(set-env!
:project 'hoplon-tops
:version "0.1.0-SNAPSHOT"
:dependencies '[[tailrecursion/boot.task "2.2.4"]
[org.clojure/clojurescript "0.0-2311"]
[tailrecursion/hoplon "5.10.23"]
[io.hoplon.vendor/twitter.bootstrap.default "3.2.0-0"]
[io.hoplon/twitter.bootstrap "0.2.0"]]
:out-path "resources/public"
:src-paths #{"src/hl" "src/cljs" "src/clj"})
;; Static resources (css, images, etc.):
(add-sync! (get-env :out-path) #{"assets"})
(require
'[tailrecursion.hoplon.boot :refer :all]
'[tailrecursion.castra.task :as c]
'[clojure.java.shell :refer [sh]])
(deftask test-profile
[]
(set-env!
:dependencies '[[com.cemerick/double-check "0.5.7" :scope "test"]
[im.chit/purnam.test "0.4.3" :scope "test"]
[prismatic/dommy "0.1.3" :scope "test"]]
:src-paths #{"test/cljs"})
identity)
(deftask dev
"Build hoplon-tops for development."
[]
(comp (watch) (hoplon {:prerender false})
(c/castra-dev-server 'hoplon-tops.api)))
(deftask test
"Build hoplon-tops for development."
[]
(comp (test-profile) (watch) (hoplon {:prerender false})))
(deftask prod
"Build hoplon-tops for production."
[]
(hoplon {:optimizations :advanced}))