JSPM

@backtrack/preset-git-hooks

0.2.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 72
  • Score
    100M100P100Q78053F
  • License MIT

backtrack preset for adding git hooks

Package Exports

  • @backtrack/preset-git-hooks

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

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