-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.boot
78 lines (71 loc) · 2.48 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
72
73
74
75
76
77
78
(def project 'weathergen)
(set-env!
:dependencies '[[org.clojure/clojure "1.9.0-alpha14"]
[org.clojure/clojurescript "1.9.293"]
[adzerk/boot-cljs "1.7.228-2"]
[adzerk/boot-reload "0.4.13"]
;;[hoplon/javelin "3.9.0"]
[hoplon/hoplon "6.0.0-alpha17"]
[org.clojure/core.async "0.2.395"
:exclusions [org.clojure/tools.reader]]
[tailrecursion/boot-jetty "0.1.3"]
;; [org.clojure/tools.nrepl "0.2.12" :scope "test"]
[cljsjs/jquery-ui "1.11.4-0"]
[org.clojure/data.csv "0.1.3"]
;; TODO: Update to later version
[com.cognitect/transit-cljs "0.8.239"]
[com.taoensso/timbre "4.7.4"]
;;[secretary "1.2.3"]
;;[funcool/cuerdas "2.0.0"]
;;[com.cemerick/url "0.1.1"]
[cljsjs/filesaverjs "1.3.3-0"]
;; Had to download as the cljsjs one is pretty far out of date
;;[cljsjs/jszip "2.5.0-0"]
[cljsjs/pako "0.2.7-0"]
[cljsjs/tinycolor "1.3.0-0"]
[garden "1.3.2"]
[funcool/octet "1.0.1"]
[clojure-complete "0.2.4" :scope "test"]]
:source-paths #{"src"}
:asset-paths #{"assets"}
:repl-server-port 5559
:repl-server-name (str project))
(require
'[adzerk.boot-cljs :refer [cljs]]
#_'[adzerk.boot-cljs-repl :refer [cljs-repl start-repl]]
'[adzerk.boot-reload :refer [reload]]
'[hoplon.boot-hoplon :refer [hoplon prerender]]
'[tailrecursion.boot-jetty :refer [serve]]
'complete.core
'[octet.core :as buf]
'[clojure.repl :refer :all])
(deftask dev
"Build weathertest for local development."
[]
(comp
(watch)
(speak)
(hoplon)
;; Doesn't work with web workers
;; Tried this fix from Alan, but it's throwing an exception in the
;; global scope code in forecast.html. Which is weird because I
;; don't even have that page open.
#_(reload :ids #{"index.html"}
:only-by-re [#"^((?!worker).)*$"])
(cljs)
(serve :port 8006)))
#_(deftask dev-repl
[]
(comp
(watch)
(speak)
(cljs-repl)
(cljs)))
(deftask prod
"Build weathertest for production deployment."
[]
(comp
(hoplon)
(cljs :optimizations :advanced
:compiler-options {:externs ["externs.js"]})
(target :dir #{"target"})))