Socket
Socket
Sign inDemoInstall

@24hr/block-cli

Package Overview
Dependencies
51
Maintainers
7
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @24hr/block-cli

Generates block files


Version published
Weekly downloads
2
decreased by-83.33%
Maintainers
7
Created
Weekly downloads
 

Readme

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

Last updated on 20 Aug 2021

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc