-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathproject.clj
123 lines (98 loc) · 4.76 KB
/
project.clj
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
(defproject wacnet "2.1.8"
:description "Webserver to browse a BACnet network"
:url "https://hvac.io"
:license {:name "GNU General Public License V3"
:url "http://www.gnu.org/licenses/gpl-3.0.html"}
;; WARNING
;; compiling with java 9 causes the webserver to hang when started on java 8
:dependencies [[org.clojure/clojure "1.10.1"]
;; BACnet
[bacure "1.1.10"]
[io.hvac.vigilia/vigilia-logger "1.2.1"]
;; webserver stuff
[bidi "2.1.6"] ; routing
[aleph "0.4.6"] ; server
[aleph-middleware "0.2.0"]
[yada "1.2.16"]
[trptcolin/versioneer "0.2.0"]
;; error logs
[com.taoensso/timbre "5.1.0"]
[com.fzakaria/slf4j-timbre "0.3.20"]
;; systemTray
[com.dorkbox/SystemTray "3.17"]
;; nREPL
[nrepl "1.0.0"]
[cider/cider-nrepl "0.27.4"]
;; cljs
[org.clojure/clojurescript "1.10.748"]
[org.clojure/core.async "1.1.587"]
[org.clojure/tools.reader "1.3.2"]
[cljsjs/resize-observer-polyfill "1.4.2-0"]
[reagent "0.8.1"] ;; [reagent "0.8.0-alpha2"] ;; doesn't work with clojure 1.9 on java 9
[org.clojars.frozenlock/reagent-modals "0.2.8"]
[org.clojars.frozenlock/reagent-keybindings "1.0.2"]
[alandipert/storage-atom "2.0.1"]
[cljs-ajax "0.8.0"]
[re-com "2.6.0"]
[com.andrewmcveigh/cljs-time "0.5.2"]
[cljsjs/fixed-data-table-2 "0.8.23-0"
:exclusions [cljsjs/react]]]
:plugins [[lein-environ "1.1.0"]
[lein-ancient "0.6.15"]
[lein-cljsbuild "1.1.7"]
[org.clojars.rasom/lein-externs "0.1.7"]]
:manifest {"SplashScreen-Image" "public/img/splash.png"}
:min-lein-version "2.5.0"
:main wacnet.server
:clean-targets ^{:protect false} [:target-path
[:cljsbuild :builds :app :compiler :output-dir]
[:cljsbuild :builds :app :compiler :output-to]]
:cljsbuild
{:builds {:min
{:source-paths ["src/cljs" "src/cljc" "env/prod/cljs"]
:compiler
{:output-to "target/cljsbuild/public/js/app.js"
:output-dir "target/cljsbuild/public/js"
:source-map "target/cljsbuild/public/js/app.js.map"
:optimizations :advanced
:pretty-print false
:externs ["externs.js"]}}
:app
{:source-paths ["src/cljs" "src/cljc" "env/dev/cljs"]
:figwheel {:on-jsload "wacnet.core/init!"}
:compiler
{:main "wacnet.dev"
:asset-path "/js/out"
:output-to "target/cljsbuild/public/js/app.js"
:output-dir "target/cljsbuild/public/js/out"
:source-map true
:optimizations :none
:pretty-print true}}}}
:resource-paths ["resources" "target/cljsbuild"]
:profiles {:dev {;:repl-options {:init-ns wacnet.repl}
:dependencies [[ring/ring-mock "0.4.0"]
[ring/ring-devel "1.8.0"]
[figwheel-sidecar "0.5.20"]
[nrepl "0.8.0"]
[cider/piggieback "0.5.1"]]
:source-paths ["env/dev/clj"]
:plugins [[lein-figwheel "0.5.20"]
[cider/cider-nrepl "0.27.4"]]
:figwheel {:http-server-root "public"
:readline false
:server-port 3449
:nrepl-port 7002
:nrepl-middleware ["cider.piggieback/wrap-cljs-repl"
"cider.nrepl/cider-middleware"]
:css-dirs ["resources/public/css"]
:ring-handler wacnet.handler/app}
:env {:dev true}
:cljsbuild {:builds {:app {:source-paths ["env/dev/cljs"]
:compiler {:main "wacnet.dev"
:source-map true}}}}}
:uberjar {:source-paths ["env/prod/clj"]
:prep-tasks ["compile" ["cljsbuild" "once" "min"]]
:env {:production true}
:aot :all
:omit-source true}}
:source-paths ["src/clj" "src/cljs" "src/cljc"])