Hi,

I'm using a Chestnut based template in my project and it was quiet easy to
add cljc support. I never used cljx bevor so I didn't know how hard or easy
it would be.

I read that cljc files do not have to live in their own source path but can
hang around the other files. For my setup I choose to put them into a
separate folder anyway. To add that I added it to the global :source-paths
in my project.clj:

:source-paths ["src/clj" "src/cljs" "src/cljc" "dev"]

Then I added it to the :source-path of cljsbuild and uberjar. Here's the
uberjar definition as an example, which also contains one cljsbuild conf:

:uberjar {:source-paths ^:replace ["src/clj" "src/cljc"]
          :hooks [leiningen.cljsbuild leiningen.sass minify-assets.plugin/hooks]
          :env {:production true}
          :aot :all
          :omit-source true
          :cljsbuild {:jar true
                      :builds {:app
                                {:source-paths ^:replace ["src/cljs" "src/cljc"]
                                 :compiler {
                                            :optimizations :advanced
                                            :pretty-print false}}}}}})


Hope that helps,
Torsten.

Sunil S Nandihalli <sunil.nandiha...@gmail.com> schrieb am So., 6. März
2016 um 06:25 Uhr:

> Hi everybody,
>  I am trying to port an old project which uses cljx plugin and reagent to
> use cljc and reader-conditionals. I was wondering if somebody can share a
> simple template which has clj, cljs and cljc files in it?
>
> Thanks and regards,
> Sunil.
>
> --
> 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.
>

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