@nlib/githooks

0.2.0 • Public • Published

@nlib/githooks

A command to enable/disable git hooks scripts in repository/.githooks.

Test codecov

Usage

Install @nlib/githooks with the --save-dev flag.

npm install --save-dev @nlib/githooks

That's all. If @nlib/githooks is installed as the direct devDependency (listed in the package.json), it configures git hooks automatically.

Then, your scripts in repository/.githooks are now recognized by git.

Note: Don't forget to run chmod +x .githooks/your-script.

Uninstalling

<0.1.x reverts the installation on uninstalling of this package. But uninstall lifecycle scripts were removed in npm@7, >0.1.x do nothing on uninstalling of this package.

If you want to revert the configuration, please follow the steps below.

  1. Run git config --local --unset core.hooksPath
  2. Delete the .githooks

Readme

Keywords

none

Package Sidebar

Install

npm i @nlib/githooks

Weekly Downloads

222

Version

0.2.0

License

Apache-2.0

Unpacked Size

16.3 kB

Total Files

17

Last publish

Collaborators

  • kei-ito