I'm going to make a big project with node.js and am currently trying to figure out a few things.
In previous node projects, I had an extra folder for all node modules that I used. This folder was ignored by git, and I managed versions and updates via git subodules, which was not easy (no dependencies, updating to a new version was not always fun.)
I'm looking for:
npm install packagename
npm dump_modules_into_file
Thus, everyone involved in this project can do:
npm install_or_update_modules_from_file
I don't want node_modules track my git repository. Basically, I want something similar to how symonfy2 handles its bundles .
PS: I know about npm submodule packagename , but this command is not very useful because it does not install dependencies and does not update modules.
PS2: I'm ready for package.json , but it also has some disadvantages. (There are no parameters, and you need to update the module versions manually.)
source share