Last active
November 18, 2018 01:05
-
-
Save csrui/f8c9d85d2a287582a04e9907bf8432eb to your computer and use it in GitHub Desktop.
Composer Recipes for WordPress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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