Socket
Book a DemoInstallSign in
Socket

@ryanwelcher/multi-block-template

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ryanwelcher/multi-block-template

A template for use with @wordpress/create-block to allow creating a plugin with multiple blocks

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

This template provides the structure to add multiple blocks to a single plugin. On first scaffold, it will create blocks directory and a block inside of it that uses the slug passed to the commands.

The following command will create a plugins called example-plugin with a single block by the same names in the blocks/example-plugin directory.

npx @wordpress/create-block example-plugin --template @ryanwelcher/multi-block-template

To add another block run the the provide new-block script from the root of the plugin and pass the slug of the new block to be created.

npm run new-block -- another-block

You may also pass any additional flags to the underlying command as needed:

npm run new-block -- another-block --namespace my-cool-namespace

Keywords

wordpress

FAQs

Package last updated on 17 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts