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.
The following command generates PHP, JS and CSS code for registering a block. You just need to provide the
$ npx @webdevstudios/create-block WebDevStudios/TodoList$ cd webdevstudios-todo-list$ npm start
-V, --version output the version number-h, --help output usage information
Please note that
--help options don't work with
npm init. You have to use
npx instead, as presented in the examples.
This project was forked from @wordpress/create-block.