Skip to content

utdemir/husky

This branch is 186 commits behind typicode/husky:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

68b4103 ยท Oct 21, 2021
Oct 18, 2021
Jul 1, 2021
Oct 21, 2021
Jul 6, 2021
Jul 6, 2021
Mar 29, 2021
Mar 29, 2021
Jan 6, 2021
Mar 29, 2021
Mar 29, 2021
Mar 29, 2021
Jul 1, 2021
Aug 25, 2021
Oct 21, 2021
Oct 21, 2021
Jul 1, 2021

Repository files navigation

husky

Open Collective Node.js CI

Modern native Git hooks made easy

Husky improves your commits and more ๐Ÿถ woof!

Install

npm install husky -D

Usage

Edit package.json > prepare script and run it once:

npm set-script prepare "husky install"
npm run prepare

Add a hook:

npx husky add .husky/pre-commit "npm test"
git add .husky/pre-commit

Make a commit:

git commit -m "Keep calm and commit"
# `npm test` will run every time you commit

For more use cases (project in sub-directory, custom directory, CI support, ...), see documentation.

Documentation

https://typicode.github.io/husky

Important Upgrading from v4 to v7 requires migrating previous config, please see the docs.

Articles

License

MIT

Sponsors

Companies

Does your company use husky? Ask your manager or marketing team if your company would be interested in supporting this project.

Individuals

Find husky helpful? Become a backer and show your appreciation with a monthly donation on Open Collective. You can also tip with a one-time donation.

GitHub sponsors can be viewed on my profile. All past and current Open Collective sponsors can be viewed on here.

About

Git hooks made easy ๐Ÿถ woof!

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 98.1%
  • Shell 1.9%