I have a project with several components. Parts are a pretty standard Clojure programs with logically separate but related functionality, parts are ClojureScript intended for web browsers, and in the future parts might be React Native ClojureScript. There are good code-sharing reasons for keeping them in one codebase, but that also comes with a lot of downsides.
Uberjar size is one. There are lots of reasons to want to reduce jar size, including performance, but in my case it's also a design constraint. AWS Lambda only gives you a 50MB budget. The jars for all AWS APIs add up to something just north of that already, and for reasons beyond my comprehension AWS doesn't make them available on the classpath the same way they do for non-JVM runtimes. A part of my code just talks to AWS services, but in the simplest possible project.clj, it'll also be lugging e.g. ClojureScript around. Parts use datascript, but others don't. Unfortunately in my experience using minimizers like ProGuard with uberjars turns out to be a great way to get a tiny jar that doesn't work. (I know some folks are experimenting with that to make that better.) It seems that the most popular approach to an application that has a lot of components is a cluster of separate repos, or at least independent directories within a single repository. Does anyone have any experience with a single codebase that produces a few different artifacts; say, a few different uberjars, some static JS files and maybe an Android/iOS deployable? Was it a giant pain in the neck? Is boot helpful at all here? Doing this with lein profiles feels a little gauche. lvh -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.