-
-
Notifications
You must be signed in to change notification settings - Fork 399
/
shadow-cljs.edn
53 lines (50 loc) · 3.3 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
{:deps true
;; Don't install npm-deps declared in dependencies.
;; If we need them, we install them manually.
;; https://github.com/thheller/shadow-cljs/issues/800#issuecomment-725716087
:npm-deps {:install false}
:nrepl {:port 8777}
:builds {
;; pure browser https://athensresearch.github.io/athens
:app {:target :browser
:output-dir "resources/public/js/compiled"
:asset-path "js/compiled"
:modules {:app {:init-fn athens.core/init}}
:compiler-options {:closure-warnings {:global-this :off}
:infer-externs :auto
:closure-defines {re-frame.trace.trace-enabled? true}
:output-feature-set :es-next}
:dev {:compiler-options {:closure-defines {re-frame.trace.trace-enabled? true
day8.re-frame.tracing.trace-enabled? true}}}
:release {:build-options {:ns-aliases {day8.re-frame.tracing day8.re-frame.tracing-stubs}}}
:devtools {:preloads [devtools.preload
day8.re-frame-10x.preload]
:http-root "resources/public"
:http-port 3000}}
;; frontend for electron
:renderer {:target :browser
:output-dir "resources/public/js/compiled"
:asset-path "js/compiled"
:modules {:renderer {:init-fn athens.core/init}}
:compiler-options {:closure-warnings {:global-this :off}
:infer-externs :auto
:closure-defines {re-frame.trace.trace-enabled? true}
:output-feature-set :es-next
;; see https://shadow-cljs.github.io/docs/UsersGuide.html#_conditional_reading
:reader-features #{:electron}}
:dev {:compiler-options {:closure-defines {re-frame.trace.trace-enabled? true
day8.re-frame.tracing.trace-enabled? true}}}
:release {:build-options {:ns-aliases {day8.re-frame.tracing day8.re-frame.tracing-stubs}}
:compiler-options {:source-map true
:pseudo-names true}}
:devtools {:preloads [devtools.preload
day8.re-frame-10x.preload]}}
;; backend for electron (node.js)
:main {:target :node-script
:output-to "resources/main.js"
:main athens.main.core/main
:compiler-options {:output-feature-set :es-next
:reader-features #{:electron}}}
:karma-test {:target :karma
:ns-regexp "-test$"
:output-to "target/karma-test.js"}}}