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
Command | Description |
---|
composer scope | Scope PHP namespace to prevent conflicts with other plugins. Check the Scoping PHP namespace guide to learn more. |
composer phpcs | Check the PHP codebase for coding standards violations |
composer phpcs:fix | Fix PHP coding standards violations |
NPM
Command | Description |
---|
npm run build | Build the assets for production. |
npm run start | Build the assets for development and watch for changes. |
npm run lint:js | Lint the JavaScript files. |
npm run lint:css | Lint the Stylesheet files. |
npm run format | Format the JavaScript and Stylesheet files. |