tarmolov / git-hooks-js

A tool to manage and run project git hooks
167 stars 30 forks source link

Use a bash script for the template hook #17

Closed mblakele closed 8 years ago

mblakele commented 8 years ago

This allows use with GUI tools such as IDEs, which sometimes can't find the node command in the environment PATH. This implementation assumes nvm, and expects node to be available through $HOME/.nvm.

This approach might not suit every environment. It might make sense to have an install-time switch between node-based hooks and bash-based hooks, maybe using environment variables.

tarmolov commented 8 years ago

You made a lot of renaming. Could you make a pr with a minimal set of changes which solves your problem?

Don't forget to fix tests.