Is it fair to say that the accepted pattern now (with reader conditionals) 
is to have a single src/ directory and then letting the file extension 
(cljs,clj,cljc) do the heavy lifting rather than having a directory for 
each?

that would be handy if so. 

-d


On Friday, May 29, 2015 at 3:10:30 PM UTC-5, Daniel Compton wrote:
>
> When porting a library to reader conditionals, I found that I only needed 
> one source directory for all my cljc and .clj files. Cljsbuild just picks 
> up the ones it needs and leaves the .clj ones. 
>
> So in some cases it may not be necessary to have a clj/, cljs/, and cljc/ 
> folder, although in applications this structure might make more sense. 
> On Fri, 29 May 2015 at 10:31 pm Robin Heggelund Hansen <skinn...@gmail.com 
> <javascript:>> wrote:
>
>> No, it doesn't. I update with `lein ancient update :all` and committed 
>> without checking if it worked. It's fixed locally :)
>>
>>
>> fredag 29. mai 2015 12.01.32 UTC+2 skrev Colin Yates følgende:
>>
>>> Thanks Robin, that was helpful. I notice that you are using garden 1.2.6 
>>> - that throws a CNF for garden.core and the garden page recommends not 
>>> using it - does it work for you?
>>>
>> On 29 May 2015, at 10:49, Robin Heggelund Hansen <skinn...@gmail.com> 
>>> wrote:
>>>
>>> Take a look at my project.clj file.
>>>
>>> https://github.com/Skinney/oslo-programmene/blob/development/project.clj
>>>
>>> fredag 29. mai 2015 11.17.25 UTC+2 skrev Colin Yates følgende:
>>>>
>>>> In the vein of "there are no stupid questions" :), how does one 
>>>> structure a combined clj and cljs project that uses reader conditionals? 
>>>> At 
>>>> the moment I am using cljx and have:
>>>>  - src/clj for clojure files
>>>>  - src/cljs for clojurescript files
>>>>  - src/cljx for cljx 
>>>>  - target/cljx/clj for clojure files compiled (transpiled?) from cljx
>>>>  - target/cljx/cljs for clojurescript files compiled (transpiled?) from 
>>>> clix
>>>>
>>>> On the source path in cljsbuild for example I have src/cljs and 
>>>> /target/cljx/cljs
>>>>
>>>> To remove cljx and use reader conditionals is it sufficient to:
>>>>  - replace src/cljx with src/cljc 
>>>>  - remove target/cljx from cljsbuild source path
>>>>  - add src/cljc to cljsbuild source path
>>>>  - add src/cljc to leiningen source path
>>>>
>>>> Thanks!
>>>>
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google
>>> Groups "Clojure" group.
>>>
>>> To post to this group, send email to clo...@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+u...@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+u...@googlegroups.com.
>>>
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clo...@googlegroups.com 
>> <javascript:>
>> Note that posts from new members are moderated - please be patient with 
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+u...@googlegroups.com <javascript:>
>> 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+u...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

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

Reply via email to