@dotcom-tool-kit/husky-npm

4.2.0 • Public • Published

@dotcom-tool-kit/husky-npm

A plugin to add git hooks to your project via husky. These hooks can be configured with different tasks as your project requires.

Installation

With Tool Kit already set up, install this plugin as a dev dependency:

npm install --save-dev @dotcom-tool-kit/husky-npm

And add it to your repo's .toolkitrc.yml:

plugins:
    - '@dotcom-tool-kit/husky-npm'

Install this plugin's hooks:

npx dotcom-tool-kit --install

Options

none

Hooks

Event Description Installed to... Default tasks
git:precommit installs git's pre-commit hook package.json LintStaged
git:commitmsg installs git's commit-msg hook package.json none

Readme

Keywords

none

Package Sidebar

Install

npm i @dotcom-tool-kit/husky-npm

Weekly Downloads

655

Version

4.2.0

License

ISC

Unpacked Size

4.09 kB

Total Files

9

Last publish

Collaborators

  • robertboulton
  • quarterto
  • the-ft