This repository has been archived by the owner on May 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
/
project.clj
121 lines (105 loc) · 5.78 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
(defproject chocolatier "0.1.0-SNAPSHOT"
:description "Chocolatier prototype"
:source-paths ["src/clj" "src/cljs"]
:test-paths ["test/clj" "test/cljs"]
:dependencies [[org.clojure/clojure "1.8.0"]
;; Web server
[ring "1.2.0"]
[compojure "1.1.5"]
[enlive "1.1.1"]
;; cljs
[org.clojure/clojurescript "1.9.293"]
;; DOM manipulation
[prismatic/dommy "1.1.0"
:exclusions [org.clojure/clojurescript]]
[org.clojure/core.async "0.1.346.0-17112a-alpha"
:exclusions [org.clojure/clojurescript]]
;; Devcards
[devcards "0.2.2" :exclusions [org.clojure/core.async
org.clojure/core.memoize
org.clojure/core.cache
org.clojure/tools.analyzer
org.clojure/tools.analyzer.jvm
org.clojure/data.priority-map
org.ow2.asm/asm-all]]
;; State inspection
[praline "0.1.0-SNAPSHOT" :exclusions [refactor-nrepl]]
;; Fix for java11 figwheel compatibility issue
[javax.xml.bind/jaxb-api "2.4.0-b180830.0359"]]
:plugins [[lein-cljsbuild "1.1.7" :exclusions [org.clojure/clojurescript]]
[lein-figwheel "0.5.16" :exclusions [org.clojure/clojurescript]]
[cider/cider-nrepl "0.21.0"]
[refactor-nrepl "2.4.0"]]
:profiles {:dev {:dependencies [[nrepl "0.6.0"]
[cider/piggieback "0.4.1"
:exclusions [org.clojure/clojurescript]]
[org.clojure/tools.nrepl "0.2.13"]
[figwheel-sidecar "0.5.18"
:exclusions [org.clojure/clojurescript
org.clojure/core.async
org.clojure/data.priority-map
org.clojure/core.cache
org.clojure/core.memoize
ring/ring-core
joda-time
org.ow2.asm/asm-all]]]
:repl-options {:nrepl-middleware [cider.piggieback/wrap-cljs-repl]}}}
:clean-targets ^{:protect false} ["resources/public/js/compiled" "target"]
:cljsbuild {:builds
[{:id "dev"
:source-paths ["src/cljs"
"test/cljs"]
:figwheel {:devcards true
:autoload true
:load-warninged-code true
:heads-up-display true
:on-jsload "chocolatier.examples.action-rpg.core/on-js-reload"}
:compiler {:main "chocolatier.devcards"
:asset-path "/js/compiled/out"
:output-to "resources/public/js/compiled/chocolatier.js"
:output-dir "resources/public/js/compiled/out"
:source-map-timestamp true
:pretty-print true}}
{:id "min"
:source-paths ["src/cljs"]
:compiler {:main "chocolatier.examples.action-rpg.core"
:output-to "resources/public/js/compiled/chocolatier-min.js"
:externs ["resources/public/js/externs/pixi.js"
"resources/public/js/externs/howler.js"
"resources/public/js/externs/stats.js"
"resources/public/js/externs/rbush.js"]
;; Remove runtime assertions
:elide-asserts true
:optimizations :advanced
:parallel-build true
:verbose true
;; Optimize nested function calls
:static-fns true}}]}
:figwheel {:http-server-root "public" ;; default and assumes "resources"
:server-port 1223 ;; default
:css-dirs ["resources/public/css"] ;; watch and update CSS
;; Start an nREPL server into the running figwheel process
;; :nrepl-port 8999
;; Need this now to get nrepl to work
;; :nrepl-middleware ["cider.nrepl/cider-middleware"
;; "refactor-nrepl.middleware/wrap-refactor"
;; "cider.piggieback/wrap-cljs-repl"]
;; Server Ring Handler (optional)
;; if you want to embed a ring handler into the figwheel http-kit
;; server, this is for simple ring servers, if this
;; doesn't work for you just run your own server :)
:ring-handler chocolatier.server/app
;; To be able to open files in your editor from the heads up display
;; you will need to put a script on your path.
;; that script will have to take a file path and a line number
;; ie. in ~/bin/myfile-opener
;; #! /bin/sh
;; emacsclient -n +$2 $1
;;
;; :open-file-command "myfile-opener"
;; if you want to disable the REPL
;; :repl false
;; to configure a different figwheel logfile path
;; :server-logfile "tmp/logs/figwheel-logfile.log"
}
)