shadow-cljs.edn 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. :http-root "public"
  27. :http-port 3001
  28. :preloads [devtools.preload]}}
  29. :test
  30. {:target :node-test
  31. :output-to "static/tests.js"}
  32. :publishing
  33. {:target :browser
  34. :module-loader true
  35. :modules {:main {:init-fn frontend.publishing/init}
  36. :code-editor
  37. {:entries [frontend.extensions.code]
  38. :depends-on #{:main}}}
  39. :output-dir "./static/js/publishing"
  40. :asset-path "/static/js"
  41. :closure-defines {frontend.config/PUBLISHING true
  42. goog.debug.LOGGING_ENABLED true}
  43. :compiler-options {:infer-externs :auto
  44. :output-feature-set :es6
  45. :externs ["datascript/externs.js"
  46. "externs.js"]}
  47. :devtools
  48. ;; before live-reloading any code call this function
  49. {:before-load frontend.core/stop
  50. ;; after live-reloading finishes call this function
  51. :after-load frontend.core/start
  52. :preloads [devtools.preload]}}}}