On Jan 16, 5:09 pm, Dave Sann <daves...@gmail.com> wrote: > This looks interesting. > > I have a couple of comments and questions: > > 1. I am wary of the copying of cls -> cljs files in the src tree. Due to > the (inevitable at some point) confusion over which code is authored as > cljs and which copied. I really think that these need to be kept separate > (somehow).
At the moment, any differentiation is left up to the user of lein- cljsbuild. Personally, if I have a project in the emezeske.project namespace, I have a nested namespace emezeske.project.crossover that contains all my shared code (this is reflected in the example projects and README). I definitely agree that confusion is possible, but at least for me, the crossover namespace seems to keep me sane. There's an open case for making lein-cljsbuild either respect lein's :extra-classpath-dirs setting, or adding a similar lein- cljsbuild-specific analog. In that case, it would be possible to keep the shared code in a special directory by itself, I suppose. I'd love to hear other ideas. > 2. Do lein "checkouts" work with cljs compilation? At the moment, lein-cljsbuild simply builds all the cljs under the :source-path with which it's configured. I *believe*, however, that if the source files in that directory reference namespaces from the classpath, that the compiler will automatically pull those in and compile them. My understanding of lein checkouts is that they work by altering the classpath, so I think the answer to your question is: yes. > 3. Any thoughts on packaging cljs jars and clj jars? For my personal projects, I currently favor the use of jars for my cljs dependencies. I'm not versed in the arguments on both sides of this debate, though, so I can't commit to recommending this for other projects. I will say, though, that from a practical perspective it seems to work nicely. > Cheers > > Dave -- 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