-
Notifications
You must be signed in to change notification settings - Fork 57
/
package.json
32 lines (32 loc) · 1.65 KB
/
package.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
{
"name": "plugin-check",
"license": "GPL-2.0-or-later",
"repository": {
"type": "git",
"url": "git+https://github.com/WordPress/plugin-check.git"
},
"engines": {
"node": ">=20.10.0",
"npm": ">=10.2.3"
},
"devDependencies": {
"@wordpress/env": "^10.14.0",
"@wordpress/scripts": "^30.7.0",
"gherkin-lint": "^4.2.4",
"patch-package": "^8.0.0"
},
"scripts": {
"postinstall": "patch-package",
"wp-env": "wp-env",
"lint-js": "wp-scripts lint-js",
"format-js": "npm run lint-js -- --fix",
"lint-gherkin": "gherkin-lint",
"phpstan": "wp-env run tests-cli --env-cwd=wp-content/plugins/$(basename \"$(pwd)\")/ composer run-script phpstan",
"lint-php": "wp-env run tests-cli --env-cwd=wp-content/plugins/$(basename \"$(pwd)\")/ composer run-script lint",
"format-php": "wp-env run tests-cli --env-cwd=wp-content/plugins/$(basename \"$(pwd)\")/ composer run-script format",
"test-php": "wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/$(basename \"$(pwd)\") vendor/bin/phpunit -c phpunit.xml.dist",
"test-php-coverage": "wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/$(basename \"$(pwd)\") vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover build/logs/php-coverage.xml",
"test-php-multisite": "wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/$(basename \"$(pwd)\") vendor/bin/phpunit -c tests/phpunit/multisite.xml",
"test-php-multisite-coverage": "wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/$(basename \"$(pwd)\") vendor/bin/phpunit -c tests/phpunit/multisite.xml --coverage-clover build/logs/php-coverage-multisite.xml"
}
}