-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.boot
92 lines (82 loc) · 2.75 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
(set-env!
:resource-paths #{"src/clj" "src/cljs"}
:dependencies '[[org.clojure/clojure "1.9.0"]
[org.clojure/clojurescript "1.9.518" :scope "test"]
[adzerk/boot-cljs "2.0.0" :scope "test"]
[adzerk/boot-reload "0.5.1" :scope "test"]
[nightlight "RELEASE" :scope "test"]
[samestep/boot-refresh "0.1.0" :scope "test"]
[adzerk/boot-test "1.2.0" :scope "test"]
[org.clojure/core.async "0.3.443"]
[com.taoensso/sente "1.5.0-RC2"] ; <--- Sente
[http-kit "2.3.0"]
[ring "1.4.0-RC1"]
[ring/ring-defaults "0.1.5"] ; Includes `ring-anti-forgery`, etc.
[compojure "1.3.4"] ; Or routing lib of your choice
[hiccup "1.0.5"] ; Optional, just for HTML
[com.cognitect/transit-clj "0.8.275"];;; Transit deps optional; may be used to aid perf. of larger data payloads
[com.cognitect/transit-cljs "0.8.220"]
[hiccups "0.3.0"]
[cljsjs/plotly "1.30.0-0"]
[org.clojure/core.match "0.3.0-alpha4"]]
:repositories (conj (get-env :repositories)
["clojars" {:url "https://clojars.org/repo"
:username (System/getenv "CLOJARS_USER")
:password (System/getenv "CLOJARS_PASS")}]))
(require
'[adzerk.boot-cljs :refer [cljs]]
'[adzerk.boot-reload :refer [reload]]
'[nightlight.boot :refer [nightlight]]
'[samestep.boot-refresh :refer [refresh]]
'[adzerk.boot-test :refer :all]
'jutsu.web)
(def +version+ "0.1.3")
(task-options!
aot {:namespace '#{jutsu.core}}
jar {:main 'jutsu.core
:file "jutsu.jar"
:manifest {"Description" "Data visualization tool"}}
pom {:version +version+
:project 'hswick/jutsu
:description "Data visualization tool built for the web"
:url "https://github.com/hswick/jutsu"}
push {:repo "clojars"})
(try
(require 'jutsu.core)
(catch Exception e (.getMessage e)))
(deftask deploy []
(comp
(cljs :optimizations :advanced)
(pom)
(jar)
(push)))
(deftask testing [] (merge-env! :source-paths #{"test"}) identity)
(deftask night
"Start nightlight editor on localhost:4000"
[]
(comp
(wait)
(nightlight :port 4000)))
(deftask dev
"Run a restartable system for development"
[]
(comp
(watch)
(cljs)
(reload)
(refresh)
(repl
:server true
:init-ns 'jutsu.core)))
(deftask repl-client
[]
(comp
(repl
:client true)))
(deftask test-code
[]
(comp
(testing)
(wait)
(cljs)
(test)))