toplenboren / simple-git-hooks

A simple git hooks manager for small projects
MIT License
1.32k stars 43 forks source link

feat: custom configuration #62

Closed epszaw closed 2 years ago

epszaw commented 2 years ago

This PR provides ability to set hooks from custom file in following way: simple-git-hooks ./path-to-config.json. It needs, when you need to setup different hooks in the same project time by time or depending on development environment/requirements. For example, in big projects some teams don't want to run anything related to frontend part, but wanna to run their own hooks or leave just common things, like commitlint.

toplenboren commented 2 years ago

Thanks, neat feature!

toplenboren commented 2 years ago

Released in https://www.npmjs.com/package/simple-git-hooks