-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.boot
74 lines (61 loc) · 2.9 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
(def +project+ 'org.danielsz.examples/sente-system)
(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"]
[environ "1.1.0"]
[boot-environ "1.1.0"]
[org.danielsz/system "0.4.0"]
[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 "Port of the Sente reference web-app example project to Boot + System"
:url "https://github.com/danielsz/sente-system"
:scm {:url "https://github.com/danielsz/sente-system"}
: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]
'[system.repl :refer [init start stop go reset]]
'[example.systems :refer [dev-system]]
'[environ.boot :refer [environ]]
'[system.boot :refer [system run]])
;;; Use lein-project if your editor/IDE needs a project.clj file
(lein/generate)
(deftask dev
"Run a restartable system in the Repl"
[]
(comp
(environ :env {:http-port "3019"})
(watch)
(system :sys #'dev-system :auto true :files ["server.clj"])
(reload)
(cljs :source-map true)
(repl :server true)))