Thank you all.. All these are very good points and I didnt know about shrinkwrap! I will try it.
2012/12/27 Feross Aboukhadijeh <[email protected]> > There was a blog post on the node.js blog comparing the npm-shrinkwrap and > node_modules approaches: > > > http://blog.nodejs.org/2012/02/27/managing-node-js-dependencies-with-shrinkwrap/ > > Basically, checking node_modules into git works fine until you need to use > a binary module, or a module with a binary dependency. You don't want to > check in binary files if your server is on a different platform than your > development environment. You can hack around it by adding rules to > gitignore the binary files and running "npm rebuild" when you deploy, but > npm-shrinkwrap is cleaner and simpler, in my opinion. > > Feross > > If you check in the binary, then your code won't run actually be > checking in binary filesyou use a binary > > > On Wednesday, December 26, 2012 8:59:11 PM UTC-8, Mikeal Rogers wrote: > >> I wrote an article about it a year ago, it's still relevant. >> >> http://www.mikealrogers.com/**posts/nodemodules-in-git.html<http://www.mikealrogers.com/posts/nodemodules-in-git.html> >> >> On Dec 26, 2012, at December 26, 20124:05 PM, José F. Romaniello < >> [email protected]> wrote: >> >> Hi all, I have read few times that is better to checking the dependencies >> folder into git when you are working on a project that must be deployed, it >> seems that this makes testing and maintainance easier. So, the advice seems >> "be flexible with the dependencies for libraries, and very strict for >> projects". >> >> For me the pros are: >> - dont have to blindly trust the correct use of semver from the package >> owner >> - make sure everyone has the same versions >> - probabily faster to deploy, since npm install will do nothing >> >> The bigger cons I see is that i dont like something in GIT that can be >> auto-generated. It will happen almost for sure that someone will commit a >> change in the package.json updating the version of the dependency and >> forget about the node_modules or vicecersa. It will be easy to notice if it >> breacks a test but not sure who wants to be dealing with that after all... >> >> Thoughts? experiences? >> >> >> Thanks! >> >> -- >> Job Board: http://jobs.nodejs.org/ >> Posting guidelines: https://github.com/joyent/**node/wiki/Mailing-List-** >> 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 >> nodejs+un...@**googlegroups.com >> >> For more options, visit this group at >> http://groups.google.com/**group/nodejs?hl=en?hl=en<http://groups.google.com/group/nodejs?hl=en?hl=en> >> >> >> -- > 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 > -- 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
