Skip to content

therealparmesh/pro-commit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pro-commit

Easily add a Git pre-commit hook to your Node.js project.

npm npm

Install

npm install --save-dev pro-commit

Uninstall

npm uninstall --save-dev pro-commit
# change this if the project has a custom Git hooks path
rm .git/hooks/pre-commit

Usage

Add prepare and pro-commit:task to scripts in package.json:

{
  "scripts": {
    "prepare": "pro-commit",
    "pro-commit:task": "..."
  }
}

Run install to ensure that the prepare lifecycle script sets up a Git pre-commit hook:

npm install

About

Easily add a Git pre-commit hook to your Node.js project.

Resources

License

Stars

Watchers

Forks

Packages

No packages published