forked from braidchat/braid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.clj
169 lines (153 loc) · 8.38 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
(defproject braid "0.0.1"
:source-paths ["src"]
:dependencies [;;server
[org.clojure/clojure "1.9.0"]
[javax.servlet/servlet-api "2.5"]
[commons-codec "1.10"]
[commons-validator "1.5.1"]
[http-kit "2.3.0"]
[ring/ring-core "1.6.3"]
[ring/ring-defaults "0.3.1" :exclusions [ring/ring-core]]
[fogus/ring-edn "0.3.0"]
[ring-cors "0.1.12"]
[compojure "1.5.1"]
[environ "1.0.3"]
[com.taoensso/timbre "4.7.4" :exclusions [org.clojure/tools.reader com.taoensso/truss com.taoensso/encore]]
[crypto-password "0.2.0"]
[clj-time "0.12.0"]
[instaparse "1.4.2"]
[com.taoensso/carmine "2.13.1" :exclusions [com.taoensso/encore]]
[image-resizer "0.1.9"]
[clojurewerkz/quartzite "2.0.0"]
[inliner "0.1.0"]
[cljstache "2.0.1"]
[mount "0.1.10"]
[com.fasterxml.jackson.core/jackson-core "2.8.7"]
[com.cognitect/transit-clj "0.8.300" :exclusions [com.fasterxml.jackson.core/jackson-core]]
[ring-transit "0.1.6" :exclusions [com.fasterxml.jackson.core/jackson-core]]
[clavatar "0.3.0"]
[clout "2.1.2"]
;;client
[org.clojure/clojurescript "1.10.238"]
[org.clojars.leanpixel/cljs-utils "0.4.2"]
[cljs-ajax "0.5.8"]
[secretary "1.2.3"]
[venantius/accountant "0.2.4"]
[com.lucasbradstreet/cljs-uuid-utils "1.0.2"]
[com.andrewmcveigh/cljs-time "0.4.0"]
[clj-fuzzy "0.3.2"]
[reagent "0.8.1"]
[re-frame "0.10.5" :exclusions [org.clojure/clojurescript]]
[ring-middleware-format "0.7.2"]
[cljsjs/husl "6.0.1-0"]
[cljsjs/highlight "9.6.0-0"]
[com.cognitect/transit-cljs "0.8.239"]
[hickory "0.7.0" :exclusions [org.clojure/clojurescript]]
[org.clojure/core.memoize "0.5.9"]
[lein-doo "0.1.7"]
[cljsjs/resize-observer-polyfill "1.4.2-0"]
;;shared
[org.clojure/tools.reader "1.3.0-alpha3"]
[org.clojure/core.async "0.4.474" :exclusions [org.clojure/tools.reader]]
[metosin/spec-tools "0.7.0"]
[org.clojure/test.check "0.9.0"] ; b/c spec-tools breaks without it
[com.taoensso/truss "1.3.6"]
[com.taoensso/sente "1.11.0" :exclusions [org.clojure/tools.reader taoensso.timbre com.taoensso/truss]]
;;mobile
[garden "1.3.2"]]
:main braid.core
:plugins [[lein-environ "1.0.0"]
[lein-cljsbuild "1.1.6" :exclusions [org.clojure/clojure]]
[lein-doo "0.1.7"]]
:clean-targets ^{:protect false}
["resources/public/js"]
:figwheel {:server-port 3559}
:cljsbuild {:test-commands {"once" ["lein" "doo" "phantom" "desktop-test" "once"]
"auto" ["lein" "doo" "phantom" "desktop-test" "auto"]}
:builds
[{:id "desktop-dev"
:figwheel {:on-jsload "braid.core.client.desktop.core/reload"}
:source-paths ["src/braid"
"src/retouch"]
:compiler {:main braid.core.client.desktop.core
:preloads [day8.re-frame-10x.preload]
:closure-defines {"re_frame.trace.trace_enabled_QMARK_" true}
:asset-path "/js/dev/desktop/"
:output-to "resources/public/js/dev/desktop.js"
:output-dir "resources/public/js/dev/desktop/"
:optimizations :none
:verbose false}}
{:id "desktop-test"
:source-paths ["src/braid"
"test/braid/test/client"]
:compiler {:main braid.test.client.runners.doo
:optimizations :none
:output-to "resources/public/js/desktop/tests/out/all-tests.js"
:output-dir "resources/public/js/desktop/tests/out"}}
{:id "mobile-dev"
:figwheel {:on-jsload "braid.core.client.mobile.core/reload"}
:source-paths ["src/braid"
"src/retouch"]
:compiler {:main braid.core.client.mobile.core
:asset-path "/js/dev/mobile/"
:output-to "resources/public/js/dev/mobile.js"
:output-dir "resources/public/js/dev/mobile/"
:verbose true}}
{:id "gateway-dev"
:figwheel {:on-jsload "braid.core.client.gateway.core/reload"}
:source-paths ["src/braid"]
:compiler {:main braid.core.client.gateway.core
:asset-path "/js/dev/gateway/"
:output-to "resources/public/js/dev/gateway.js"
:output-dir "resources/public/js/dev/gateway"
:verbose true}}
{:id "release"
:source-paths ["src/braid"
"src/retouch"]
:compiler {:asset-path "/js/prod/"
:output-dir "resources/public/js/prod/out"
:optimizations :advanced
:pretty-print false
:elide-asserts true
:closure-defines {goog.DEBUG false}
:modules {:cljs-base
{:output-to "resources/public/js/prod/base.js"}
:desktop
{:output-to "resources/public/js/prod/desktop.js"
:entries #{"braid.core.client.desktop.core"}}
:gateway
{:output-to "resources/public/js/prod/gateway.js"
:entries #{"braid.core.client.gateway.core"}}
:mobile
{:output-to "resources/public/js/prod/mobile.js"
:entries #{"braid.core.client.mobile.core"}}}
:verbose true}}]}
:min-lein-version "2.5.0"
:profiles {:dev {:source-paths ["src" "dev-src"]
:global-vars {*assert* true}
:repl-options {:timeout 120000
:init-ns braid.dev.core}
:dependencies [[com.datomic/datomic-free "0.9.5201"
:exclusions [joda-time
com.google.guava/guava
org.slf4j/slf4j-api]]
[figwheel-sidecar "0.5.16"
:exclusions
[org.clojure/google-closure-library-third-party
com.google.javascript/closure-compiler
org.clojure/tools.nrepl]]
[com.bhauman/rebel-readline "0.1.2"]
[day8.re-frame/re-frame-10x "0.3.3"]]}
:prod {:global-vars {*assert* false}
:dependencies [[com.datomic/datomic-pro "0.9.5201"
:exclusions [joda-time
com.google.guava/guava]]
[org.postgresql/postgresql "9.3-1103-jdbc4"]]}
:cider [:dev {:dependencies [[com.cemerick/piggieback "0.2.1"]]
:repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}
:plugins [[cider/cider-nrepl "0.15.0-SNAPSHOT"]
[refactor-nrepl "2.3.0-SNAPSHOT"]]}]
:test [:dev]
:uberjar [:prod
{:aot [braid.core]
:prep-tasks ["compile" ["cljsbuild" "once" "release"]]}]})