-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshadow-cljs.edn
45 lines (33 loc) · 2.05 KB
/
shadow-cljs.edn
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
;; shadow-cljs configuration
{:source-paths ["src/main" "src/test"]
:dependencies [[binaryage/devtools "0.9.7"]
[reagent "0.8.0-alpha2"]]
;; set an nrepl port for connection to a REPL.
:nrepl {:port 8777}
:builds {:test {:target :node-test
:output-to "out/node-tests.js"
:autorun true}
:browser-test {:target :browser-test
:test-dir "out/test"
:build-hooks [(shadow.html/copy-file "public/fonts/gentilis_bold.typeface.json"
"out/test/fonts/gentilis_bold.typeface.json")
(shadow.html/copy-file "public/fonts/gentilis_regular.typeface.json"
"out/test/fonts/gentilis_regular.typeface.json")
(shadow.html/copy-file "public/models/ship.glb"
"out/test/models/ship.glb")]
:devtools {:http-root "out/test"
:http-port 8021}}
:app {:target :browser
:output-dir "public/js/compiled"
:asset-path "/js/compiled"
:modules {:main {:init-fn battleship.core/init}}
:compiler-options {:infer-externs true}
:devtools {;; before live-reloading any code call this function
:before-load battleship.core/stop
;; after live-reloading finishes call this function
:after-load battleship.core/start
;; serve the public directory over http at port 8700
:http-root "public"
:http-port 8700
:preloads [devtools.preload]}
:release {:compiler-options {:optimizations :simple}}}}}