aubreypwd / wpcs

A Composer and NPM package you can install to install WordPress Coding Standards packages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

aubreypwd/wpcs

Just a package I use with either Composer and/or NPM and it will automatically install WordPress Coding Standards for you for PHP and basic JavaScript.

Installation

See example-configs for configurations you can place in your project's root and customize to your liking. All of these you can simply symlink if you want to use them as-is, e.g.

ln -sf vendor/aubreypwd/wpcs/example-configs/phpcs/phpcs.xml.dist ./

Distribution

Just some notes for me on how I distribute this.

  • I use npm version to bump the version and let it write the git tag for me
  • For packagist you need to update the package when you push tags up manually
  • For npm you have to use npm publish

About

A Composer and NPM package you can install to install WordPress Coding Standards packages.