Every script key from the root Composer and npm manifests, plus the keys the blocks overlay merges into root package.json.
Composer
From composer.json scripts and scripts-descriptions.
Reference
12 fields
composer.json scripts
Typed options, defaults, and constraints in one scannable reference.
-
php-lintstring -
Syntax lint only (parallel-lint).
-
phpcsstring -
Coding standards against phpcs.xml.dist, whole tree.
-
phpcbfstring -
Auto-fix what phpcs can.
-
phpstanstring -
Static analysis at the level in phpstan.neon.
-
check-branch-csstring -
PHPCS over only the lines this branch changed. What linchpin/actions’ php-checks.yml runs.
-
check-staged-csstring -
The same line-scoped check against what a commit is about to introduce. What the husky pre-commit hook runs.
-
fixerstring -
php-cs-fixer, applying fixes.
-
fixer:teststring -
php-cs-fixer in dry-run mode.
-
phpunitstring -
Unit suite. No database.
-
lintstring -
Every static gate.
-
teststring -
Every static gate, then the unit suite.
-
buildstring -
Build the distributable zip into build/plugin-scaffold.zip.
No fields match this filter.
composer testnpm (root)
From root package.json scripts. Commands are @wordpress/scripts except prepare.
Reference
7 fields
package.json scripts
Typed options, defaults, and constraints in one scannable reference.
-
buildstring -
Compile src/admin/index.js to build/.
-
startstring -
Watch the root webpack config.
-
formatstring -
Format JavaScript with wp-scripts.
-
lint:jsstring -
ESLint via wp-scripts. What js.yml runs.
-
lint:cssstring -
Style lint via wp-scripts.
-
packages-updatestring -
Update @wordpress/* packages through wp-scripts.
-
preparestring -
Install Husky git hooks after npm install.
No fields match this filter.
Blocks overlay scripts
Merged into root package.json only after --with-blocks. Source: overlays/blocks/package-scripts.json.
Reference
5 fields
package-scripts.json
Typed options, defaults, and constraints in one scannable reference.
-
install:allstring -
Install root and nested workspaces.
-
install:cistring -
Lockfile-strict install for both workspaces.
-
build:blocksstring -
Build the nested blocks project.
-
build:allstring -
Build admin, then blocks.
-
start:blocksstring -
Watch the nested blocks project.
No fields match this filter.
The nested blocks/package.json defines its own build, start, format, lint:js, lint:css, and packages-update scripts. The build command includes --blocks-manifest --webpack-copy-php --experimental-modules. See the blocks overlay.