Skip to content

Instantly share code, notes, and snippets.

@urre
Created February 2, 2018 10:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save urre/e3f4daa0b3cda15ba4fc8e9393c6d205 to your computer and use it in GitHub Desktop.
Save urre/e3f4daa0b3cda15ba4fc8e9393c6d205 to your computer and use it in GitHub Desktop.
composer scripts
"scripts": {
"post-install-cmd": "./vendor/bin/phpcs --config-set installed_paths vendor/wp-coding-standards/wpcs",
"post-update-cmd" : "./vendor/bin/phpcs --config-set installed_paths vendor/wp-coding-standards/wpcs",
"test": [
"phpcs --report=full --colors -p --standard=web/app/themes/mytheme/codesniffer-ruleset.xml --ignore=*/vendor/*,*/node_modules/* web/app/themes/mytheme/ --extensions=php"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment