-
Notifications
You must be signed in to change notification settings - Fork 1
/
shadow-cljs.edn
67 lines (58 loc) · 3.29 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{:deps {:aliases [:dev]}
:nrepl {:port 9000}
:builds {:main {:target :browser
:output-dir "resources/public/js/main"
:asset-path "/js/main"
:module-hash-names true
:modules {:client {:init-fn decide.client/init
:entries [decide.client]
:depends-on #{:shared}}
:shared {:entries [decide.application]}}
:js-options {:entry-keys ["module" "browser" "main"]}
;; guardrails enforcement only during dev
:dev {:compiler-options
{:external-config {:guardrails {:defn-macro nil
:expound {:show-valid-values? true
:print-specs? true}
:async? true
:throw? false
:emit-spec? true}}
:closure-defines {'goog.DEBUG true}}}
:release
{:build-options
{:ns-aliases
{com.fulcrologic.guardrails.core com.fulcrologic.guardrails.noop}}}
:devtools {:after-load decide.client/refresh
:preloads [com.fulcrologic.fulcro.inspect.preload
decide.development-preload
com.fulcrologic.fulcro.inspect.dom-picker-preload]}}
:i18n {:target :browser
:output-dir "resources/public/js/main"
:asset-path "/js/main"
:modules {:i18n {:init-fn decide.client/init
:entries [decide.client]}}
:compiler-options {:optimizations :whitespace}}
: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|cards)$"
:output-dir "resources/public/workspaces/js"
:asset-path "/workspaces/js"
:js-options {:entry-keys ["module" "browser" "main"]}
:devtools {:preloads [com.fulcrologic.fulcro.inspect.websocket-preload
decide.development-preload]
:http-root "resources/public"
:http-port 8023
:http-resource-root "."}}}}