Package Exports
- @backtrack/preset-git-hooks
- @backtrack/preset-git-hooks/lib/preset-git-hooks.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@backtrack/preset-git-hooks) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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',
},
},
},
};