woocommerce / woocommerce-git-hooks
WooCommerce Git Hooks
Installs: 42 014
Dependents: 2
Suggesters: 0
Security: 0
Stars: 10
Watchers: 131
Forks: 2
Open Issues: 0
Type:scripts
README
Collection of WooCommerce core git hooks.
Installation
composer require woocommerce/woocommerce-git-hooks
Usage
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"
}
Manual setup (optional)
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
Release history
- 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.
Sources
Inspired by: