shadow-cljs.edn 2.0 KB

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