2.0.0 • Published 8 years ago

node-modules-snapshot v2.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

node_modules Snapshot

Tar up the node_modules directory and store it in a temp directory so it can be restored later without running npm install.

This is useful on build nodes like Jenkins to speed up builds.

Usage

$ node-modules-snapshot
No snapshot found at "/var/folders/3v/zdkckktj2194hxp_8mwytzcw0000gn/T/node-modules-snapshot/node-modules-snapshot/0cd711ab164722d7409c910c0054bb6d6fa63f3392615ef62c8964474ad202ba.tgz"
Running "npm install" in "/Users/nmalaguti/git/example/"...

Packaging up "/Users/nmalaguti/git/example/node_modules/"...

Options

-n, --dry-run: don't actually do anything, just log what would be done
--npm: the path to the npm cli to use to run npm install