I’m using package.json file to define nodejs requirements, along with npm update, and of course is working fine.
How can I manage (update the easy way) other third party libraries with node? For example:
https://github.com/documentcloud/backbone.git
https://github.com/twitter/bootstrap.git
In vendor folder.
Summary: I think you want to use http://twitter.github.com/bower/
Details:
There are two ways to understand your question:
npmcode?The question is worded as the former, but from your included examples I think what you want to ask the latter.
In case of server-side code, just insist all code gets shipped with
npm-stylepackage.jsonmanifest. If the author of the code is unresponsive, fork it and add the manifest. There is no excuse.For client-side code, the situation is different. There is no established standard for package management, however it’s a widely recognized problem and very active field of development. Several challengers have risen recently, trying to grab the dominant position: BPM, Jam or Ender. It’s your call which to pick, they are well summarized here: A package manager for web assets
However, all of the above address a slightly too ambitious problem – they try to sort out the transport of those modules to the browser (via lazy loading, require-js style, dependency resolution, concatenation/minification etc.) This also makes them more difficult to use.
A new entrant to the field is Bower from Twitter. It focuses just on download/update lifecycle in your
vendorfolder and ignores the browser delivery. I like that approach. You should check it out.