0.4.0 • Published 2 years ago

@backtrack/preset-git-hooks v0.4.0

Weekly downloads
4
License
MIT
Repository
github
Last release
2 years ago

@backtrack/preset-git-hooks

npm Linux Build Status Windows Build Status Code Coverage

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',
			},
		},
	},
};
0.4.0

2 years ago

0.3.0

4 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago