@bostonuniversity/create-block-templates
v0.2.0
Published
A template for use with @wordpress/create-block to create a block for BU ID.
Downloads
137
Readme
Create Block
Home for code that will allow us to quickly and consistently create blocks.
This template provides the structure to generate a starter block. The following command will create a folder with all pertinent block files:
npx @wordpress/create-block@latest --template @bostonuniversity/create-block-templates --no-plugin
If you are using the block theme or plugin starter, you can run:
npm run new-id-block
To test locally, run:
npx @wordpress/create-block@latest --template . --no-plugin
Known Issues
- When going through the prompts, you should replace the default namespace value
repo-slug
with your theme or plugin slug. - You should manually replace the generated block.json textdomain value with your actual theme or plugin textdomain.