forked from hyperfiddle/electric
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shadow-cljs.edn
48 lines (48 loc) · 3.47 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
{:deps {:aliases [:dev :server]}
:nrepl {:port 9001}
:dev-http {8000 "resources/public"}
:builds {:app {:target :browser
:devtools {:watch-dir "resources/public"
:watch-path "/assets"
:hud #{:errors :progress}
:ignore-warnings true ;; warnings don't prevent hot-reload
}
:compiler-options {:output-feature-set :es6
:infer-externs :auto
:js-options {:variable-renaming :off}
:anon-fn-naming-policy :unmapped}
:build-options {:cache-level :jars} ;; Recompile everything but jars.
:output-dir "resources/public/js"
:asset-path "/assets/js"
:modules {:shared {:entries [;; HACK: Shadow should take care of it,
;; but for some reason it doesn't.
shadow.cljs.bootstrap.env
shadow.cljs.bootstrap.browser]}
:main {:entries [hyperfiddle.client]
:depends-on #{:shared}}}}
:examples {:target :browser
:devtools {:watch-dir "resources/public/examples"
:watch-path "/assets"
:hud #{:errors :progress}}
:compiler-options {#_#_:output-feature-set :es6
:infer-externs :auto
:js-options {:variable-renaming :off}
:anon-fn-naming-policy :unmapped
:source-map true
:source-map-timestamp true
:output-feature-set :es8}
:output-dir "resources/public/examples/js"
:asset-path "js"
:modules {:shared {:entries [;; HACK: Shadow should take care of it,
;; but for some reason it doesn't.
shadow.cljs.bootstrap.env
shadow.cljs.bootstrap.browser]}
:main {:entries [hyperfiddle.examples]
:depends-on #{:shared}}}}
:test {:target :node-test
:output-to "out/node-tests.js"
:ns-regexp "^hyperfiddle.photon-[^dom].*$"
:build-options {:cache-level :off}
:modules {:main {:entries [hyperfiddle.photon hyperfiddle.photon-test]}}
:dev {:closure-defines {hyperfiddle.dev.logger/LEVEL "debug"}}
:compiler-options {:warnings {:redef-in-file false}}}}}