`hookem` turns simple simple CLI commands into git hooks. It's similar to Husky version 4, but even more minimal.
npm install hookemhookem turns simple simple CLI commands into git hooks. It's similar to Husky version 4,
but even more minimal.
In your package.json add a gitHooks key mapping the hook to a command
``json`
{
"gitHooks": {
"precommit": "eslint ."
}
}
Then add hookem to your package, it will install your configured hooks:
`sh`
yarn add hookem
If you also have hookem installed, you can run
`sh`
yarn hookem install
to update the locally configured hooks ourside of a yarn/npm install.
When hookem install runs it creates a hook file in your .git/hooks directoryyarn
that calls or npx` with the command. That's it!