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
|
|
|
|
2020-10-30 07:58:42 +00:00
|
|
|
:output-dir "./static/js"
|
2020-04-11 05:09:10 +00:00
|
|
|
:asset-path "/static/js"
|
2020-10-12 04:17:01 +00:00
|
|
|
:release {:asset-path "https://asset.logseq.com/static/js"}
|
2020-02-19 03:24:37 +00:00
|
|
|
:compiler-options {:infer-externs :auto
|
2020-04-15 09:07:44 +00:00
|
|
|
:output-feature-set :es6
|
2020-12-08 06:19:51 +00:00
|
|
|
:source-map true
|
2020-04-18 05:12:33 +00:00
|
|
|
:externs ["datascript/externs.js"
|
|
|
|
"externs.js"]}
|
2020-11-27 14:08:07 +00:00
|
|
|
: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
|
2020-12-02 13:57:16 +00:00
|
|
|
:http-root "public"
|
|
|
|
:http-port 3001
|
2020-09-29 15:07:42 +00:00
|
|
|
:preloads [devtools.preload]}}
|
2020-11-23 14:56:19 +00:00
|
|
|
|
|
|
|
:test
|
|
|
|
{:target :node-test
|
|
|
|
:output-to "static/tests.js"}
|
|
|
|
|
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
|
|
|
|
2020-10-30 07:58: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-30 14:21:32 +00:00
|
|
|
|
2020-09-29 15:07:42 +00:00
|
|
|
:compiler-options {:infer-externs :auto
|
|
|
|
:output-feature-set :es6
|
|
|
|
:externs ["datascript/externs.js"
|
|
|
|
"externs.js"]}
|
|
|
|
: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
|
2020-04-10 05:39:45 +00:00
|
|
|
:preloads [devtools.preload]}}}}
|