[Create Block]: Add ability to pass a slug for the block name #43235
Labels
Developer Experience
Ideas about improving block and theme developer experience
[Tool] Create Block
/packages/create-block
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
Currently, when scaffolding a block with the
@wordpress/create-block
package, we can pass aslug
to define the name of the plugin, which is also used as the name of the block. This was brought up in #41642 (comment)The command above would generate a plugin called 'my-awesome-plugin` with a block of the same name. There are many times that the name of the plugin will be different than the block.
What is your proposed solution?
Introduce a new CLI parameter called
--block-name
to allow the command to function as follows:The text was updated successfully, but these errors were encountered: