-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathproject.clj
75 lines (75 loc) · 3.84 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
(defproject smallworld "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name ""
:url ""}
:clean-targets ^{:protect false} [:target-path "out" "resources/public/js"]
:min-lein-version "2.5.3"
:repl-options {:init-ns dev.repl
:timeout 380000}
:dependencies [[org.clojure/clojure "1.12.0"]
[org.clojure/clojurescript "1.10.520"]
[reagent "0.9.0-rc1"]
[compojure "1.6.2"]
[twttr "3.2.3"]
[cheshire "5.10.1"]
[oauth-clj "0.1.16"]
[org.xerial/sqlite-jdbc "3.34.0"]
[metosin/reitit "0.5.18"]
[hiccup "2.0.0-RC2"]
[enlive "1.1.6"]
[cljsjs/mapbox "0.46.0-0"]
[ring/ring-jetty-adapter "1.9.5"]
[ring/ring-ssl "0.3.0"]
[ring/ring-core "1.11.0"]
[ring/ring-defaults "0.4.0"]
[yesql "0.5.3"]
[factual/timely "0.0.3"]
[ring-cors "0.1.13"]
[markdown-clj "1.11.7"]
[org.clojure/data.json "2.4.0"]
[org.clojure/core.memoize "1.0.257"]
[clj-fuzzy "0.4.1"]
[buddy/buddy-sign "3.5.351"]
[prismatic/schema "1.2.0"]
[clojure.jdbc/clojure.jdbc-c3p0 "0.3.1"]
[org.clojure/java.jdbc "0.7.12"]
[org.postgresql/postgresql "9.4-1201-jdbc41"]
[environ "1.1.0"]]
:plugins [[lein-environ "1.1.0" :hooks false]
[lein-cljsbuild "1.1.7"]
[lein-figwheel "0.5.19"]]
:figwheel {:css-dirs ["resources/public/css"]
:server-port 3450
;; :ring-handler smallworld.web/app ;; run the backend too
;; :nrepl-port 7888
}
:uberjar-name "smallworld.jar"
:profiles {:dev {:dependencies [[cider/piggieback "0.4.1"]
[figwheel-sidecar "0.5.18"]
;; [binaryage/devtools "0.9.10"]
]
:source-paths ["src" "dev"]
:cljsbuild {:builds [{:id "dev"
:source-paths ["src"]
:figwheel true
:compiler {:main "smallworld.frontend"
:asset-path "js/out"
:output-to "resources/public/js/main.js"
:output-dir "resources/public/js/out"
:optimizations :none
:source-map true}}]}}
:uberjar {:env {:production true}
:source-paths ["src"]
:jvm-opts ["-Dclojure.compiler.direct-linking=true"]
:aot :all
:prep-tasks ["compile" ["cljsbuild" "once"]] ; can comment this out in dev to make it faster to build the serverside code
:cljsbuild {:builds [{:id "production"
:source-paths ["src"]
:jar true
:compiler {:main "smallworld.frontend"
:asset-path "js/out"
:output-to "resources/public/js/main.js"
:output-dir "resources/public/js/out"
:optimizations :advanced
:pretty-print false}}]}}})