🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@24hr/block-cli

Package Overview
Dependencies
Maintainers
7
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@24hr/block-cli

Generates block files

latest
npmnpm
Version
1.0.2
Version published
Maintainers
7
Created
Source

Block CLI

This is a handy CLI tool to generate Gutenberg block files that follows the Resurs Bank project's pattern.

How to use

Either install i globally with npm install -g @24hr/block-cli or run it with npx

If installed globally you can run block-cli.

Commands:
  block-cli generate <blockName>  Generate block files
  block-cli completion            generate completion script

Options:
  --version  Show version number [boolean]
  --help     Show help [boolean]

Generate block

By running the generate command followed by the block name will generate all files to the current directory. Be sure that you run this command at the root of the folder where you want the block files to be generated.

NOTE that the CLI will always put the files in a new folder.

Examples

Generate block:

block-cli generate my-new-block

Generate block with custom title in Gutenberg editor

block-cli generate my-new-block --title "My New Custom Block"

FAQs

Package last updated on 20 Aug 2021

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