prepush-githook
v0.1.1
Published
An npm installable git pre-push hook used to lint and test your code
Downloads
14
Readme
githook-prepush

Introduction:An npm installable git pre-push hook used to lint and test your code
Installation
npm install githook-prepush --save-dev
Usage
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.