mirror of
https://github.com/logseq/logseq.git
synced 2026-04-30 00:46:23 +00:00
43 lines
1.3 KiB
Clojure
43 lines
1.3 KiB
Clojure
;; shadow-cljs configuration
|
|
{:deps true
|
|
|
|
;; :dependencies
|
|
;; [[binaryage/devtools "0.9.10"]
|
|
;; [cider/cider-nrepl "0.23.0-SNAPSHOT"]
|
|
|
|
;; [rum "0.11.4"]
|
|
;; [datascript "0.18.9"]
|
|
;; [funcool/promesa "4.0.2"]
|
|
;; [medley "1.2.0"]
|
|
;; [metosin/reitit "0.3.10"]
|
|
;; [metosin/reitit-spec "0.3.10"]
|
|
;; [metosin/reitit-frontend "0.3.10"]]
|
|
|
|
:nrepl {:port 8701}
|
|
|
|
:builds
|
|
{:app
|
|
{:target :browser
|
|
:modules {:main {:init-fn frontend.core/init}}
|
|
|
|
:compiler-options {:infer-externs :auto
|
|
:externs ["datascript/externs.js"]}
|
|
;; TODO: purge-css not working properly
|
|
;; :build-hooks [(shadow.hooks/purge-css
|
|
;; {:css-source "node_modules/tailwindcss/dist/tailwind.min.css"
|
|
;; :js-globs ["public/js/*.js"]
|
|
;; :public-dir "public/css"})]
|
|
:devtools
|
|
;; before live-reloading any code call this function
|
|
{:before-load frontend.core/stop
|
|
;; after live-reloading finishes call this function
|
|
:after-load frontend.core/start
|
|
;; serve the public directory over http at port 8700
|
|
;:http-root "public"
|
|
;:http-port 8700
|
|
;; :http-root "public"
|
|
;; :http-port 8080
|
|
:preloads [devtools.preload]}
|
|
|
|
}}}
|