-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.clj
69 lines (64 loc) · 3.16 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
(defproject rgstr "0.1.0-SNAPSHOT"
:description "Application registration service"
:url "http://github.com/zelr0x/rgstr"
:min-lein-version "2.0.0"
:javac-options ["-source" "1.8"]
:jvm-opts ["-server"]
:source-paths ["src/clj" "src/cljs"]
:resource-paths ["resources"]
:target-path "target/%s/"
:test-paths ["test/clj" "test/cljs"]
:clean-targets ^{:protect false} [:target-path
[:cljsbuild :builds :app :compiler :output-dir]
[:cljsbuild :builds :app :compiler :output-to]]
:dependencies [[org.clojure/clojure "1.10.0"]
[org.clojure/clojurescript "1.10.844"]
[compojure "1.6.1"]
[ring "1.9.2"]
[ring/ring-defaults "0.3.2"]
[ring/ring-json "0.5.1"]
[metosin/ring-http-response "0.9.2"]
[reagent "1.0.0"]
[re-frame "1.2.0"]
[cljs-ajax "0.8.3"]
[com.datomic/datomic-free "0.9.5697"
:exclusions [com.google.guava/guava]] ;; Datomic pulls old guava, cljs compilation fails
;; with NoSuchMethodError because compiler requires newer guava.
[tick "0.4.31-alpha"]
[reagent-forms "0.5.44"]]
:plugins [[lein-ring "0.12.5"]
[lein-cljsbuild "1.1.8"]]
:main rgstr.core
:ring {:handler rgstr.handler/app :port 8080 :init rgstr.core/init}
:cljsbuild {:builds {:app {:source-paths ["src/cljs"]
:compiler
{:output-to "resources/public/js/rgstr.js"
:output-dir "resources/public/js/out"
:asset-path "js/out"
:main "rgstr.core"
:pretty-print true}}}}
:figwheel {:css-dirs ["resources/public/css"]}
:profiles
{:dev {:dependencies [[javax.servlet/servlet-api "2.5"]
[ring/ring-mock "0.3.2"]
[day8.re-frame/re-frame-10x "1.0.2"]
[cheshire "5.10.0"]]
:plugins [[lein-figwheel "0.5.20"]]
:cljsbuild {:builds
{:app
{:figwheel {:on-jsload "rgstr.core/clear-cache-and-render!"}
:compiler {:closure-defines {"re_frame.trace.trace_enabled_QMARK_" true}
:preloads [day8.re-frame-10x.preload]}}}}}
:uberjar {:omit-source true
:uberjar-name "testapp.jar" ;; jar name is a task requirement
:prep-tasks ["clean" "compile" ["cljsbuild" "once"]]
:aot :all
:hooks [leiningen.cljsbuild]
:cljsbuild {:app {:jar true
:builds
[{:source-paths ["src/cljs"]
:compiler
{:optimizations :advanced
:pretty-print false
:closure-warnings {:externs-validation :off
:non-standard-jsdoc :off}}}]}}}})