Andrew and I had that conversation as few days ago, and he convinced me that shipping code to end users should mean shipping with node_modules (this sentiment is repeated from the creators of npm it seems). That way, any given users' node setup/platform version issues don't affect your code. Thus, I don't think npm install as a hook for plugman for install time is necessary, not a good idea (at least not for this reason).
-Michal On Wed, Jul 3, 2013 at 10:31 AM, Anis KADRI <[email protected]> wrote: > You could also ship your plugin as a node package (with a package.json and > node_modules) and point your js paths to node_modules/ (just as +andrew > said). Maybe plugman should also support before_ and after_ hooks as well > in order to run "npm install" ? > > > On Wed, Jul 3, 2013 at 9:59 AM, Bryan Bishop <[email protected]> wrote: > > > On Tue, Jul 2, 2013 at 5:53 PM, Don Coleman <[email protected]> > wrote: > > > > > I ripped a bunch of Javascript code out of my Cordova NFC plugin and > > > created a NPM so I could reuse the code elsewhere. > > > > > > > Is this something that runs on a phone? Does this mean you're running > your > > node module through browserify first? > > > > - Bryan > > http://heybryan.org/ > > 1 512 203 0507 > > >
