Skip to content

Support raw git hook names as npm scripts #94

Closed

Description

@julien-f

Hi,

I was previously using ghooks which used the raw names for git hooks (commit-msg instead of commitmsg).

I can understand your preference of removing - as it's closer to npm standard scripts but it would make the transition from ghooks easier the raw names were also supported.
Furthermore, I think it's clearer to use the git names because that's what one can find on the Internet.

Plus, I must say that, in my opinion, commit-msg is easier to read than commitmsg. :)

Activity

  1. vovacodes commented on Feb 14, 2017

    @vovacodes

    There is another issue with the current hook names. Say you have an npm script called commit, then if you define a husky hook "precommit" and run npm run commit npm will also automatically execute precommit just because of the way npm-scripts work. Is it possible to workaround this situation without renaming the commit script?

  2. iamstarkov commented on Feb 14, 2017

    @iamstarkov

    @wizardzloy there is no way to workaround it right now

  3. typicode commented on Apr 11, 2018

    @typicode
    Owner

    Closing as next version will use raw names, thanks for the suggestion :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions