0.1.1 • Published 11 years ago
prepush-githook v0.1.1
githook-prepush


Introduction:An npm installable git pre-push hook used to lint and test your code
Installation
npm install githook-prepush --save-devUsage
Config scripts and prepush fields in your project's package.json:
{
"scripts": {
"lint": "your lint command",
"test": "your test command",
"xxx": "your xxx command"
},
"prepush": ["lint", "test", "xxx"]
}
note:you can customize the script name(xxx),then to do any thing you want.