A couple of months ago I stumbled upon the npm package husky. It provides a way to hook into various git hooks and brings some nice opportunities in improving DX.
After having husky and a few hooks in some various git projects, I thought it would be a fun mini project to make these hooks into a separate npm package: @jeliasson/husky-hooks was created.
This npm package aims to increase the developer experience and consistency by providing a set of hooks that can be opted-in the development lifecycle. It depends on husky for pre-commit and pre-push hooks, and a few other zero/low dependency packages.
The package is built with TypeScript and currently has 3 opt-in hooks that can be used; check-branch
, check-lock-files
and run-cmd
.
The package is still under development but is considered somewhat stable. The ambition is to have a stable v1.0.0 by end of 2022 and maintain the package and dependency version bumping as long as I use husky.
Feel free to try it out and/or contribute if you see any improvements!