On Nov 18, 2013, at 03:57, vesper8 wrote: > I plan to use SVN and wanted to segment the existing project into many > smaller repos to lessen the chance of conflicts when being working on by > multiple people. > > One thing I want to do is move the node_modules out of the main application > repo because it causes commits and deployments to take waaay too long because > of how massive the node_modules folder is.
The node_modules directory should be in the same directory that contains your package.json file. > I understand that the node_modules can be anywhere above the application root > so right now I've set it up so it looks like this: > > Before: > /var/myProjects/ProjectX/node_modules/ > /var/myProjects/ProjectX/app.js > /var/myProjects/ProjectX/everything else > > After: > /var/myProjects/node_modules/ > /var/myProjects/ProjectX/app.js > /var/myProjects/ProjectX/everything else The purpose of having a node_modules folder in each project is so that each project can independently manage its own dependencies. Imagine ProjectX uses express 2.x, and so does ProjectY. So ProjectX/node_modules contains express 2.x and so does ProjectY/node_modules. Now you plan to move to a centralized node_modules folder. What happens when you want to upgrade to express 3.x, which necessitates changes to your project’s code? Are you prepared to make those changes to all of your projects simultaneously? -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
