A CLI tool for scaffolding WordPress Gutenberg blocks with ease.
npm install -g @secretstache/block-scaffolder
# or
yarn global add @secretstache/block-scaffolderAfter installation, you can use the tool by running:
scaffold-blockThe tool will guide you through the process of creating a new Gutenberg block with interactive prompts.
- Interactive CLI interface
- Automatic block registration
- Standard block structure generation
- Support for custom block attributes
- Built-in best practices for WordPress block development
- Clone the repository:
git clone https://github.com/secretstache/block-scaffolder.git
cd block-scaffolder- Install dependencies:
npm install
# or
yarn install- Link the package locally for development:
npm link
# or
yarn linkNow you can use scaffold-block command to test your changes locally.
MIT © Secret Stache Media