Skip to content
Rita P Best edited this page Apr 14, 2020 · 2 revisions

Welcome to the Creat Blocks CLI/Gutenberg wiki!

Notes from April 11th, 2020

Our Project: Replace the Gutenberg examples with templates on npm that would be used by the create-block CLI tool. We will work on our own repository, making PRs to a feature branch.https://github.com/WordPress/gutenberg/tree/master/packages/create-block

Take a few minutes to review Greg's short presentation on WPBlocksTalk, April 2nd, 2020. "How to speed up development with block scaffolding." Here he shows us how the block scaffolding CLI tool works. https://www.youtube.com/watch?v=7VfNVTMGztE&feature=youtu.be&t=32994 (8:21:53 mark).

April 2020 | Week13-18th | Assignments with teammate/s

  • Get familiar with Create Block - documentation. Look at one of the templates and see how they are structured.
  • Get familiar with installing Create Block CLI
  • Create a Block
  • Start with the index.js within the lib folder. https://github.com/WordPress/gutenberg/blob/master/packages/create-block/lib/index.js
  • If you have the time and you have not used WP CLI, now might be a good time to familiarize yourself with this developer's tool. WP-CLI provides a command-line interface for many actions you might perform on the WordPress instance. One of the commands wp scaffold block was used as the baseline for this tool and ES5 template in particular.