:externs are only need for :advanced builds.

On Mon, Aug 4, 2014 at 11:56 AM, Paul Cowan <[email protected]> wrote:
> OK, great.  That makes sense.
>
> I noticed in the OM repo that you reference the preamble and not the externs
> for the test cljsbuild:
>
>   :cljsbuild {
>     :builds [{:id "test"
>               :source-paths ["src" "test"]
>               :compiler {
>                 :preamble ["react/react.min.js"]
>                 :output-to "script/tests.simple.js"
>                 :output-dir "script/out"
>                 :source-map "script/tests.simple.js.map"
>                 :output-wrapper false
>                 :optimizations :simple}}
>
> Why did you not reference the externs in this case?
>
> Cheers
>
> Paul Cowan
>
> Cutting-Edge Solutions (Scotland)
>
> blog:      http://thesoftwaresimpleton.com/
> website: http://www.cuttingedgesolutionsscotland.com/
>
>
> On 4 August 2014 16:50, David Nolen <[email protected]> wrote:
>>
>> externs are resolved via the Java classpath. So for the React JAR I
>> packaged:
>>
>> :externs ["react/externs/react.js"]
>>
>> David
>>
>> On Mon, Aug 4, 2014 at 11:22 AM, Paul Cowan <[email protected]> wrote:
>> >>> and why is the externs key not pointing to the externs/react.js file?"
>> >
>> >>> What is his in reference to
>> >
>> > I mean that in your react-cljs repo, the path to the externs file is
>> > src/react/externs/react.js.
>> >
>> > I think I'm missing to what the :externs key actually points to.
>> >
>> > Cheers
>> >
>> > Paul Cowan
>> >
>> > Cutting-Edge Solutions (Scotland)
>> >
>> > blog:      http://thesoftwaresimpleton.com/
>> > website: http://www.cuttingedgesolutionsscotland.com/
>> >
>> >
>> > On 4 August 2014 15:22, David Nolen <[email protected]> wrote:
>> >>
>> >> :preamble simply prepends some file to the front to create the final
>> >> concatenated output.
>> >>
>> >> "and why is the externs key not pointing to the externs/react.js file?"
>> >>
>> >> What is this in reference to?
>> >>
>> >> David
>> >>
>> >> On Mon, Aug 4, 2014 at 9:59 AM, Paul Cowan <[email protected]> wrote:
>> >> > What does the preamble key mean, where does it point to and why is
>> >> > the
>> >> > externs key not pointing to the externs/react.js file?
>> >> >
>> >> > Cheers
>> >> >
>> >> > Paul Cowan
>> >> >
>> >> > Cutting-Edge Solutions (Scotland)
>> >> >
>> >> > blog:      http://thesoftwaresimpleton.com/
>> >> > website: http://www.cuttingedgesolutionsscotland.com/
>> >> >
>> >> >
>> >> > On 4 August 2014 13:38, David Nolen <[email protected]> wrote:
>> >> >>
>> >> >> Note that this is not guaranteed to work and indeed for many
>> >> >> libraries
>> >> >> it
>> >> >> does not.
>> >> >>
>> >> >>
>> >> >> On Monday, August 4, 2014, Paul Butcher <[email protected]>
>> >> >> wrote:
>> >> >>>
>> >> >>> Something else that you might find useful is this:
>> >> >>>
>> >> >>> http://swannodette.github.io/2014/03/14/externs-got-you-down/
>> >> >>>
>> >> >>> Which will enable you to use the .js file itself as its own externs
>> >> >>> file,
>> >> >>> rather than having to create one yourself.
>> >> >>>
>> >> >>> --
>> >> >>> paul.butcher->msgCount++
>> >> >>>
>> >> >>> Silverstone, Brands Hatch, Donington Park...
>> >> >>> Who says I have a one track mind?
>> >> >>>
>> >> >>> http://www.paulbutcher.com/
>> >> >>> LinkedIn: http://www.linkedin.com/in/paulbutcher
>> >> >>> Skype: paulrabutcher
>> >> >>>
>> >> >>> Author of Seven Concurrency Models in Seven Weeks: When Threads
>> >> >>> Unravel
>> >> >>> http://pragprog.com/book/pb7con
>> >> >>>
>> >> >>> On 4 August 2014 at 13:03:37, Eduard Bondarenko ([email protected])
>> >> >>> wrote:
>> >> >>>
>> >> >>> Hello Paul,
>> >> >>>
>> >> >>> Take a look at dnolen's react package -
>> >> >>> https://github.com/swannodette/react-cljs
>> >> >>>
>> >> >>> Best regards,
>> >> >>> Eduard
>> >> >>>
>> >> >>>
>> >> >>> On Mon, Aug 4, 2014 at 2:25 PM, Paul Cowan <[email protected]>
>> >> >>> wrote:
>> >> >>> > I have created this https://clojars.org/com.momentjs/moment
>> >> >>> > package
>> >> >>> > but
>> >> >>> > I am struggling to find documentation/examples on what exactly
>> >> >>> > the
>> >> >>> > preamble
>> >> >>> > key does or how I should reference this in my project.
>> >> >>> >
>> >> >>> > --
>> >> >>> > 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.
>> >> >>>
>> >> >>> --
>> >> >>> 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.
>> >> >>>
>> >> >>> --
>> >> >>> 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.
>> >> >>
>> >> >> --
>> >> >> 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.
>> >> >
>> >> >
>> >> > --
>> >> > 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.
>> >>
>> >> --
>> >> 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.
>> >
>> >
>> > --
>> > 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.
>>
>> --
>> 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.
>
>
> --
> 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.

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

Reply via email to