GitHub - typicode/husky: Git hooks made easy
source link: https://github.com/typicode/husky
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
husky
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 pkg set scripts.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
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.
Recommend
-
125
-
94
JSON Server Get a full fake REST API with zero coding in less than 30 seconds (seriously) Created with <3 for front-end developers who need a quick back-end for prototyping and mocking.
-
80
lowdb Simple to use local JSON database. Powered by plain JavaScript
-
3
I’m happy to announce the release of husky 5 🎉 🐶 woof! During the past years, husky has grown in complexity. With this version, I wanted to go back to something simpler, more flexible
-
7
Setting up and maintaining a test framework can sometimes be complex and time consuming. I've created xv to be a test runner that is low maintainance, easy to setup and use. xv is great for sm...
-
4
使用 Husky 来管理 git hook Posted on 04/15/2022 by Ein Verne |
-
3
Git hooks made easy on go
-
3
每周轮子之 husky:统一规范团队 Git Hooks 4Ark 2022-05-30 ...
-
6
-
2
Git on Windows Made Easy With GitHub Desktop A Git GUI is a graphical user interface for using Git. It is a tool that aids developers in visualizing and executing Git operations...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK