git-pre-commit icon indicating copy to clipboard operation
git-pre-commit copied to clipboard

Feature request. Client files are not in project root

Open bhjertaas opened this issue 8 years ago • 1 comments

Perhaps I am wrong, but it looks to me that it is not possible to use 'git-pre-commit' on git projects that do not have the package.json and gulpfile in the same directory as the git root of that project. For example a project like this, where we have server (Java) files in project root, and a client folder for frontent stuff.

ProjectDir
    .git
    client
         package.json

Would it be possible to add a config option to inform 'git-pre-commit' where to find the package.json file, or perhaps it could search subfolders until it located the package.json file?

Let me know if this sounds interesting, and I will consider making a pull request.

bhjertaas avatar Mar 16 '17 21:03 bhjertaas

Any progress on this? I am having the same issue and it seems that git-pre-commit is only npm package that will run only for staged files

LjiljanaMatic avatar Jul 28 '17 06:07 LjiljanaMatic