Events.js icon indicating copy to clipboard operation
Events.js copied to clipboard

Ender support

Open pier-oliviert opened this issue 13 years ago • 4 comments

Title kinda says it all, I would like to have it included in the NPM :)

Thanks

pier-oliviert avatar Jan 06 '12 16:01 pier-oliviert

Hmm.. i have no real experience with ender, but I will start looking into and see what I come up with..

kbjr avatar Jan 07 '12 09:01 kbjr

It's pretty trivial to add it, and this is what I use to manage all my loosely coupled module.

pier-oliviert avatar Jan 07 '12 13:01 pier-oliviert

Okay, I've looked at this and it looks like ender makes use of commonjs module structures, so something like this should work, correct?

if (typeof exports !== 'undefined' && typeof module !== 'undefined' && module.exports) {
  exports = module.exports = Events;
}

(again, i've never used ender, so i'm just making sure i understand how it works first.)

kbjr avatar Jan 08 '12 05:01 kbjr

Yeah, it seems to be the way to go, You also need to add your package to NPM(Node package manager)

and set your package.json to add dependencies if it has any

pier-oliviert avatar Jan 09 '12 15:01 pier-oliviert