shadow-cljs.edn 3.2 KB

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