On Tuesday, 17 January 2012 20:35:17 UTC+11, Evan Mezeske wrote:
>
>
> > 
> > 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 
>
>
> I'd love to hear other ideas. 
>

I have a version of cljs-watch - in this I use a staging dir for builds.
This also lets me stage all code for a checkouts dir too.

I am not saying that this is necessarily the best way - but it is working 
well for me at the moment...

https://github.com/davesann/cljs-watch
 

>
> > 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. 
>

Provided the crossovers have been generated presumably.

 

>
> > 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. 
>

Yes, this is what I would like to do.
For distributing reusable cljs libs that can be compiled along with 
someones cljs project, it is necessary to produce a jar of the cljs files, 
including crossovers etc.
So for a project you might be producing both a jvm jar and a cljs jar. Or, 
a single jar with both in. I am not clear that this can be easily done at 
the moment.

I don't have an answer for this yet. But I do have generic libs that I need 
to jar...currently I can only compile via my checkouts_cljs method...(in my 
case, I don't copy into src_cljs.

Do you just use lein jar - and jar both src and src-cljs?

D

-- 
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

Reply via email to