Skip to content

wpeverest/wpeverest-git-hooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WPEverest Git Hooks

Collection of WPEverest core git hooks.

Installation

composer require wpeverest/wpeverest-git-hooks

Usage

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"
    }

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.2 - Auto detects phpcs.xml or phpcs.xml.dist by default. No longer accepts phpcs.ruleset.xml.
  • 2017-11-10 - 1.0.1 - Removed list of ignored directories.
  • 2017-10-03 - 1.0.0 - Initial release.

Sources

Inspired by:

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published