|
1 | 1 | {:deps true
|
2 | 2 |
|
3 |
| - :build-defaults |
4 |
| - {:build-hooks [(shadow-git-inject.core/hook)]} |
| 3 | + :build-defaults {:build-hooks [(shadow-git-inject.core/hook)]} |
5 | 4 |
|
6 |
| - :dev-http |
7 |
| - {8290 "target/browser-test" |
8 |
| - 8080 "resources/public"} |
| 5 | + :dev-http {8290 "target/browser-test" |
| 6 | + 8080 "resources/public"} |
9 | 7 |
|
10 | 8 | :builds
|
11 |
| - {:main |
12 |
| - {:target :node-script |
13 |
| - :output-to "resources/main.js" |
14 |
| - :main electron.main/init} |
| 9 | + {:main {:target :node-script |
| 10 | + :output-to "resources/main.js" |
| 11 | + :main electron.main/init} |
15 | 12 |
|
16 |
| - :preload |
17 |
| - {:target :node-script |
18 |
| - :output-to "resources/preload.js" |
19 |
| - :main electron.preload/init |
20 |
| - :hashbang false} |
| 13 | + :preload {:target :node-script |
| 14 | + :output-to "resources/preload.js" |
| 15 | + :main electron.preload/init |
| 16 | + :hashbang false} |
21 | 17 |
|
22 |
| - :renderer |
23 |
| - {:target :browser |
24 |
| - :output-dir "resources/public/js" |
25 |
| - :compiler-options |
26 |
| - {;; Optimizations only apply when using the release command. |
27 |
| - ;; Development builds are never optimized by the Closure Compiler. |
28 |
| - ;; https://shadow-cljs.github.io/docs/UsersGuide.html#Optimization |
29 |
| - :optimizations :simple |
30 |
| - :silence-optimizations-warning true |
31 |
| - ;; Required for bootstrap build. |
32 |
| - ;; https://shadow-cljs.github.io/docs/UsersGuide.html#output-wrapper |
33 |
| - :output-wrapper false |
34 |
| - :output-feature-set :es-next |
35 |
| - ;; https://clojurescript.org/reference/advanced-compilation#fixing-advanced-compilation-issues |
36 |
| - :pseudo-names true |
37 |
| - :pretty-print true |
38 |
| - :closure-defines |
39 |
| - {config/version :shadow-git-inject/version}} |
40 |
| - :dev |
41 |
| - {:compiler-options |
42 |
| - {:closure-defines |
43 |
| - {re-frame.trace.trace-enabled? true |
44 |
| - day8.re-frame.tracing.trace-enabled? true}} |
45 |
| - :devtools |
46 |
| - {:preloads |
47 |
| - [devtools.preload |
48 |
| - day8.re-frame-10x.preload.react-18]}} |
49 |
| - :release |
50 |
| - {:build-options |
51 |
| - {:ns-aliases |
52 |
| - {day8.re-frame.tracing |
53 |
| - day8.re-frame.tracing-stubs}}} |
54 |
| - :modules |
55 |
| - {:shared |
56 |
| - {:entries [shadow.cljs.bootstrap.env]} |
| 18 | + :renderer {:target :browser |
| 19 | + :output-dir "resources/public/js" |
| 20 | + :compiler-options {;; Optimizations only apply when using the release command. |
| 21 | + ;; Development builds are never optimized by the Closure Compiler. |
| 22 | + ;; https://shadow-cljs.github.io/docs/UsersGuide.html#Optimization |
| 23 | + :optimizations :simple |
| 24 | + :silence-optimizations-warning true |
| 25 | + ;; Required for bootstrap build. |
| 26 | + ;; https://shadow-cljs.github.io/docs/UsersGuide.html#output-wrapper |
| 27 | + :output-wrapper false |
| 28 | + :output-feature-set :es-next |
| 29 | + ;; https://clojurescript.org/reference/advanced-compilation#fixing-advanced-compilation-issues |
| 30 | + :pseudo-names true |
| 31 | + :pretty-print true |
| 32 | + :closure-defines {config/version :shadow-git-inject/version}} |
57 | 33 |
|
58 |
| - :renderer |
59 |
| - {:entries [renderer.core] |
60 |
| - :depends-on #{:shared} |
61 |
| - :init-fn renderer.core/init} |
| 34 | + :dev {:compiler-options {:closure-defines {re-frame.trace.trace-enabled? true |
| 35 | + day8.re-frame.tracing.trace-enabled? true}} |
62 | 36 |
|
63 |
| - :trace |
64 |
| - {:init-fn worker.trace/init |
65 |
| - :web-worker true |
66 |
| - :depends-on #{:shared}}}} |
| 37 | + :devtools {:preloads [devtools.preload |
| 38 | + day8.re-frame-10x.preload.react-18]}} |
67 | 39 |
|
68 |
| - :bootstrap |
69 |
| - {:target :bootstrap |
70 |
| - :output-dir "resources/public/js/bootstrap" |
71 |
| - :exclude #{cljs.js} |
72 |
| - :entries [cljs.js user]} |
| 40 | + :release {:build-options {:ns-aliases {day8.re-frame.tracing |
| 41 | + day8.re-frame.tracing-stubs}}} |
73 | 42 |
|
74 |
| - :browser-test |
75 |
| - {:target :browser-test |
76 |
| - :ns-regexp "-test$" |
77 |
| - :runner-ns shadow.test.browser |
78 |
| - :test-dir "target/browser-test"} |
| 43 | + :modules {:shared {:entries [shadow.cljs.bootstrap.env]} |
79 | 44 |
|
80 |
| - :karma-test |
81 |
| - {:target :karma |
82 |
| - :ns-regexp "-test$" |
83 |
| - :output-to "target/karma-test.js"}}} |
| 45 | + :renderer {:entries [renderer.core] |
| 46 | + :depends-on #{:shared} |
| 47 | + :init-fn renderer.core/init} |
| 48 | + |
| 49 | + :trace {:init-fn worker.trace/init |
| 50 | + :web-worker true |
| 51 | + :depends-on #{:shared}}}} |
| 52 | + |
| 53 | + :bootstrap {:target :bootstrap |
| 54 | + :output-dir "resources/public/js/bootstrap" |
| 55 | + :exclude #{cljs.js} |
| 56 | + :entries [cljs.js user]} |
| 57 | + |
| 58 | + :browser-test {:target :browser-test |
| 59 | + :ns-regexp "-test$" |
| 60 | + :runner-ns shadow.test.browser |
| 61 | + :test-dir "target/browser-test"} |
| 62 | + |
| 63 | + :karma-test {:target :karma |
| 64 | + :ns-regexp "-test$" |
| 65 | + :output-to "target/karma-test.js"}}} |
0 commit comments