Using git submodules is my preferred style when writing applications. That 
way you point to an exact source code tree, all the while you keep their 
respective commit histories. I have a Git program (in Node.js) that manages 
the submodules for Node.js dependencies, <https://github.com/Acubed/git-node>. 
I'd prefer to use it for libraries too, but it doesn't work out just 
exactly right yet (for development vs. production dependencies, etc).

No matter what, avoid checking in external projects to your source tree, 
you lose all their development history when you refer to a tree instead of 
a commit (as submodules do). If you must make modifications to the 
submodule, fork it and point to  your forked version (this is where 
submodules excel over using package repositories).

Austin Wright.

On Wednesday, December 26, 2012 5:05:45 PM UTC-7, José F. Romaniello 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
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

Reply via email to