Closed mblakele closed 8 years ago
I think it's not a good idea to add some environment specific code to the tool.
Also I prefer to keep git-hook-js
written in javascript only.
If you create an IDE wrapper which uses git-hooks-js
under the hood, I'll add the link to Readme
with the great pleasure.
This allows use with GUI tools such as IDEs, which sometimes can't find the
node
command in the environmentPATH
. 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.