logseq/web/shadow-cljs.edn

46 lines
1.3 KiB
Plaintext
Raw Normal View History

2019-12-11 00:35:22 +00:00
;; shadow-cljs configuration
2020-03-09 07:51:06 +00:00
{:deps true
2020-03-08 08:54:58 +00:00
2020-03-09 07:51:06 +00:00
;; :dependencies
;; [[binaryage/devtools "0.9.10"]
;; [cider/cider-nrepl "0.23.0-SNAPSHOT"]
2020-03-08 08:54:58 +00:00
2020-03-09 07:51:06 +00:00
;; [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"]]
2020-03-08 08:54:58 +00:00
2019-12-11 02:48:29 +00:00
:nrepl {:port 8701}
2019-12-11 00:35:22 +00:00
:builds
2019-12-11 02:48:29 +00:00
{:app
{:target :browser
:modules {:main {:init-fn frontend.core/init}}
2020-04-09 12:42:52 +00:00
:output-dir "public/js"
:asset-path "/js"
2020-04-02 07:06:53 +00:00
2020-02-19 03:24:37 +00:00
:compiler-options {:infer-externs :auto
:externs ["datascript/externs.js"]}
2020-04-01 07:10:13 +00:00
;; TODO: purge-css not working properly
;; :build-hooks [(shadow.hooks/purge-css
;; {:css-source "node_modules/tailwindcss/dist/tailwind.min.css"
2020-04-09 12:42:52 +00:00
;; :js-globs ["public/js/*.js"]
;; :public-dir "public/css"})]
2019-12-11 02:48:29 +00:00
: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
2020-04-01 13:37:41 +00:00
;; :http-root "public"
;; :http-port 8080
2020-03-08 03:00:39 +00:00
:preloads [devtools.preload]}
2020-03-04 07:02:42 +00:00
2019-12-11 02:48:29 +00:00
}}}