shadow-cljs.edn 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. shadow.remote.runtime.cljs.browser]}}
  39. :electron {:target :node-script
  40. :output-to "static/electron.js"
  41. :main electron.core/main
  42. :devtools
  43. {:before-load electron.core/stop
  44. :after-load electron.core/start}
  45. :compiler-options
  46. {:infer-externs :auto
  47. :source-map true
  48. :externs ["datascript/externs.js"
  49. "externs.js"]
  50. :warnings {:fn-deprecated false}}}
  51. :test
  52. {:target :node-test
  53. :output-to "static/tests.js"
  54. :closure-defines {frontend.util/NODETEST true}
  55. :devtools {:enabled false}}
  56. :publishing
  57. {:target :browser
  58. :module-loader true
  59. :modules {:main {:init-fn frontend.publishing/init}
  60. :code-editor
  61. {:entries [frontend.extensions.code]
  62. :depends-on #{:main}}
  63. :age-encryption
  64. {:entries [frontend.extensions.age-encryption]
  65. :depends-on #{:main}}
  66. :excalidraw
  67. {:entries [frontend.extensions.excalidraw]
  68. :depends-on #{:main}}}
  69. :output-dir "./static/js/publishing"
  70. :asset-path "/static/js"
  71. :closure-defines {frontend.config/PUBLISHING true
  72. goog.debug.LOGGING_ENABLED true}
  73. :compiler-options {:infer-externs :auto
  74. :output-feature-set :es-next
  75. :externs ["datascript/externs.js"
  76. "externs.js"]
  77. :warnings {:fn-deprecated false}}
  78. :devtools
  79. ;; before live-reloading any code call this function
  80. {:before-load frontend.core/stop
  81. ;; after live-reloading finishes call this function
  82. :after-load frontend.core/start
  83. :preloads [devtools.preload]}}}}