This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-04-24
Channels
- # announcements (3)
- # babashka (23)
- # beginners (35)
- # cider (3)
- # clara (3)
- # clj-kondo (14)
- # cljdoc (1)
- # cljs-dev (1)
- # clojure (82)
- # clojure-austin (9)
- # clojure-europe (5)
- # clojurescript (23)
- # conjure (62)
- # cursive (73)
- # defnpodcast (1)
- # emacs (3)
- # ethereum (1)
- # gratitude (1)
- # hyperfiddle (12)
- # introduce-yourself (1)
- # leiningen (2)
- # lsp (44)
- # malli (7)
- # polylith (2)
- # portal (17)
- # re-frame (5)
- # reitit (3)
- # sci (8)
- # shadow-cljs (5)
- # tools-build (11)
What would be the right way to get a build config that has either :dev
or :release
value merged into it correctly? It's needed to make things use proper shadow-cljs values when using clj-run
.
Currently, I have this abomination:
(defn- get-config [build-id mode]
(let [init (shadow.build.api/init)
build-config (shadow/get-build-config build-id)
build-state (shadow.build/configure init mode build-config)]
(:shadow.build/config build-state)))
uhm there is no dedicated helper function for this, well except maybe for this https://github.com/thheller/shadow-cljs/blob/1708acb21bcdae244b50293d17633ce35a78a467/src/main/shadow/build.clj#L169?
I guess maybe this could be its own function? https://github.com/thheller/shadow-cljs/blob/1708acb21bcdae244b50293d17633ce35a78a467/src/main/shadow/build.clj#L289-L293