logseq/shadow-cljs.edn

122 lines
4.3 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
2021-07-06 15:48:58 +00:00
;; handle `require(xxx.css)`
:js-options {:ignore-asset-requires true}
2020-10-08 16:41:53 +00:00
:modules {:main {:init-fn frontend.core/init}
2021-07-06 15:48:58 +00:00
;; :graph
;; {:entries [frontend.extensions.graph.force]
;; :depends-on #{:main}}
2020-10-08 16:41:53 +00:00
:code-editor
{:entries [frontend.extensions.code]
:depends-on #{:main}}
:age-encryption
{:entries [frontend.extensions.age-encryption]
2021-03-09 15:24:45 +00:00
:depends-on #{:main}}
:excalidraw
{:entries [frontend.extensions.excalidraw]
2020-10-08 16:41:53 +00:00
: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-07-06 15:48:58 +00:00
:output-feature-set :es-next-in
:source-map true
:source-map-include-sources-content true
2021-07-16 10:35:54 +00:00
:source-map-detail-level :all
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"
:preloads [devtools.preload
shadow.remote.runtime.cljs.browser]}}
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
2021-04-10 11:49:50 +00:00
:after-load electron.core/start}
:compiler-options
{:infer-externs :auto
:source-map true
:source-map-include-sources-content true
2021-07-16 10:35:54 +00:00
:source-map-detail-level :all
2021-04-10 11:49:50 +00:00
:externs ["datascript/externs.js"
"externs.js"]
:warnings {:fn-deprecated false}}}
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}
:devtools {:enabled false}}
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
2021-07-06 15:48:58 +00:00
:js-options {:ignore-asset-requires true}
2020-10-08 16:41:53 +00:00
:modules {:main {:init-fn frontend.publishing/init}
2021-07-06 15:48:58 +00:00
;; :graph
;; {:entries [frontend.extensions.graph.force]
;; :depends-on #{:main}}
2020-10-08 16:41:53 +00:00
:code-editor
{:entries [frontend.extensions.code]
:depends-on #{:main}}
:age-encryption
{:entries [frontend.extensions.age-encryption]
:depends-on #{:main}}
:excalidraw
{:entries [frontend.extensions.excalidraw]
2020-10-08 16:41:53 +00:00
:depends-on #{:main}}}
2020-09-29 15:07:42 +00:00
:output-dir "./static/js/publishing"
2021-07-30 10:57:03 +00:00
:asset-path "static/js"
2020-09-29 15:07:42 +00:00
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-06-08 07:01:41 +00:00
:preloads [devtools.preload]}}
:cards {:target nubank.workspaces.shadow-cljs.target
:ns-regexp "(test|cards)$"
:output-dir "./static/js/workspaces"
:asset-path "/static/js/workspaces"
:preloads [] ; optional, list namespaces to be pre loaded
:devtools
{
:after-load nubank.workspaces.core/after-load
:loader-mode :eval
:http-root "public/workspaces"
:http-port 9670
:watch-path "static"
:preloads [devtools.preload
shadow.remote.runtime.cljs.browser]}
:modules {:main {:entries [workspaces.main]}}}}}