Closed sjama closed 11 years ago
Have a look at #1326
Ghost is intended to be both an application, and a module, oh and while we're here, a platform too ;)
npm-shrinkwrap takes away the second problem (the blog post you link to was written before npm-shrinkwrap was introduced). We will be bundling a shrinkwrap file with releases from now on (it should have been in 0.3.3 but got lost somehow).
I don't thing Ghost fits the model of things which should have the node_modules checked in. I think that was aimed at absolute end-user applications. More like something you might have built for a client than a big open source app come module come platform thing.
Ghost is an application and not a module, so we should check node_modules into git.
When distributing modules its advantageous to get the end-user to install dependencies, however this approach is not recommended for applications.
By checking the node_modules directory into git (not including dev dependencies) we avoid these problems.
Side-Effects
For more background on the subject of checking node_modules into git read this blog post from Mikeal Rogers author of request or watch Sane Dependency Management by Isaac Schlueter author of npm and maintainer of nodejs.