| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- ;; shadow-cljs configuration
- {:deps true
- :nrepl {:port 8701}
- :builds
- {:app
- {:target :browser
- :module-loader true
- :modules {:main {:init-fn frontend.core/init}
- :code-editor
- {:entries [frontend.extensions.code]
- :depends-on #{:main}}}
- :output-dir "./static/js"
- :asset-path "/static/js"
- :release {:asset-path "https://asset.logseq.com/static/js"}
- :compiler-options {:infer-externs :auto
- :output-feature-set :es6
- :source-map true
- :externs ["datascript/externs.js"
- "externs.js"]}
- :closure-defines {goog.debug.LOGGING_ENABLED true
- frontend.config/GITHUB_APP_NAME #shadow/env "GITHUB_APP2_NAME"}
- :devtools
- ;; before live-reloading any code call this function
- {: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]}}
- :test
- {:target :node-test
- :output-to "static/tests.js"
- :closure-defines {frontend.util/NODETEST true}
- :devtools {:enabled false}}
- :publishing
- {:target :browser
- :module-loader true
- :modules {:main {:init-fn frontend.publishing/init}
- :code-editor
- {:entries [frontend.extensions.code]
- :depends-on #{:main}}}
- :output-dir "./static/js/publishing"
- :asset-path "/static/js"
- :closure-defines {frontend.config/PUBLISHING true
- goog.debug.LOGGING_ENABLED true}
- :compiler-options {:infer-externs :auto
- :output-feature-set :es6
- :externs ["datascript/externs.js"
- "externs.js"]}
- :devtools
- ;; before live-reloading any code call this function
- {:before-load frontend.core/stop
- ;; after live-reloading finishes call this function
- :after-load frontend.core/start
- :preloads [devtools.preload]}}}}
|