Arian, thank you for the explanation and the build instruction!

On Apr 15, 2:35 pm, Arian Stolwijk <stolwijk.ar...@gmail.com> wrote:
> In the examples _ refers to the ghost module.
> As you might know, native prototypes are not extended. However if you like
> chaining methods, ghost is the solution.
>
> For example see the last example ofhttp://jsfiddle.net/fakedarren/jmvvp/
>
> On Sun, Apr 15, 2012 at 2:33 PM, Arian Stolwijk 
> <stolwijk.ar...@gmail.com>wrote:
>
>
>
>
>
>
>
> > Not really. All files are commonjs modules, so use require() and
> > module.exports etc.
> > To expose stuff for the demos, Darren used this main.js
> >https://gist.github.com/30505a5a98de236e6239that exposes stuff on a
> > mootools object.
>
> > So it will depend on users will build their code, either use the modules
> > all the way. That way you don't really need any global variables at all, or
> > use something like that main.js that exposes the API on some global
> > variables and use it in a more traditional way.
>
> > To build the code, you could follow those steps:
>
> > # make sure you have a recent version of node.js
> > npm install -g wrapup   # like Packager, but for cjs modules
> > mkdir moo2
> > cd moo2
> > # get the npm packages
> > npm install prime
> > npm install nodes
> > npm install slick
> > npm install moofx
> > # get the example main.js
> > curl
> >https://raw.github.com/gist/30505a5a98de236e6239/dcb712225a5185b07c72...>
> > main.js
> > # build the file
> > wrup -r ./main.js > moo.js
>
> > Once you got the hang of it, and are familiar with npm, it's really easy.
> > The idea is to provide some build system on the website, like mootools
> > always had.
>
> > On Sun, Apr 15, 2012 at 2:06 PM, tofu <enrique.e...@gmail.com> wrote:
>
> >> really cool!
> >> one question what is mootools._ ? does that have any relation to
> >> underscorejs?
>
> >> On Apr 13, 3:23 pm, fakedarren <darren.wadd...@gmail.com> wrote:
> >> > Hey y'all
>
> >> > Here are some MooTools 2 examples for anyone
> >> > interested:http://jsfiddle.net/user/fakedarren/fiddles/
>
> >> > It is still early work, and the API is still being worked on, but it
> >> > hopefully shows how some of the really basic, core features might work.
>
> >> > Cheers
> >> > Darren

Reply via email to