nikolareljin/wp-precommit-hooks

Pre-commit hook for WordPress projects

Installs: 30

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Language:Shell

Type:composer-plugin

dev-master 2018-11-16 20:43 UTC

This package is auto-updated.

Last update: 2024-04-17 08:41:58 UTC


README

WP Pre-Commit Hooks

Will check for the code standards in PHP and JavaScript/React.

Include in your projects

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
}

Usage

On git commit, it will trigger code checkup for WP and React/Gutenberg standards.

Run / Install

In the terminal, run:

npm install

composer install