I'm in the process of evaluating Polylith for an existing ClojureScript web app, and it's not immediately clear to me, how should Polylith be used with web apps?
I think in Polylith terms, what one needs is a "Web UI" component. This component has only one function in its
core.clj, which serves an index.html file from the component's resources folder. A system's base would have an endpoint ("/"), which points to the component's lone clj function.
The component's source foulder would also contain all the ClojureScript code. In a build step somewhere, the cljs code would be compiled, css generated, along with any other front-end build tasks.
What I find confusing in this approach, is that we can't define build steps for components, only for systems?
If anyone has any experience in setting up a dev environment and a prod build, I greatly appreciate all comments.
Edit: This should've maybe been labelled General, but I don't know how to change it. Sorry!