3.0.4 • Published 2 years ago

hookem v3.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Hook'em - simple git hook configuration

hookem turns simple simple CLI commands into git hooks. It's similar to Husky version 4, but even more minimal.

Setup

In your package.json add a gitHooks key mapping the hook to a command

{
  "gitHooks": {
    "precommit": "eslint ."
  }
}

Then add hookem to your package, it will install your configured hooks:

yarn add hookem

If you also have hookem installed, you can run

yarn hookem install

to update the locally configured hooks ourside of a yarn/npm install.

How it works

When hookem install runs it creates a hook file in your .git/hooks directory that calls yarn or npx with the command. That's it!

3.0.4

2 years ago

3.0.3

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago