Skip to content

Feature request. Client files are not in project root #37

@bhjertaas

Description

@bhjertaas

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions