forked from anspress/anspress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomposer.json
72 lines (72 loc) · 2.49 KB
/
composer.json
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
{
"name": "anspress/anspress",
"type": "wordpress-plugin",
"description": "Free question and answer plugin for WordPress",
"license": "GPL-3.0-or-later",
"authors": [
{
"name": "Rahul Aryan",
"email": "[email protected]"
},
{
"name": "AnsPress",
"email": "[email protected]"
}
],
"require": {
"php": ">=8.0"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
"ergebnis/composer-normalize": "^2.28",
"phpro/grumphp": "^1.13",
"phpunit/phpunit": "^9.6",
"szepeviktor/phpstan-wordpress": "^1.3",
"vlucas/phpdotenv": "^5.5",
"codeatcode/codeatcs": "^1.0",
"phpmd/phpmd": "^2.13",
"php-parallel-lint/php-parallel-lint": "^1.3",
"yoast/phpunit-polyfills": "^2.0",
"yoast/wp-test-utils": "dev-JRF/update-for-polyfills-2.0",
"phpunit/php-code-coverage": "^9.2",
"squizlabs/php_codesniffer": "^3.9",
"rregeer/phpunit-coverage-check": "^0.3.1"
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"test": [
"@php ./vendor/phpunit/phpunit/phpunit --no-coverage"
],
"coverage": [
"XDEBUG_MODE=coverage ./vendor/phpunit/phpunit/phpunit --coverage-clover .coverage/cov.xml"
],
"test-wp": [
"@php ./vendor/phpunit/phpunit/phpunit -c phpunit-wp.xml.dist --no-coverage"
],
"coverage-wp": [
"XDEBUG_MODE=coverage ./vendor/phpunit/phpunit/phpunit -c phpunit-wp.xml.dist --coverage-clover .coverage/cov.xml"
],
"integration-test": [
"@test-wp"
],
"integration-coverage": [
"@coverage-wp"
],
"phpcs": "phpcs",
"grumphp": "grumphp run",
"phpstan": "phpstan --memory-limit=1G",
"phpcbf": "phpcbf",
"test:coverage": "XDEBUG_MODE=coverage ./vendor/bin/phpunit --coverage-clover .coverage/cov.xml",
"test:coverage-text": "XDEBUG_MODE=coverage ./vendor/bin/phpunit --coverage-text",
"test:coverage-check": "./vendor/bin/coverage-check .coverage/cov.xml 50",
"test:setup": "./bin/install-wp-tests.sh test_wordpress root root db"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"ergebnis/composer-normalize": true,
"phpro/grumphp": true
}
}
}