1
0

shadow-cljs.edn 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. ;; shadow-cljs configuration
  2. {:deps true
  3. :nrepl {:port 8701}
  4. :builds
  5. {:app
  6. {:target :browser
  7. :module-loader true
  8. :modules {:main {:init-fn frontend.core/init}
  9. :code-editor
  10. {:entries [frontend.extensions.code]
  11. :depends-on #{:main}}}
  12. :output-dir "./static/js"
  13. :asset-path "/static/js"
  14. :release {:asset-path "https://asset.logseq.com/static/js"}
  15. :compiler-options {:infer-externs :auto
  16. :output-feature-set :es6
  17. :externs ["datascript/externs.js"
  18. "externs.js"]}
  19. :closure-defines {goog.debug.LOGGING_ENABLED true
  20. frontend.config/GITHUB_APP_NAME #shadow/env "GITHUB_APP2_NAME"}
  21. :devtools
  22. ;; before live-reloading any code call this function
  23. {:before-load frontend.core/stop
  24. ;; after live-reloading finishes call this function
  25. :after-load frontend.core/start
  26. :preloads [devtools.preload]}}
  27. :test
  28. {:target :node-test
  29. :output-to "static/tests.js"}
  30. :publishing
  31. {:target :browser
  32. :module-loader true
  33. :modules {:main {:init-fn frontend.publishing/init}
  34. :code-editor
  35. {:entries [frontend.extensions.code]
  36. :depends-on #{:main}}}
  37. :output-dir "./static/js/publishing"
  38. :asset-path "/static/js"
  39. :closure-defines {frontend.config/PUBLISHING true
  40. goog.debug.LOGGING_ENABLED true}
  41. :compiler-options {:infer-externs :auto
  42. :output-feature-set :es6
  43. :externs ["datascript/externs.js"
  44. "externs.js"]}
  45. :devtools
  46. ;; before live-reloading any code call this function
  47. {:before-load frontend.core/stop
  48. ;; after live-reloading finishes call this function
  49. :after-load frontend.core/start
  50. :preloads [devtools.preload]}}}}