I've done it multiple ways:

src/app/foo.clj
src-cljs/app/bar.cljs
src-cljc/app/baz.cljc

AND

src/clj/app/foo.clj
src/cljs/app/bar.cljs
src/cljc/app/baz.cljc

I prefer the latter, probably for ease of navigation in the command line 
and in emacs. But I totally agree that having them all together 
(src/app/...) would be nice. But I prefer to split up my "client", 
"server", and "shared" code. But now, you have me questioning if our notion 
of file paths and directories really are useful when structuring code. I 
recall an early argument for Light Table being against the notion of files 
and directories for structuring code.

On Friday, May 29, 2015 at 3:17:25 AM UTC-6, Colin Yates wrote:
>
> 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 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