githook-scripts
Use package.json
scripts for git hooks
Example
{
"name": "your-package",
"scripts": {
"test": "mocha",
"githook:pre-commit": "npm run test"
},
"devDependencies": {
"githook-scripts": "latest"
}
}
easily run npm scripts in the git lifecycle
Homepage npm JavaScript Download
Use package.json
scripts for git hooks
{
"name": "your-package",
"scripts": {
"test": "mocha",
"githook:pre-commit": "npm run test"
},
"devDependencies": {
"githook-scripts": "latest"
}
}