-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathcomposer.json
More file actions
109 lines (109 loc) · 3.46 KB
/
Copy pathcomposer.json
File metadata and controls
109 lines (109 loc) · 3.46 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
"name": "gamajo/plugin-slug",
"description": "Test plugin",
"license": "GPL-2.0-or-later",
"type": "wordpress-plugin",
"keywords": [
"plugin",
"plugin-slug"
],
"authors": [
{
"name": "Gary Jones",
"homepage": "https://garyjones.io",
"role": "Developer"
}
],
"homepage": "https://github.com/GaryJones/plugin-slug",
"support": {
"issues": "https://github.com/GaryJones/plugin-slug/issues",
"source": "https://github.com/GaryJones/plugin-slug"
},
"require": {
"php": "^8.4",
"composer/installers": "^2"
},
"require-dev": {
"automattic/vipwpcs": "^3",
"brain/monkey": "^2",
"ergebnis/composer-normalize": "^2.52",
"infection/infection": "^0.33",
"mockery/mockery": "^1.6",
"php-parallel-lint/php-parallel-lint": "^1.4",
"phpcompatibility/phpcompatibility-wp": "^2",
"phpstan/extension-installer": "^1.4",
"phpstan/phpstan": "^2.2",
"phpunit/phpunit": "^9.6",
"rector/rector": "^2.4",
"szepeviktor/phpstan-wordpress": "^2.0",
"wp-coding-standards/wpcs": "^3",
"yoast/phpunit-polyfills": "^4"
},
"minimum-stability": "stable",
"prefer-stable": true,
"autoload": {
"psr-4": {
"Gamajo\\PluginSlug\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Gamajo\\PluginSlug\\Tests\\": "tests/"
}
},
"config": {
"allow-plugins": {
"composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"ergebnis/composer-normalize": true,
"infection/extension-installer": true,
"phpstan/extension-installer": true
},
"sort-packages": true
},
"scripts": {
"coverage": "@php ./vendor/bin/phpunit --testsuite unit --coverage-html .phpunit.cache/coverage-html",
"cs": "@php ./vendor/bin/phpcs",
"cs-fix": "@php ./vendor/bin/phpcbf",
"infection": "./vendor/bin/infection --no-progress --threads=max --show-mutations",
"lint": [
"@php ./vendor/bin/parallel-lint . --exclude vendor --exclude node_modules",
"bin/xml-lint"
],
"phpstan": "phpstan analyse",
"rector": "@php ./vendor/bin/rector process --dry-run",
"rector:fix": "@php ./vendor/bin/rector process",
"test": [
"@lint",
"@cs",
"@test:unit"
],
"test-full": [
"@lint",
"@cs",
"@rector",
"@test:unit",
"@infection",
"@test:integration",
"@test:integration-ms"
],
"test:integration": "bin/wp-env-phpunit --testsuite integration",
"test:integration-ms": "bin/wp-env-phpunit --multisite --testsuite integration",
"test:unit": "@php ./vendor/bin/phpunit --testsuite unit"
},
"scripts-descriptions": {
"coverage": "Run the unit tests and generate an HTML coverage report in .phpunit.cache/coverage-html.",
"cs": "Check coding standards with PHP_CodeSniffer.",
"cs-fix": "Fix automatically fixable coding standards violations with PHP Code Beautifier and Fixer.",
"infection": "Run mutation testing with Infection.",
"lint": "Check PHP files for syntax errors and XML config files against their schemas.",
"phpstan": "Run static analysis with PHPStan.",
"rector": "Preview automated refactorings with Rector (dry run).",
"rector:fix": "Apply automated refactorings with Rector.",
"test": "Run the quick checks: lint, coding standards, and unit tests.",
"test-full": "Run every check: lint, coding standards, Rector, unit, mutation, and integration tests.",
"test:integration": "Run the integration tests inside the wp-env tests container.",
"test:integration-ms": "Run the integration tests against WordPress multisite inside the wp-env tests container.",
"test:unit": "Run the unit tests."
}
}