-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.boot
72 lines (59 loc) · 2.66 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
(def +project+ 'org.danielsz.examples/sente)
(def +version+ "1.11.0")
(set-env!
:resource-paths #{"resources"}
:source-paths #{"src/clj" "src/cljs"}
:dependencies '[[adzerk/boot-cljs "2.0.0" :scope "test"]
[adzerk/boot-reload "0.5.1" :scope "test"]
;;; Use lein-project if your editor/IDE needs a project.clj file
;; [onetom/boot-lein-generate "0.1.3" :scope "test"]
[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.9.671"]
[org.clojure/tools.nrepl "0.2.13"]
[org.clojure/core.async "0.3.443"]
[com.taoensso/sente "1.11.0"] ; <--- Sente
[com.taoensso/timbre "4.10.0"]
[com.taoensso/encore "2.91.1"]
;;; TODO Choose (uncomment) a supported web server -----------------------
[http-kit "2.2.0"] ; Default
;; [org.immutant/web "2.1.4"]
;; [nginx-clojure/nginx-clojure-embed "0.4.4"] ; Needs v0.4.2+
;; [aleph "0.4.1"]
;; -----------------------------------------------------------------------
[ring "1.6.2"]
[ring/ring-defaults "0.3.0"] ; Includes `ring-anti-forgery`, etc.
[compojure "1.6.0"] ; Or routing lib of your choice
[hiccup "1.0.5"] ; Optional, just for HTML
;;; Transit deps optional; may be used to aid perf. of larger data payloads
;;; (see reference example for details):
[com.cognitect/transit-clj "0.8.300"]
[com.cognitect/transit-cljs "0.8.239"]])
(task-options!
pom {:project +project+
:version +version+
:description "Boot port of the Sente reference web-app example project"
:url "/~https://github.com/danielsz/sente-boot"
:scm {:url "/~https://github.com/danielsz/sente-boot"}
:license {"EPL" "http://www.eclipse.org/legal/epl-v10.html"}})
(require
'[adzerk.boot-cljs :refer [cljs]]
'[adzerk.boot-reload :refer [reload]]
;;; Use lein-project if your editor/IDE needs a project.clj file
;; '[boot.lein :as lein]
'[example.server])
;;; Use lein-project if your editor/IDE needs a project.clj file
;; (lein/generate)
(deftask dev
"Run a restartable system in the Repl"
[]
(comp
(watch)
(cljs :source-map true :optimizations :whitespace)
(reload)
(repl
:server true
:init-ns 'example.server)))
(deftask repl-client
[]
(comp
(repl :client true)))