Skip to content

turadg/npm-shrinkwrap-git-hooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

A set of scripts to automatically npm shrinkwrap and npm install as needed.

If you stage a change to package.json, the pre-commit hook will run npm shrinkwrap to update npm-shrinkwrap.json.

If a commit is merged that has changed npm-shrinkwrap.json, the post-merge hook will run npm install to update the node_modules directory.

Also included is a sample setup script which assumes that all these files are under bin/hooks in your repo.

Installation

Just copy the bin directory into your repo. Then each user runs bin/hooks/_setup.sh.

About

Automatically update npm shrinkwrap and install as needed Raw

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages