-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomposer.json
More file actions
45 lines (45 loc) · 1.8 KB
/
Copy pathcomposer.json
File metadata and controls
45 lines (45 loc) · 1.8 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
"name": "webberzone/settings-api",
"description": "Reusable settings framework wrapping the WordPress Settings API, shared across WebberZone plugins.",
"type": "library",
"license": "gpl-2.0-or-later",
"authors": [
{
"name": "Ajay D'Souza",
"homepage": "https://webberzone.com"
}
],
"require": {
"php": ">=7.4"
},
"require-dev": {
"wp-coding-standards/wpcs": "^3",
"dealerdirect/phpcodesniffer-composer-installer": "^1"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"scripts": {
"phpcs": "vendor/bin/phpcs -p -s --standard=phpcs.xml.dist",
"phpcbf": "vendor/bin/phpcbf -p -s --standard=phpcs.xml.dist",
"lint": "find . -name '*.php' -not -path './vendor/*' -not -path './phpcompat-tools/*' -not -path './_site/*' -print0 | xargs -0 -n1 -P8 php -l > /dev/null",
"phpcompat:setup": [
"@php -r \"if (!is_dir('phpcompat-tools')) { mkdir('phpcompat-tools'); }\"",
"@php -r \"if (!file_exists('phpcompat-tools/composer.json')) { file_put_contents('phpcompat-tools/composer.json', '{\\\"name\\\":\\\"temp/phpcompat\\\",\\\"type\\\":\\\"project\\\"}'); }\"",
"@composer config --working-dir=phpcompat-tools allow-plugins.dealerdirect/phpcodesniffer-composer-installer true",
"@composer require --working-dir=phpcompat-tools --dev --quiet --no-interaction squizlabs/php_codesniffer:^4.0 phpcompatibility/php-compatibility:dev-develop dealerdirect/phpcodesniffer-composer-installer:^1.0"
],
"phpcompat": [
"@phpcompat:setup",
"phpcompat-tools/vendor/bin/phpcs -p --standard=PHPCompatibility --runtime-set testVersion 7.4-8.6 --extensions=php --ignore=*/build/*,*/vendor/*,*/node_modules/*,*/phpcompat-tools/*,*/_site/* ."
],
"phpcompat:clean": "rm -rf phpcompat-tools",
"test": [
"@lint",
"@phpcs",
"@phpcompat"
]
}
}