-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomposer.json
More file actions
27 lines (27 loc) · 1.14 KB
/
composer.json
File metadata and controls
27 lines (27 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
"require": {
"squizlabs/php_codesniffer": "^3.11",
"phpcompatibility/php-compatibility": "10.0.0-alpha2",
"phpcompatibility/phpcompatibility-wp": "3.0.0-alpha2",
"wp-coding-standards/wpcs": "^3.3"
},
"scripts": {
"cleanup-vendor": [
"@php -r \"\\$files = array('vendor/squizlabs/php_codesniffer/tests/EndToEnd/phpcs_test.sh','vendor/squizlabs/php_codesniffer/tests/EndToEnd/phpcbf_test.sh'); foreach (\\$files as \\$f) { if (file_exists(\\$f)) { @unlink(\\$f); } }\"",
"@php -r \"function rr(\\$d,\\$exts){\\$it=new RecursiveIteratorIterator(new RecursiveDirectoryIterator(\\$d,FilesystemIterator::SKIP_DOTS));foreach(\\$it as \\$fi){if(\\$fi->isFile()){ \\$n=\\$fi->getFilename(); foreach(\\$exts as \\$e){ if (substr(\\$n,-strlen(\\$e))===\\$e){ @unlink(\\$fi->getPathname()); } } } }} rr('vendor',array('.sh','.bat','.cmd','.ps1'));\""
],
"post-install-cmd": [
"@cleanup-vendor"
],
"post-update-cmd": [
"@cleanup-vendor"
]
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"minimum-stability": "dev",
"prefer-stable": true
}