forked from hyperfiddle/electric
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shadow-cljs.edn
48 lines (48 loc) · 3.57 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
46
47
48
{:deps {:aliases [:dev]}
:nrepl {:port 9001}
:builds {:dev {:target :browser
:devtools {:watch-dir "resources/public" ; live reload CSS
:hud #{:errors :progress}
:ignore-warnings true ; warnings don't prevent hot-reload
:loader-mode :default ; faster reload
}
:output-dir "resources/public/js"
:asset-path "/js"
:modules {:main {:entries [user]
:init-fn user/start!}}
:build-hooks [(shadow.cljs.build-report/hook {:output-to "target/build_report.html"})
(user/rcf-shadow-hook)]
:compiler-options {:fn-invoke-direct true}} ; performances
:editor {:target :browser
:devtools {:watch-dir "resources/public" ; live reload CSS
:hud #{:errors :progress}
:ignore-warnings true} ; warnings don't prevent hot-reload
:output-dir "resources/public/js/editor"
:asset-path "/js"
:modules {:main {:entries [user]}}}
:test {:target :node-test
:output-to "out/node-tests.js"
:ns-regexp "^(hyperfiddle.(electric-[^dom]|core-async|zero)|contrib.(ednish|sexpr-router)).*$"
:build-options {:cache-level :off}
:modules {:main {:entries [hyperfiddle.zero
hyperfiddle.electric
hyperfiddle.electric-test
#_hyperfiddle.missionary-test
hyperfiddle.core-async-test
contrib.ednish
contrib.sexpr-router]}}
:dev {:closure-defines {hyperfiddle.logger/LEVEL "debug"}}
:compiler-options {:warnings {:redef-in-file false}}}
:browser-test {:target :karma
:output-to "out/karma-tests.js"
:ns-regexp "^(hyperfiddle.(electric-[^dom]|core-async|zero)|contrib.(ednish|sexpr-router)).*$"
:build-options {:cache-level :off}
:modules {:main {:entries [hyperfiddle.zero
hyperfiddle.electric
hyperfiddle.electric-test
#_hyperfiddle.missionary-test
hyperfiddle.core-async-test
contrib.ednish
contrib.sexpr-router]}}
:dev {:closure-defines {hyperfiddle.logger/LEVEL "debug"}}
:compiler-options {:warnings {:redef-in-file false}}}}}