Fork me on GitHub
#shadow-cljs
<
2024-02-01
>
sakalli14:02:04

hi setting up an optional preload for flowstorm in shadow-cljs.edn like so:

:devtools {:preloads [#shadow/env ["KP_STORM_SHADOWCLJS_PRELOAD" :as :symbol
                                              :default panorama.dev-tools.core]
                                 panorama.dev-tools.core
                                 panorama.dev-tools.preview
                                 panorama.dev-tools.portal]
                      :http-port 8021}
Need to put some namespace as default as otherwise if the env var is not set it will evaluate to nil and the require will fail. Is there a way to do this without setting the :default?

thheller18:02:22

why does it need to be an env var at all? I guess it could filter nil. you could use --config-merge instead https://shadow-cljs.github.io/docs/UsersGuide.html#config-merge

sakalli05:02:54

thanks for your suggestion on --config-merge. the aim was to dynamically adjust the configuration at startup, in this case for the flowstorm alias we're using, so no strict need for env vars per se.

danielcompton22:02:02

Looks like shadow-cljs would qualify

thheller08:02:02

I want to like this, but I observed the ICO craze a while ago and this very much looks like that. These things looked like scams back then and still do. a fancy website does not make an economically viable project. thanks for the link though, I'll definitely observe.

danielcompton22:02:13

Doesn’t seem like they support Maven currently 😞