- Fix errors reported by CSS linter in ESNext template by using hex colors in CSS files (#23188).
- Fix an error reported by JavaScript linter by improving JSDoc comment in ESNext template in
src/edit.js
file (#23164).
- Update
esnext
(default) template to leverage CSS import in JavaScript support added to@wordpress/scripts
(#22727).
- Refactored handling of predefined block templates #22235.
- Add more CLI options:
--namespace
,--title
,--short-description
and--category
. The goal is to make it easier to override default values used for scaffolding (#21751).
- Update
esnext
(default) template to scaffold 3 JavaScript source files to illustrate how ES modules help to better organize code (#21750).
- Added readme.txt file to the existing templates to make your entry in the plugin browser most useful (#20694).
- Added prompts for the
author
,license
andversion
of the plugin (#20694).
- Make
version
prompt mandatory and provide validation against semantic versioning (#20756). - Omit optional values in the scaffolded files when they aren't provided (#20756).
- Fixed buggy check for minimum system requirements when run with
npx
andnpm init
(#20461).
- Added error message when minimum system requirements not met (#20398).
- Corrected the minimum
npm
version required to align with@wordpress/scripts
package used internally (#20398).
- Added support for
format:js
script to the block scaffolded with ESNext template (#20335).
- Removed the code that clears the terminal while the block is scaffolded (#19867).
- Use the description provided to fill the
description
field inpackage.json
file in ESNext template (#19867). - Ensure that values provided for slug and namespace get converted to lower case (#19867).
- Relocated npm packge from
create-wordpress-block
to@wordpress/create-block
(#19773).
- Update templates to include WordPress plugin metadata by default.
- Print available commands only for ESNext template.
- Add full support for ESNext template, including
wp-scripts
bootstrapping.
- Improve the feedback shared on the console while scaffolding a block.
- Fix the paths pointing to the JS build file listed in PHP file in the ESNext template.
- Added support for template types.
esnext
becomes the default one.es5
is still available as an option.