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.
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.
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.