-
Notifications
You must be signed in to change notification settings - Fork 18
/
shadow-cljs.edn
57 lines (42 loc) · 1.67 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
;; Shadow CLJS User’s Guide
;; https://shadow-cljs.github.io/docs/UsersGuide.html
{:deps {:aliases [:site :site-dev :logback-site]}
:nrepl false
:jvm-opts ["-Xmx2G"]
:dev-http {8000 "src/main/resources/public"}
:builds
{:main
{:target :browser
:modules {:main {:init-fn convex-web.site.app/init}}
:output-dir "src/main/resources/public/js"
:asset-path "/js"
:devtools
{:preloads [re-frisk.preload]
;; The :browser target now uses a HUD to display a loading indicator when a build is started.
;; It will also display warnings and errors if there are any.
;;
;; https://shadow-cljs.github.io/docs/UsersGuide.html#hud
:hud #{:progress :errors}
;; A boolean controlling whether code with warnings should be reloaded.
:ignore-warnings true}
:build-hooks
[(shadow.cljs.build-report/hook)]
:compiler-options
{;; It is sometimes desireable to fail a build with warnings rather than continuing with the build (eg. in CI envs).
;; You can use the :warnings-as-errors compiler options to customize how that is handled.
;;
;; https://shadow-cljs.github.io/docs/UsersGuide.html#warnigs-as-errors
:warnings-as-errors false}}
:test
{:target :browser-test
:test-dir "src/test/resources/public/js/test"
:devtools
{:http-port 8100
:http-root "src/test/resources/public/js/test"
;; See https://shadow-cljs.github.io/docs/UsersGuide.html#hud
:hud #{:progress :errors}
;; A boolean controlling whether code with warnings should be reloaded.
:ignore-warnings true}
;; See https://shadow-cljs.github.io/docs/UsersGuide.html#warnigs-as-errors
:compiler-options
{:warnings-as-errors false}}}}