blob: 78025e754ebb840320d58b90fc1a46a743f0d24b (
plain)
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
|
#!/usr/bin/env boot
#tailrecursion.boot.core/version "2.5.0"
(set-env!
:project 'gnunet-web
:version "0.1.0-SNAPSHOT"
:dependencies '[[net.clojure/monads "1.0.2"]
[org.clojure/core.async "0.1.303.0-886421-alpha"]
[tailrecursion/boot.task "2.2.1"]
[tailrecursion/hoplon "5.10.22"]]
:out-path "resources/public"
:src-paths #{"src"})
;; Static resources (css, images, etc.):
(add-sync! (get-env :out-path) #{"assets"})
(require
'[tailrecursion.hoplon.boot :refer :all]
'[tailrecursion.boot.task.ring :refer [dev-server]])
(deftask development
"Build gnunet-web for development."
[]
(comp
(watch)
(hoplon {:prerender false :pretty-print true})
(dev-server)))
(deftask production
"Build gnunet-web for production."
[]
(hoplon {:optimizations :advanced}))
|