logseq/shadow-cljs.edn

77 lines
2.5 KiB
Plaintext
Raw Normal View History

2019-12-11 00:35:22 +00:00
;; shadow-cljs configuration
2020-03-09 07:51:06 +00:00
{:deps true
2019-12-11 02:48:29 +00:00
:nrepl {:port 8701}
2019-12-11 00:35:22 +00:00
:builds
2019-12-11 02:48:29 +00:00
{:app
{:target :browser
2020-10-08 16:41:53 +00:00
:module-loader true
:modules {:main {:init-fn frontend.core/init}
:code-editor
{:entries [frontend.extensions.code]
:depends-on #{:main}}}
2019-12-11 02:48:29 +00:00
:output-dir "./static/js"
2020-04-11 05:09:10 +00:00
:asset-path "/static/js"
:release {:asset-path "https://asset.logseq.com/static/js"}
2020-02-19 03:24:37 +00:00
:compiler-options {:infer-externs :auto
2021-01-18 14:22:52 +00:00
:output-feature-set :es-next
:source-map true
2020-04-18 05:12:33 +00:00
:externs ["datascript/externs.js"
2020-12-30 10:40:58 +00:00
"externs.js"]
:warnings {:fn-deprecated false}}
:closure-defines {goog.debug.LOGGING_ENABLED true
frontend.config/GITHUB_APP_NAME #shadow/env "GITHUB_APP2_NAME"}
2020-11-24 07:41:34 +00:00
2019-12-11 02:48:29 +00:00
:devtools
;; before live-reloading any code call this function
2020-09-29 15:07:42 +00:00
{:before-load frontend.core/stop
;; after live-reloading finishes call this function
:after-load frontend.core/start
:http-root "public"
:http-port 3001
:watch-path "static"
2021-01-18 09:46:19 +00:00
:preloads [devtools.preload]}
:build-hooks [(shadow-env.core/hook)]}
2020-11-23 14:56:19 +00:00
2021-01-18 15:46:44 +00:00
:electron {:target :node-script
:output-to "static/electron.js"
2021-01-20 03:00:24 +00:00
:main electron.core/main
:devtools
{:before-load electron.core/stop
:after-load electron.core/start}}
2021-01-18 15:46:44 +00:00
2020-11-23 14:56:19 +00:00
:test
{:target :node-test
2020-12-21 08:25:18 +00:00
:output-to "static/tests.js"
:closure-defines {frontend.util/NODETEST true}
2021-01-18 09:46:19 +00:00
:devtools {:enabled false}
:build-hooks [(shadow-env.core/hook)]}
2020-11-23 14:56:19 +00:00
2020-09-29 15:07:42 +00:00
:publishing
{:target :browser
2020-10-08 16:41:53 +00:00
:module-loader true
:modules {:main {:init-fn frontend.publishing/init}
:code-editor
{:entries [frontend.extensions.code]
:depends-on #{:main}}}
2020-09-29 15:07:42 +00:00
:output-dir "./static/js/publishing"
2020-09-29 15:07:42 +00:00
:asset-path "/static/js"
2020-11-24 07:41:34 +00:00
:closure-defines {frontend.config/PUBLISHING true
goog.debug.LOGGING_ENABLED true}
2020-09-29 15:07:42 +00:00
:compiler-options {:infer-externs :auto
2021-01-18 14:22:52 +00:00
:output-feature-set :es-next
2020-09-29 15:07:42 +00:00
:externs ["datascript/externs.js"
2020-12-30 10:40:58 +00:00
"externs.js"]
:warnings {:fn-deprecated false}}
2020-09-29 15:07:42 +00:00
:devtools
;; before live-reloading any code call this function
2019-12-11 02:48:29 +00:00
{:before-load frontend.core/stop
;; after live-reloading finishes call this function
:after-load frontend.core/start
2021-01-18 09:46:19 +00:00
:preloads [devtools.preload]}
:build-hooks [(shadow-env.core/hook)]}}}