Hoplon has vendor and contrib library support: momentjs is in there
MomentJS:
https://github.com/tailrecursion/hoplon/tree/master/vendor/momentjs
Vendor libs:
https://github.com/tailrecursion/hoplon/tree/master/vendor
Boot automatically incorporates them into your compiled JS in correct
depende
You only need externs for ":optimizations :advanced". No need for :simple or
:none.
Also there is the package for hoplon of momentjs including externs:
https://clojars.org/io.hoplon.vendor/momentjs
On Monday, August 4, 2014 12:56:48 PM UTC-3, Paul Cowan wrote:
> OK, great. That makes sense.
>
:externs are only need for :advanced builds.
On Mon, Aug 4, 2014 at 11:56 AM, Paul Cowan 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"
>
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"]
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 wrote:
>>> and why is the externs key not pointing to the externs/react.js file?"
>
>>> What is his in reference to
>
> I mean that
>> 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-
: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 wrote:
> What does the preamble key mean, where does
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
Note that this is not guaranteed to work and indeed for many libraries it
does not.
On Monday, August 4, 2014, Paul Butcher 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
Could somebody give a brief outline of what would be involved in packaging
moment.js for clojars with externs?
Cheers
Paul Cowan
Cutting-Edge Solutions (Scotland)
blog: http://thesoftwaresimpleton.com/
website: http://www.cuttingedgesolutionsscotland.com/
--
Note that posts from new mem
10 matches
Mail list logo