@backtrack/preset-git-hooks
v0.4.0
Published
backtrack preset for adding git hooks
Downloads
32
Maintainers
Readme
@backtrack/preset-git-hooks
About
backtrack
preset that adds git hooks via husky
.
Features
- Adds git hooks
Installation
npm install --save-dev @backtrack/preset-git-hooks
Usage
// backtrack.config.js
'use strict';
module.exports = {
presets: ['@backtrack/git-hooks'],
// pre-commit hook
'git-pre-commit': [],
// pre-commit hook
'git-pre-push': [],
/**
* add custom hooks
*/
'git-commit-msg': [],
config: {
husky: {
hooks: {
'commit-msg': 'npm run git-commit-msg',
},
},
},
};