Détail du package

hookem

4Catalyzer160MIT3.0.4

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

readme

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!

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

3.0.4 (2022-08-30)

Note: Version bump only for package hookem

3.0.3 (2022-08-29)

Note: Version bump only for package hookem

3.0.2 (2022-08-20)

Note: Version bump only for package hookem

3.0.1 (2022-08-20)

Note: Version bump only for package hookem

3.0.0 (2022-08-19)

Features

  • upgrade dependencies: svgo, chalk, etc (#342) (82f3317)

BREAKING CHANGES

  • SVGO upgraded to v2, which requires a compatible config file

2.0.1 (2021-10-07)

Note: Version bump only for package hookem

2.0.0 (2021-09-17)

BREAKING CHANGES

  • the codebase has migrated to native ESM which requires node 12+ and may cause issues downstream

1.0.9 (2021-09-16)

Note: Version bump only for package hookem

1.0.8 (2021-06-30)

Note: Version bump only for package hookem

1.0.7 (2021-06-18)

Note: Version bump only for package hookem

1.0.6 (2021-05-20)

Note: Version bump only for package hookem

1.0.5 (2021-05-20)

Note: Version bump only for package hookem

1.0.4 (2021-05-14)

Note: Version bump only for package hookem

1.0.3 (2021-04-22)

Note: Version bump only for package hookem

1.0.2 (2021-04-01)

Note: Version bump only for package hookem

1.0.1 (2021-03-16)

Note: Version bump only for package hookem