-
Notifications
You must be signed in to change notification settings - Fork 1
/
shadow-cljs.edn
40 lines (35 loc) · 2.21 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
{:deps {:aliases [:dev]}
:nrepl {:port 9000}
:builds {:main {:target :browser
:output-dir "resources/public/js/main"
:asset-path "/js/main"
:modules {:main {:init-fn todoish.client/init
:entries [todoish.client]}}
;; ghostwheel enforcement only during dev
:dev {:compiler-options
{:external-config {:ghostwheel {}}
:warnings {:redef false}}}
:devtools {:after-load todoish.client/refresh
:preloads [com.fulcrologic.fulcro.inspect.websocket-preload todoish.development-preload]}}
:test {:target :browser-test
:test-dir "resources/public/js/test"
:ns-regexp "-test$"
;; required for mocking to work
:compiler-options {:static-fns false
:external-config {:ghostwheel {}}}
:devtools {:http-port 8022
:http-resource-root "public"
:http-root "resources/public/js/test"}}
:ci-tests {:target :karma
:js-options {:js-provider :shadow}
:compiler-options {:static-fns false} ; required for mocking to work
:output-to "target/ci.js"
:ns-regexp "-test$"}
:workspaces {:target nubank.workspaces.shadow-cljs.target
:ns-regexp "-(test|ws)$"
:output-dir "resources/public/workspaces/js"
:asset-path "/workspaces/js"
:devtools {:preloads [com.fulcrologic.fulcro.inspect.preload]
:http-root "resources/public"
:http-port 8023
:http-resource-root "."}}}}