This repository has been archived by the owner on Apr 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shadow-cljs.edn
executable file
·40 lines (35 loc) · 2.38 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}
:source-paths ["src/main" "src/test" "src/workspaces"]
:builds {:main {:target :browser
:output-dir "resources/public/js/main"
:asset-path "/js/main"
:modules {:main {:init-fn decide.client/init
:entries [decide.client]}}
;; guardrails enforcement only during dev
:dev {:compiler-options
{:external-config {:guardrails {}}}}
:devtools {:after-load decide.client/refresh
:preloads [com.fulcrologic.fulcro.inspect.preload decide.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 {:guardrails {}}}
: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 "."}}}}