shadow-cljs.edn 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. :age-encryption
  13. {:entries [frontend.extensions.age-encryption]
  14. :depends-on #{:main}}
  15. :excalidraw
  16. {:entries [frontend.extensions.excalidraw]
  17. :depends-on #{:main}}}
  18. :output-dir "./static/js"
  19. :asset-path "/static/js"
  20. :release {:asset-path "https://asset.logseq.com/static/js"}
  21. :compiler-options {:infer-externs :auto
  22. :output-feature-set :es-next
  23. :source-map true
  24. :externs ["datascript/externs.js"
  25. "externs.js"]
  26. :warnings {:fn-deprecated false}}
  27. :closure-defines {goog.debug.LOGGING_ENABLED true
  28. frontend.config/GITHUB_APP_NAME #shadow/env "GITHUB_APP2_NAME"}
  29. :devtools
  30. ;; before live-reloading any code call this function
  31. {:before-load frontend.core/stop
  32. ;; after live-reloading finishes call this function
  33. :after-load frontend.core/start
  34. :http-root "public"
  35. :http-port 3001
  36. :watch-path "static"
  37. :preloads [devtools.preload]}}
  38. :electron {:target :node-script
  39. :output-to "static/electron.js"
  40. :main electron.core/main
  41. :devtools
  42. {:before-load electron.core/stop
  43. :after-load electron.core/start}}
  44. :test
  45. {:target :node-test
  46. :output-to "static/tests.js"
  47. :closure-defines {frontend.util/NODETEST true}
  48. :devtools {:enabled false}}
  49. :publishing
  50. {:target :browser
  51. :module-loader true
  52. :modules {:main {:init-fn frontend.publishing/init}
  53. :code-editor
  54. {:entries [frontend.extensions.code]
  55. :depends-on #{:main}}
  56. :age-encryption
  57. {:entries [frontend.extensions.age-encryption]
  58. :depends-on #{:main}}
  59. :excalidraw
  60. {:entries [frontend.extensions.excalidraw]
  61. :depends-on #{:main}}}
  62. :output-dir "./static/js/publishing"
  63. :asset-path "/static/js"
  64. :closure-defines {frontend.config/PUBLISHING true
  65. goog.debug.LOGGING_ENABLED true}
  66. :compiler-options {:infer-externs :auto
  67. :output-feature-set :es-next
  68. :externs ["datascript/externs.js"
  69. "externs.js"]
  70. :warnings {:fn-deprecated false}}
  71. :devtools
  72. ;; before live-reloading any code call this function
  73. {:before-load frontend.core/stop
  74. ;; after live-reloading finishes call this function
  75. :after-load frontend.core/start
  76. :preloads [devtools.preload]}}}}