wp-blocks-generator
v1.0.4
Published
Wordpress block plugin boilerplate generator
Downloads
4
Maintainers
Readme
wp-blocks-generator
Project generator for WP Block Boilerplate
Installation
npm install --global wp-blocks-generator
Getting started
Create a wp-block-plugin.config.json
file in your development folder.
Run wp-block-gen your-block-plugin-name
Sample wp-block-plugin.config.json
{
"plugin": {
"name": "First block plugin",
"uri": "https://github.com/vurghus-minar/",
"description": "First block plugin.",
"version": "1.0.0",
"author": "Vurghus Minar",
"author_uri": "https://github.com/vurghus-minar",
"license": "MIT",
"license_uri": "https://opensource.org/licenses/MIT"
},
"block": {
"class_name": "First_Block",
"slug": "first-block",
"register_block_type_name": "first-block/my-first-block"
},
"package_json": {
"name": "first-block-plugin",
"git_username": "vurghus-minar"
}
}