2019-12-11 00:35:22 +00:00
|
|
|
;; shadow-cljs configuration
|
2020-03-09 07:51:06 +00:00
|
|
|
{:deps true
|
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
|
2020-07-08 15:06:06 +00:00
|
|
|
:modules {:main {:init-fn frontend.core/init}}
|
2019-12-11 02:48:29 +00:00
|
|
|
|
2020-04-11 13:17:31 +00:00
|
|
|
:output-dir "../resources/static/js"
|
2020-04-11 05:09:10 +00:00
|
|
|
:asset-path "/static/js"
|
2020-04-02 07:06:53 +00:00
|
|
|
|
2020-02-19 03:24:37 +00:00
|
|
|
:compiler-options {:infer-externs :auto
|
2020-04-15 09:07:44 +00:00
|
|
|
:output-feature-set :es6
|
2020-04-18 05:12:33 +00:00
|
|
|
:externs ["datascript/externs.js"
|
|
|
|
"externs.js"]}
|
2020-04-01 07:10:13 +00:00
|
|
|
;; TODO: purge-css not working properly
|
|
|
|
;; :build-hooks [(shadow.hooks/purge-css
|
2020-04-10 11:28:25 +00:00
|
|
|
;; {:css-source "node_modules/@tailwindcss/ui/dist/tailwind-ui.min.css"
|
|
|
|
;; :js-globs ["resources/static/js/*.js"]
|
|
|
|
;; :public-dir "resources/static/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
|
2020-04-10 05:39:45 +00:00
|
|
|
:preloads [devtools.preload]}}}}
|