-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathproject.clj
92 lines (76 loc) · 3.51 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
(defproject heckendorf "1.0.0"
:description "Roguelike dungeon crawler game with fullstack Clojure"
:url "https://github.com/uosl/heckendorf"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"
:distribution :repo}
:dependencies [[org.clojure/clojure "1.10.0"]
[org.clojure/clojurescript "1.10.516"]
[http-kit "2.3.0"]
[com.taoensso/sente "1.14.0-RC2"]
[com.taoensso/timbre "4.10.0"]
[ring "1.7.1"]
[ring/ring-defaults "0.3.2"]
[hiccup "1.0.5"]
[compojure "1.6.0"]
[cjohansen/dumdom "2019.02.03-3"]
[garden "1.3.6"]
[herb "0.7.2"]]
:main heckendorf.web
:plugins [[lein-cljsbuild "1.1.7"]]
:min-lein-version "2.5.3"
:source-paths ["src/clj", "src/cljs"]
:clean-targets ^{:protect false} ["resources/public/js/compiled" "target"
"resources/public/css" "test/js"]
:figwheel {:validate-config false ; lein-figwheel doesn't recognize :fingerprint
:css-dirs ["resources/public/css"]}
:aliases {"start" ["do" "clean," "cljsbuild" "once" "dev," "run"]}
;; For a developer environment, you'll want to open two terminals with
;; `lein repl` (then run `(-main)`) and `lein figwheel dev`.
:profiles
{:dev
{:dependencies [[binaryage/devtools "0.9.4"]
[cider/piggieback "0.4.0"]
[figwheel-sidecar "0.5.16"]
[midje "1.9.1"]]
:source-paths ["src/cljs"]
:plugins [[lein-figwheel "0.5.16"]
[lein-doo "0.1.8"]]
:repl-options {:nrepl-middleware [cider.piggieback/wrap-cljs-repl]}}
:uberjar
{:prep-tasks ["compile" ["cljsbuild" "once" "min"]]
:aot :all}}
;; # Useful flags to add when calling java with the uberjar
;; - Fix when using openjdk-9
;; `--add-modules java.xml.bind`
;; - Serve a socket-based REPL that you can telnet into
;; `-Dclojure.server.repl="{:port 5555 :accept clojure.core.server/repl}"`
:cljsbuild
{:builds
[{:id "dev"
:source-paths ["src/cljs"]
:figwheel {:on-jsload "heckendorf.core/on-js-reload"}
:compiler {:main heckendorf.core
:output-to "resources/public/js/compiled/app.js"
:output-dir "resources/public/js/compiled/out"
:asset-path "js/compiled/out"
:source-map-timestamp true
:preloads [devtools.preload]
:external-config {:devtools/config {:features-to-install :all}}
:warnings {:fn-arity false}}}
{:id "min"
:source-paths ["src/cljs"]
:jar true
:compiler {:main heckendorf.core
:output-to "resources/public/js/compiled/app.js"
:fingerprint true
:optimizations :advanced
:closure-defines {goog.DEBUG false}
:pretty-print false
:warnings {:fn-arity false}}}
{:id "test"
:source-paths ["src/cljs" "test/cljs"]
:compiler {:main heckendorf.runner
:output-to "resources/public/js/compiled/test.js"
:output-dir "resources/public/js/compiled/test/out"
:optimizations :none}}]})