polylith

J 2026-01-21T15:22:56.437559Z

Hi guys! I have introduced a new cljs base and project in my job (old JS stuff rewrite into ClojureScript nodejs stuff). A big thanks for the support of cljs. I have a question about the shadow-cljs.edn config file. In the polylith realworld example, I see that there are two shadow-cljs.edn file. One on the root and the other on the project. It's possible to keep one or I need two files?

seancorfield 2026-01-21T16:18:48.556739Z

Is one for dev (with a REPL etc) and one for the production build of just that project? That would match the deps.edn in the root (for :dev) and the deps.edn in the project (potentially for production/artifact builds, and for running tests).

J 2026-01-21T16:53:44.946829Z

Yeah make sense. One file for the dev and one for the build.

seancorfield 2026-01-21T17:13:32.794989Z

With pure CLJ, we have a single build.clj at the root, but we have a pretty complex set of functions in there which interact with Polylith's API and use "working directory" settings to build JARs via tools.deps and tools.build stuff. We could have much simpler build.clj files in each of the projects (and then we'd probably have a bb.edn file in the root to drive all of that) but... it all works so refactoring/simplifying is low priority.