|
4 | 4 | :builds {:demo |
5 | 5 | {:target :browser |
6 | 6 | :modules {:demo {:init-fn re-demo.core/mount-demo}} |
7 | | - :compiler-options {:closure-defines {re-com.config/version #env "RE_COM_VERSION" |
8 | | - ;; For production builds of the demo app, set goog.DEBUG |
9 | | - ;; to be true so that the debugging demo page works as expected. |
10 | | - goog.DEBUG true |
11 | | - re-com.config/force-include-args-desc? true} |
12 | | - ;; For production builds of the demo app, keep the component name |
| 7 | + :closure-defines {re-com.config/version #env "RE_COM_VERSION" |
| 8 | + ;; For production builds of the demo app, set goog.DEBUG |
| 9 | + ;; to be true so that the debugging demo page works as expected. |
| 10 | + goog.DEBUG true |
| 11 | + re-com.config/force-include-args-desc? true} |
| 12 | + :compiler-options {;; For production builds of the demo app, keep the component name |
13 | 13 | ;; symbols for display in validation error logging. |
14 | | - :pseudo-names true |
15 | | - :externs ["externs/detect-element-resize-externs.js"]} |
16 | | - :dev {:asset-path "/compiled_dev/demo" |
17 | | - :output-dir "run/resources/public/compiled_dev/demo" |
| 14 | + :pseudo-names true |
| 15 | + :externs ["externs/detect-element-resize-externs.js"]} |
| 16 | + :dev {:asset-path "/compiled_dev/demo" |
| 17 | + :output-dir "run/resources/public/compiled_dev/demo" |
| 18 | + :closure-defines {;; When re-com produces validation errors it tries to provide links |
| 19 | + ;; to source code. These links require that you provide the root URL |
| 20 | + ;; to the ClojureScript compiler output with source maps. |
| 21 | + re-com.config/root-url-for-compiler-output |
| 22 | + "http://localhost:3449/compiled_dev/demo/cljs-runtime/"} |
18 | 23 | :compiler-options |
19 | | - {:closure-defines {;; When re-com produces validation errors it tries to provide links |
20 | | - ;; to source code. These links require that you provide the root URL |
21 | | - ;; to the ClojureScript compiler output with source maps. |
22 | | - re-com.config/root-url-for-compiler-output |
23 | | - "http://localhost:3449/compiled_dev/demo/cljs-runtime/"} |
24 | | - :external-config {:devtools/config {:features-to-install [:formatters :hints]}}}} |
25 | | - :release {:output-dir "run/resources/public/compiled_prod/demo" |
26 | | - :compiler-options {:closure-defines {;; For production builds, such as the demo website, there is no source |
27 | | - ;; code to link to in validation errors or component stacks, so we set |
28 | | - ;; it to an empty string to cause links to not be displayed at all. |
29 | | - re-com.config/root-url-for-compiler-output ""}}} |
| 24 | + {:external-config {:devtools/config {:features-to-install [:formatters :hints]}}}} |
| 25 | + :release {:output-dir "run/resources/public/compiled_prod/demo"} |
30 | 26 | :devtools {:http-port 3449 |
31 | 27 | :http-root "run/resources/public" |
32 | 28 | :push-state/index "index_dev.html" |
|
35 | 31 | :browser-test {:target :browser-test |
36 | 32 | :ns-regexp "-test$" |
37 | 33 | :test-dir "run/resources/public/compiled_test/demo" |
38 | | - :compiler-options {:closure-defines {re-com.config/version #env "RE_COM_VERSION"} |
39 | | - :externs ["externs/detect-element-resize-externs.js"] |
| 34 | + :closure-defines {re-com.config/version #env "RE_COM_VERSION"} |
| 35 | + :compiler-options {:externs ["externs/detect-element-resize-externs.js"] |
40 | 36 | :external-config {:devtools/config {:features-to-install [:formatters :hints]}}} |
41 | 37 | :devtools {:http-port 8021 |
42 | 38 | :http-root "run/resources/public/compiled_test/demo" |
43 | 39 | :preloads [hashp.core]}} |
44 | 40 | :karma-test {:target :karma |
45 | 41 | :ns-regexp ".*-test$" |
46 | 42 | :output-to "target/karma/test.js" |
47 | | - :compiler-options {:pretty-print true |
48 | | - :closure-defines {re-com.config/version #env "RE_COM_VERSION"} |
49 | | - :externs ["externs/detect-element-resize-externs.js"]}}}} |
| 43 | + :closure-defines {re-com.config/version #env "RE_COM_VERSION"} |
| 44 | + :compiler-options {:pretty-print true |
| 45 | + :externs ["externs/detect-element-resize-externs.js"]}}}} |
0 commit comments