-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
48 lines (48 loc) · 1.43 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
{
"name": "codeb/wp-feature-flags",
"description": "Allows developers to enable / disable features based on flags.",
"license": "MIT",
"type": "wordpress-plugin",
"require": {
"php": ">=8.1"
},
"require-dev": {
"brain/monkey": "^2.6",
"newsuk/nuk-wp-phpcs-config": "^0.2.0",
"newsuk/nuk-wp-phpmd-config": "^0.1.0",
"newsuk/nuk-wp-phpstan-config": "^0.1.0",
"phpunit/phpunit": "^9.4",
"yoast/wp-test-utils": "^1.2"
},
"autoload": {
"psr-4": {
"CodeB\\FeatureFlags\\": [
"includes/"
]
}
},
"autoload-dev": {
"psr-4": {
"CodeB\\FeatureFlags\\Tests\\": "tests/unit/"
}
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"phpstan/extension-installer": true
},
"platform": {
"php": "8.1"
}
},
"scripts": {
"lint": "phpcs .",
"lint:fix": "phpcbf .",
"phpmd": "phpmd plugin.php,includes text phpmd.xml.dist --color",
"phpstan": "phpstan analyse --memory-limit=2048M",
"phpstan-baseline": "phpstan analyse -b --allow-empty-baseline --memory-limit=2048M",
"test:integration": "phpunit --dont-report-useless-tests --configuration ./phpunit-integration.xml --testsuite integration --testdox",
"test:multisite": "phpunit --dont-report-useless-tests --configuration ./phpunit-integration-multisite.xml --testsuite integration --testdox ",
"test:unit": "phpunit --dont-report-useless-tests --configuration ./phpunit.xml --testsuite unit --testdox"
}
}