-
Notifications
You must be signed in to change notification settings - Fork 0
/
shadow-cljs.edn
36 lines (33 loc) · 1.84 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
{:deps {:aliases [:exerciser]}
:nrepl {:port 7002}
:http {:port 9631}
:builds ; Only :frontend :kaochaRM have been used much.
{:frontend ;-------------- Running the exerciser -------------------
{:target :browser
:output-dir "resources/public/js"
:asset-path "/js"
:compiler-options {:externs ["datascript/externs.js"]}
:modules {:app {:entries [exerciser-app.core] ; creates app.js owing to key :app.
:init-fn exerciser-app.core/mount-root}}
:devtools {:after-load exerciser-app.core/mount-root}}
:kaochaRM ;-------------- Testing cljs ------------------------------
{:target :browser-test
:test-dir "target/kaocha-test"
:runner-ns kaocha.cljs2.shadow-runner
:ns-regexp ".*-test$"
:compiler-options {:externs ["datascript/externs.js"]}
:devtools {:http-port 1818
:http-root "target/kaocha-test"
:after-load dev.kaocha/reload ; dev.kaocha/reload is an attempt to suppress useless log output.
:preloads [lambdaisland.chui.remote #_dev.kaocha/reload]}}
:lib ;----------------- Creating a NodeJS library -----------------
{:target :node-library
:output-to "lib.js"
:exports-vars rad-mapper.rewrite/processRad
:compiler-options {:externs ["datascript/externs.js"]}}
:lib-dev ;------------------ I'm not too sure! ------------------------
{:target :browser
:output-dir "resources/public/js"
:compiler-options {:externs ["datascript/externs.js"]}
:modules {:app {:init-fn dev.dutil/start}} ; Ideally would be rad-mapper.evaluate/start, but then dev.dutil isn't loaded!...
:devtools {:after-load dev.dutil/reload}}}} ; ... LATER: Even with these, sometimes it doesn't load dev.dutil NS.