-
Notifications
You must be signed in to change notification settings - Fork 0
/
shadow-cljs.edn
30 lines (26 loc) · 1.43 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
{:deps true
;; set an nrepl port for connection to a REPL.
:nrepl {:port 8777}
:builds {;; example build config, usage suitable for user apps
:app {:target :browser
:modules {:base {:init-fn shadow-re-frame.simple/init}}
:output-dir "public/js/compiled"
:asset-path "/js/compiled"
:devtools {:http-root "public"
:http-port 8700}}
;; docs build (includes 10x in the release)
:docs {:target :browser
:modules {:base {:init-fn shadow-re-frame.simple/init
:entries [devtools.preload
day8.re-frame-10x.preload
shadow-re-frame.simple]}}
:output-dir "docs/js/compiled"
:asset-path "/js/compiled"
:compiler-options {:closure-defines {re-frame.trace.trace-enabled? true}
:silence-optimizations-warning true
;; just for this demo, normally you don't use re-frame-trace
;; in production so you can do an :advanced compile.
:optimizations :simple}
:devtools {:http-root "docs"
:http-port 8701
:after-load shadow-re-frame.simple/render}}}}