Skip to content

Available commands

This boilerplate comes with a few Composer and NPM commands to help you manage your plugin during development. All commands are run from the root of the project, from a terminal.

Composer

CommandDescription
composer scopeScope PHP namespace to prevent conflicts with other plugins. Check the Scoping PHP namespace guide to learn more.
composer phpcsCheck the PHP codebase for coding standards violations
composer phpcs:fixFix PHP coding standards violations

NPM

CommandDescription
npm run buildBuild the assets for production.
npm run startBuild the assets for development and watch for changes.
npm run lint:jsLint the JavaScript files.
npm run lint:cssLint the Stylesheet files.
npm run formatFormat the JavaScript and Stylesheet files.