@webdevstudios/create-block

0.0.8 • Public • Published

Create Block

Easily scaffold a block for the WordPress block editor via CLI.

Uses WDS Block Starter and includes support for Sass, PostCSS, WebDevStudios Coding Standards, and build tools like Webpack, Babel, and ESLint. Visit the Gutenberg handbook to learn more about Block API.

WebDevStudios. Your Success is Our Mission.

Requirements

Node (12.x). We highly recommend NVM so you can easily switch between Node versions.

Usage

The following command generates PHP, JS and CSS code for registering a block. You just need to provide the Namespace/BlockName.

$ npx @webdevstudios/create-block WebDevStudios/TodoList
$ cd webdevstudios-todo-list
$ npm start

Options:

-V, --version          output the version number
-h, --help             output usage information

Please note that --version and --help options don't work with npm init. You have to use npx instead, as presented in the examples.

Contributions

Your contributions and support tickets are welcome. Please see our guidelines before submitting a pull request.

Credits

This project was forked from @wordpress/create-block.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.8
    1
    • latest

Version History

Package Sidebar

Install

npm i @webdevstudios/create-block

Weekly Downloads

1

Version

0.0.8

License

GPL-2.0-or-later

Unpacked Size

30.7 kB

Total Files

30

Last publish

Collaborators

  • ravewebdev
  • jrfoell
  • gregrickaby
  • bradwilliams
  • donmhico