Collection of WooCommerce core git hooks.
composer require woocommerce/woocommerce-git-hooks
Include the follow lines into the project's composer.json
:
"scripts": {
"pre-update-cmd": "WooCommerce\\GitHooks\\Hooks::preHooks",
"pre-install-cmd": "WooCommerce\\GitHooks\\Hooks::preHooks",
"post-update-cmd": "WooCommerce\\GitHooks\\Hooks::postHooks",
"post-install-cmd": "WooCommerce\\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.5 - Fixed how check for
phpcs.xml.dist
. - 2017-12-18 - 1.0.4 - Auto detects
phpcs.xml
orphpcs.xml.dist
by default. No longer acceptsphpcs.ruleset.xml
. - 2017-11-09 - 1.0.3 - Removed list of ignored directories.
- 2017-09-27 - 1.0.2 - Uses
phpcs.ruleset.xml
instead ofdev.ruleset.xml
. - 2017-07-20 - 1.0.1 - Ignore 3rd party libraries and legacy code.
- 2017-06-26 - 1.0.0 - Initial release.
Inspired by: