korean
Husky로 Git hooks 관리하기
Husky는 git commit, git push의 앞이나 뒤에 동작하는 hook을 쉽게 만들어주는 툴이다. 최근 Electron Bolierplate를 사용하려고 하는데, Repository에 정말 많은 개발 툴이 사용되고 있는 걸 봤고, 그 와중에 Husky라는 것을 처음 알게 되었다.
https://changhoi.github.io/posts/etc/husky/

example
slidev/package.json at main · slidevjs/slidev
Presentation Slides for Developers (Beta). Contribute to slidevjs/slidev development by creating an account on GitHub.
https://github.com/slidevjs/slidev/blob/main/package.json
GitHub - typicode/husky: Modern native Git hooks made easy 🐶 woof!
Modern native Git hooks made easy Husky improves your commits and more 🐶 woof! Edit package.json > prepare script and run it once: npm set-script prepare npm run prepare Add a hook: npx husky add .husky/pre-commit git add .husky/pre-commit Make a commit: git commit -m # `npm test` will run every time you commit For more use cases (project in sub-directory, custom directory, CI support, ...), see documentation.
https://github.com/typicode/husky
not prepare, devpreinstall ok
스크립트 | pnpm
버전: 7.x pnpm이 package.json의 scripts 필드를 처리하는 방법. Runs only on local pnpm install. Runs before any dependency is installed. This script is executed only when set in the root project's package.json.
https://pnpm.io/ko/scripts


Seonglae Cho