Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 935 Bytes

tools.md

File metadata and controls

60 lines (41 loc) · 935 Bytes

LIBRARY & TOOLS

JEST

TYPEDOC

Simple-git-hook:

Usage

Add simple-git-hooks to the project

npm install simple-git-hooks --save-dev

Add simple-git-hooks to your package.json. Fill it with git hooks and the corresponding commands.

For example:

{
  "simple-git-hooks": {
    "pre-commit": "npx lint-staged",
    "pre-push": "npm run typecheck",

    // if you'd prefer preserve all unused hooks
    "preserveUnused": true,

    // if you'd prefer preserve specific unused hooks
    "preserveUnused": ["commit-msg"]
  }
}
git config core.hooksPath .git/hooks/
rm -rf .git/hooks
# Update ./git/hooks
npx simple-git-hooks

Now all the git hooks are created.

if you change configuration:

npx simple-git-hooks