WP Pre-Commit Hooks
Will check for the code standards in PHP and JavaScript/React.
Include the project in your Composer file:
*nikolareljin/wp-precommit-hooks*
You can run :
composer require nikolareljin/wp-precommit-hooks -dev -vv
Or include the plugin in your composer file:
{
"name": "testing-the-plugin",
"type": "project",
"description": "testing how git commit hooks work",
"require": {
"php": ">=7.1"
},
"require-dev": {
"php": ">=7.1",
"nikolareljin/wp-precommit-hooks": ">=1.0.2"
},
"minimum-stability": "dev",
"prefer-stable": true
}
On git commit
, it will trigger code checkup for WP and React/Gutenberg standards.
In the terminal, run:
npm install
composer install