Have ideas to improve npm?Join in the discussion! »

    tdog-husky-hg

    0.1.6 • Public • Published

    tdog-husky-hg

    Git / Mercurial hooks made easy.

    tdog-husky-hg is a fork of husky-hg. The only difference is, that it is a custom validator.

    Husky can prevent bad commit.

    Install

    npm install tdog-husky-hg --save-dev
    yarn add tdog-husky-hg --dev
    git commit -m "Keep calm and commit"

    Existing hooks aren't replaced and you can use any git/Mercurial hook.

    If you're migrating from ghooks, simply run npm uninstall ghooks --save-dev && npm install husky --save-dev and edit package.json. Husky will automatically migrate ghooks hooks.

    Uninstall

    npm uninstall tdog-husky-hg
    yarn remove tdog-husky-hg

    Tricks

    Git GUI clients support

    If you've installed Node using the standard installer, nvm or homebrew, Git hooks will be executed in GUI applications.

    Working with multiple version of Node

    If nvm is installed, husky will try to use the default/current installed Node version or use the project .nvmrc.

    Tip to use the system-installed version of node, nvm provides a system alias

    Git submodule and subtree support

    Yes

    Mercurial subrepo support

    No

    Cygwin support

    Yes

    Yarn support

    Please use yarn v0.24+

    License

    MIT

    Install

    npm i tdog-husky-hg

    DownloadsWeekly Downloads

    1

    Version

    0.1.6

    License

    MIT

    Unpacked Size

    109 kB

    Total Files

    23

    Last publish

    Collaborators

    • avatar