Re: CLJX & CLJS problem

2014-02-15 Thread Karsten Schmidt
Thank you all so much for the great insights & references! Thanks to Chas' sample project I got it all working now, so expect a few new lib releases soon! Cheers, K. On 14 February 2014 11:00, Chas Emerick wrote: > I've added a sample.project.clj file to the cljx repo and pointed to it from > the

Re: CLJX & CLJS problem

2014-02-14 Thread Chas Emerick
I've added a sample.project.clj file to the cljx repo and pointed to it from the README. I can see how the confusion may have gotten started due to a particular detail in the example configuration snippet that was in the README, which is also fixed. If someone wants to submit a patch so that

Re: CLJX & CLJS problem

2014-02-14 Thread Dave Della Costa
Hi Chas, thanks for the clarification--it was definitely not clear to me how this worked so I appreciate the explanation. Regarding the PR, I suppose the same points you brought up here are relevant there, since I proposed including my (mistaken) notion of how source-paths work for cljx-based libs

Re: CLJX & CLJS problem

2014-02-14 Thread Chas Emerick
This isn't really right. :source-paths are for your _sources_, not a place to drop in whatever paths you want either on the classpath or included in jar files, etc. Also, all generated content should go into `target/*`, so that `lein clean` will have its intended effect (eliminating all artif

Re: CLJX & CLJS problem

2014-02-13 Thread Dave Della Costa
Hi Karsten, Strangely, I was doing the exact same thing as you yesterday and struggled for a bit until I found settings that work. I achieved success when I used the configuration from Cornice as a template: https://github.com/rkneufeld/cornice/blob/master/project.clj ...with one exception, my

Re: CLJX & CLJS problem

2014-02-13 Thread Kevin Lynagh
It sounds like you have everything setup correctly---nothing stands out to me as being a problem. I can't tell for sure without the project source code, though. Take a look at Prismatic Schema's project.clj: https://github.com/Prismatic/schema/blob/master/project.clj they have the same use

CLJX & CLJS problem

2014-02-13 Thread Karsten Schmidt
I've been busy working on a few libraries targetting both Clojure & ClojureScript, however so far have only tested the CLJ side and now that it comes to addressing CLJS am running in circles (and on fumes) unsuccessfully trying to tweak my project settings to make things work. All my source is usi