-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathshadow-cljs.edn
More file actions
40 lines (40 loc) · 1.68 KB
/
shadow-cljs.edn
File metadata and controls
40 lines (40 loc) · 1.68 KB
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
{:builds
{:dev
{:target :browser
:devtools {:watch-dir "resources/public" ; live reload CSS
:loader-mode :default ; faster reload
:hud #{:errors :progress}}
:output-dir "resources/public/electric_fiddle/js"
:asset-path "/electric_fiddle/js"
:modules {:main {:entries [dev] :init-fn dev/-main}}
;; uncomment to get flow protocol violation checks, warnings..
;; :compiler-options {:closure-defines {hyperfiddle.electric.impl.missionary-util/wrap true}}
:build-hooks [(hyperfiddle.electric.shadow-cljs.hooks3/reload-clj)
(dev/pause-websocket-reconnect-while-compiling)]}
:dev-jetty9
{:target :browser
:devtools {:watch-dir "resources/public"
:loader-mode :default
:hud #{:errors :progress}}
:output-dir "resources/public/electric_fiddle/js"
:asset-path "/electric_fiddle/js"
:modules {:main {:entries [dev-jetty9] :init-fn dev-jetty9/-main}}
:build-hooks [(hyperfiddle.electric.shadow-cljs.hooks3/reload-clj)
(dev-jetty9/pause-websocket-reconnect-while-compiling)]}
:prod
{:target :browser
:output-dir "resources/public/electric_fiddle/js"
:asset-path "/electric_fiddle/js"
:module-hash-names true
:modules {:main {:entries [prod]
:init-fn prod/-main}}}
:prod-jetty9
{:target :browser
:output-dir "resources/public/electric_fiddle/js"
:asset-path "/electric_fiddle/js"
:module-hash-names true
:modules {:main {:entries [prod-jetty9]
:init-fn prod-jetty9/-main}}}}
;; nREPL port is configured programmatically in dev.cljc (auto-finds free port for parallel worktree workflows)
;; :nrepl false
:npm-deps {:install false}}