forked from WordPress/plugin-check
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
32 lines (32 loc) · 2.42 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.7.0",
"@wordpress/scripts": "^29.0.0",
"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",
"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",
"pretest-php": "wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/$(basename \"$(pwd)\") composer install --no-dev; wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/$(basename \"$(pwd)\") composer dump --dev; wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/$(basename \"$(pwd)\") composer --working-dir=build-phpunit update --no-interaction",
"test-php": "wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/$(basename \"$(pwd)\") build-phpunit/vendor/bin/phpunit -c phpunit.xml.dist",
"pretest-php-coverage": "wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/$(basename \"$(pwd)\") composer install --no-dev; wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/$(basename \"$(pwd)\") composer dump --dev; wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/$(basename \"$(pwd)\") composer --working-dir=build-phpunit update --no-interaction",
"test-php-coverage": "wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/$(basename \"$(pwd)\") build-phpunit/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)\") build-phpunit/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)\") build-phpunit/vendor/bin/phpunit -c tests/phpunit/multisite.xml --coverage-clover build/logs/php-coverage-multisite.xml"
}
}