Collection of WPEverest core git hooks.
composer require wpeverest/wpeverest-git-hooks
Include the follow lines into the project's composer.json
:
"scripts": {
"pre-update-cmd": "WPEverest\\GitHooks\\Hooks::preHooks",
"pre-install-cmd": "WPEverest\\GitHooks\\Hooks::preHooks",
"post-update-cmd": "WPEverest\\GitHooks\\Hooks::postHooks",
"post-install-cmd": "WPEverest\\GitHooks\\Hooks::postHooks"
}
By default should already run all commands from composer scripts
when installed, but if necessary run it manually is possible with the follow commands:
composer run-script pre-update-cmd
composer run-script post-update-cmd
- 2017-12-18 - 1.0.2 - Auto detects
phpcs.xml
orphpcs.xml.dist
by default. No longer acceptsphpcs.ruleset.xml
. - 2017-11-10 - 1.0.1 - Removed list of ignored directories.
- 2017-10-03 - 1.0.0 - Initial release.
Inspired by: