Skip to content

Commit

Permalink
Update commands
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Nov 8, 2023
1 parent a76bebb commit dae7bce
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
"wp-env": "wp-env",
"lint-js": "wp-scripts lint-js",
"format-js": "npm run lint-js -- --fix",
"prelint-php": "wp-env run composer 'install --no-interaction'",
"phpstan": "wp-env run composer run-script phpstan",
"lint-php": "wp-env run composer run-script lint",
"format-php": "wp-env run composer run-script format",
"pretest-php": "wp-env run composer 'install --no-interaction'",
"prelint-php": "wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/plugin-check/ composer 'install --no-interaction'",
"phpstan": "wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/plugin-check/ composer run-script phpstan",
"lint-php": "wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/plugin-check/ composer run-script lint",
"format-php": "wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/plugin-check/ composer run-script format",
"pretest-php": "wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/plugin-check/ composer 'install --no-interaction'",
"test-php": "wp-env run tests-cli 'phpunit -c /var/www/html/wp-content/plugins/$(basename $(pwd))/phpunit.xml.dist --verbose'",
"pretest-php-coverage": "wp-env run composer 'install --no-interaction'",
"pretest-php-coverage": "wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/plugin-check/ composer 'install --no-interaction'",
"test-php-coverage": "wp-env run tests-cli 'phpunit -c /var/www/html/wp-content/plugins/$(basename $(pwd))/phpunit.xml.dist --verbose --coverage-clover /var/www/html/wp-content/plugins/$(basename $(pwd))/build/logs/php-coverage.xml'",
"test-php-multisite": "wp-env run tests-cli 'WP_MULTISITE=1 phpunit -c /var/www/html/wp-content/plugins/$(basename $(pwd))/tests/phpunit/multisite.xml --verbose'",
"test-php-multisite-coverage": "wp-env run tests-cli 'WP_MULTISITE=1 phpunit -c /var/www/html/wp-content/plugins/$(basename $(pwd))/tests/phpunit/multisite.xml --verbose --coverage-clover /var/www/html/wp-content/plugins/$(basename $(pwd))/build/logs/php-coverage-multisite.xml'"
Expand Down

0 comments on commit dae7bce

Please sign in to comment.