shadow-cljs.edn 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 "./resources/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. :devtools
  20. ;; before live-reloading any code call this function
  21. {:before-load frontend.core/stop
  22. ;; after live-reloading finishes call this function
  23. :after-load frontend.core/start
  24. :preloads [devtools.preload]}}
  25. :publishing
  26. {:target :browser
  27. :module-loader true
  28. :modules {:main {:init-fn frontend.publishing/init}
  29. :code-editor
  30. {:entries [frontend.extensions.code]
  31. :depends-on #{:main}}}
  32. :release {:asset-path "https://asset.logseq.com/static/js"}
  33. :output-dir "../resources/static/js/publishing"
  34. :asset-path "/static/js"
  35. :closure-defines {frontend.config/PUBLISHING true}
  36. :compiler-options {:infer-externs :auto
  37. :output-feature-set :es6
  38. :externs ["datascript/externs.js"
  39. "externs.js"]}
  40. :devtools
  41. ;; before live-reloading any code call this function
  42. {:before-load frontend.core/stop
  43. ;; after live-reloading finishes call this function
  44. :after-load frontend.core/start
  45. :preloads [devtools.preload]}}}}