node-pac
Pack your node_modules as *.tgz files for version control and easy deploys
Why?
Because commiting the node_modules
into source control sucks. It kills
diffs and makes code reviews shitty.
Read more in my blog post.
Installation
npm install -g pac
Usage
From a command prompt, run pac
from your project's root directory.
You'll see a new .modules
that contains gzipped tarballs of your
dependencies. When deploying, you'll probably need a script that installs
your modules from the .modules
directory. npm natively supports
installing them:
npm install .modules/mkdirp-v0.3.5.tgz