forked from hyperfiddle/electric
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shadow-cljs.edn
67 lines (67 loc) · 4.95 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
58
59
60
61
62
63
64
65
66
67
{:deps {:aliases [:dev :edn-view :server]}
:nrepl {:port 9001}
:dev-http {8000 "resources/public"}
:builds {:app {:target :browser
:devtools {:watch-dir "resources/public"
: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}
: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}}
:printer-worker {:web-worker true
:entries [hyperfiddle.client.printer-worker]
:init-fn hyperfiddle.client.printer-worker/init
:depends-on #{:shared}}}}
:photon {:target :browser
:devtools {:watch-dir "resources/public/photon"
: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}
:output-dir "resources/public/photon/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.client.photon]
: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 "^(hfdl.lib|user.lang)$"
:build-options {:cache-level :off}
:modules {:main {:entries [hfdl.lang user.lang]}}
:dev {:closure-defines {hyperfiddle.dev.logger/LEVEL "debug"}}
:compiler-options {:warnings {:redef-in-file false}}}}}