-
Notifications
You must be signed in to change notification settings - Fork 0
/
shadow-cljs.edn
56 lines (47 loc) · 2.18 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
{:deps true
;; Route /index.html request to <project-root>/resources/public/index.html
:dev-http {8080 "build/public"}
:builds
{:web
{:target :browser
:output-dir "build/public/js"
:modules {:main {:init-fn acme.web.app/main}}
;; Only release builds will produce a report when using the hook, it does not
;; affect watch or compile.
;;
:build-hooks [(shadow.cljs.build-report/hook {:output-to ".cache/report-web.html"})]
:devtools {:repl-init-ns user
:preloads [user
re-frame-flow.preload
;; Uncomment and refresh page to enable re-frame-10x.
;; day8.re-frame-10x.preload
]}
;; Closing the re-frame-10x window causes an exception.
;; Issue created on 2021/06/04.
;; https://github.com/day8/re-frame-10x/issues/306
:dev {:compiler-options
{:external-config {;; Official workaround to enable snoop in
;; development in Malli 0.5.1+.
:crypticbutter.snoop {}}
:closure-defines
{re-frame.trace.trace-enabled? true
day8.re-frame.tracing.trace-enabled? true
;; Validate the app state in development.
acme.web.db/validation-enabled? true
;; Use a specific local Sablier contract.
;; acme.web.domain.sablier/sablier-local-contract-address
;; "0x8A791620dd6260079BF849Dc5567aDC3F2FdC318"
}
;; Ignores warnings like:
;;
;; abs already refers to: #'clojure.core/abs in namespace: taoensso.encore, being replaced by: #'taoensso.encore/abs
;;
:warnings {:redef false}}}
:release {:infer-externs :auto
:compiler-options
{:optimizations :advanced
:closure-defines {;; NOTE: Uncomment for locally testing the release bundle.
;; acme.web.domain.sablier/sablier-local-contract-address
;; "0x8A791620dd6260079BF849Dc5567aDC3F2FdC318"
}}
:build-options {:ns-aliases {day8.re-frame.tracing day8.re-frame.tracing-stubs}}}}}}