shadow-cljs.edn 2.1 KB

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