Skip to content

Instantly share code, notes, and snippets.

@csrui
Last active November 18, 2018 01:05
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 csrui/f8c9d85d2a287582a04e9907bf8432eb to your computer and use it in GitHub Desktop.
Save csrui/f8c9d85d2a287582a04e9907bf8432eb to your computer and use it in GitHub Desktop.
Composer Recipes for WordPress
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
[*.md]
indent_size = 4
indent_style = space
trim_trailing_whitespace = false
[*.php]
indent_size = 4
indent_style = tab
{
"wp-coding-standards/wpcs": "dev-master",
"squizlabs/php_codesniffer": "^2.9.0",
"phpunit/phpunit": "^6.1",
"rarst/laps": "dev-master",
"wpackagist-plugin/query-monitor": "dev-trunk"
}
{
"code-sniff": [
"./vendor/bin/phpcs --config-set installed_paths ~/example_wordpress_composer/vendor/wp-coding-standards/wpcs",
"./vendor/bin/phpcs --standard=WordPress ./"
],
"unit-test": [
"./vendor/bin/phpunit tests/unit/*"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment