You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The vendor folder is mostly in your .gitignore file. This means that these files won't be available in GIT and the pre-commit hook will not trigger for these files.
At the moment this is the only solution I can think about:
You could add GrumPHP to the composer.json of the vendor package you are commiting to. Next, run another composer install --dev in the vendor package.
This will initialize the git hook and set the grumphp executable to the the vendor package.
Now, the git hook is initialized and when you commit in that specific vendor package, GrumPHP will run its tasks.
A downside however is that your IDE will find some classes at multiple locations.
Hello, thanks a lot for your library.
I often commit changes in my vendor library, is it possible create pre-commit hook for vendor library?
The text was updated successfully, but these errors were encountered: