> can you define any target you want?
Yes, that was the main motivation. I would have used cljx but it wasn't
compatible with anything but clojure and clojurescript.
> say I want to slice between :nodejs vs :nashorn in a clojurescript target?
To declare a new target, change the :features and :output-path. Try this:
[{:source-paths ["src"],
:output-path "target/generated/nodejs",
:rules
{:filetype "cljs",
:features #{:nodejs},
:inner-transforms [],
:outer-transforms []}}
{:source-paths ["src"],
:output-path "target/generated/nashorn",
:rules
{:filetype "cljs",
:features #{:nashorn},
:inner-transforms [],
:outer-transforms []}}]
On Wed, Mar 25, 2015 at 3:59 PM, Ivan L <[email protected]> wrote:
> Also, you don't need a difference in require methods provided the
> clojurescript version is greater than one of the ones released recently.
> So long as your namespace declares the macros in itself via
> :require-macros, you can require the macro namespace like a clojure require
> in cljs. (phew)
>
> --
> Note that posts from new members are moderated - please be patient with
> your first post.
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "ClojureScript" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/clojurescript/I8HztgWsc9w/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/clojurescript.
>
--
Note that posts from new members are moderated - please be patient with your
first post.
---
You received this message because you are subscribed to the Google Groups
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.