-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.boot
More file actions
executable file
·41 lines (37 loc) · 1.34 KB
/
build.boot
File metadata and controls
executable file
·41 lines (37 loc) · 1.34 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
(set-env! :dependencies '[[adzerk/boot-cljs "1.7.48-SNAPSHOT"]
[adzerk/boot-reload "0.3.1"]
[org.clojure/clojurescript "1.7.48"]
[org.clojure/clojure "1.7.0"]
#_[tailrecursion/boot-hoplon "0.1.0"]
[tailrecursion/hoplon "6.0.0-alpha7"]]
:source-paths #{"src"}
:resource-paths #{"assets"})
(require
'[adzerk.boot-cljs :refer [cljs]]
'[adzerk.boot-reload :refer [reload]]
#_'[tailrecursion.boot-hoplon :refer [hoplon prerender haml]])
(deftask after-checkout
[s sym SYM sym "The sym"
a arg ARG [edn] "The arg"]
(let [next (delay (require (symbol (namespace sym)))
((apply @(resolve sym) arg) identity))]
(with-pre-wrap [fileset]
(@next fileset))))
(deftask dev
"Build hoplon-minimal for local development."
[]
(comp
#_(watch)
(speak)
(after-checkout :sym 'tailrecursion.boot-hoplon/haml)
(after-checkout :sym 'tailrecursion.boot-hoplon/hoplon)
(reload)
(cljs)))
(deftask prod
"Build hoplon-minimal for production deployment."
[]
(comp
(after-checkout :sym 'tailrecursion.boot-hoplon/haml)
(after-checkout :sym 'tailrecursion.boot-hoplon/hoplon)
(cljs :optimizations :advanced)
(after-checkout :sym 'tailrecursion.boot-hoplon/prerender)))