forked from athensresearch/athens
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shadow-cljs.edn
44 lines (41 loc) · 2.7 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
{:deps true
: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}
: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]}}
;; 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}}
:karma-test {:target :karma
:ns-regexp "-test$"
:output-to "target/karma-test.js"}}}