prepush-githook

0.1.1 • Public • Published

githook-prepush prepush-githook prepush-githook version prepush-githook donwloads

prepush-githook

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.

Readme

Keywords

Package Sidebar

Install

npm i prepush-githook

Weekly Downloads

0

Version

0.1.1

License

MIT

Last publish

Collaborators

  • mytcer