bootme-githook

0.0.17 • Public • Published

bootme-githook

Task to create Cross-platform git hooks. It will create a sym link from ./git_hooks/<name> to ./git/hooks/<name> and allows you to execute any script on the hook. Your hooks are now versionable!

Usage

registry.addTask(
  new GitHookTask('hookme').setConfig({
    name: ['precommit'],
    hookDir: 'git_hooks'
  })
)
  1. Remove the suffix .sample from default hook files in .git/hooks
  2. Place your files under ./git_hooks/<name>
  3. Execute Task

Rollback

  • Unlink

Readme

Keywords

Package Sidebar

Install

npm i bootme-githook

Weekly Downloads

0

Version

0.0.17

License

ISC

Last publish

Collaborators

  • starptech