Skip to content

Sub-command to generate files for additional blocks #69800

Answered by t-hamano
younes-dro asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, try the following commands:

Create a new plugin containing one block:

npx @wordpress/create-block test-blocks

Move into the src directory:

cd ./test-blocks/src

scaffold block files only:

npx @wordpress/create-block@latest additional-block --no-plugin

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@younes-dro
Comment options

Answer selected by younes-dro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants