@TODO Update this, is out of date.
- Plugin:
ca-design-system.php- Initial starting script for Wordpress plugin blocks— Individual Gutenberg block code.patterns- Page guidesincludes— Code for the Wordpress plugincore- WP updater scripts (not yet tested)
For an individual block:
blocks/templateneeds to be versioned and periodically updated to be a good starting point.plugin.php— Main class for Gutenberg blockblock.js— Editor and Rendering of Gutenberg blockstyle.css— Custom styles for the Gutenberg block editor interface and rendering of the block content.languages— For textdomain settings
README.md — NAME, DESCRIPTION, LINK TO MAIN ISSUE, SCREENSHOTS, link to imported web component.
package.json — Versioning notes, import webcomponent from npm
template.html — Output markup
icon
category
-
You should have a Github issue scoped out with the correct template and agreed upon name.
- You will need:
- short-name
- Description
- Content schema (schema.org) (data model)
- Design
- Feature list (rendering & editor workflow)
- Content design interface notes
- You will need:
-
Set up the new block
-
Register new child GB plugin
includes/class-ca-design-system.php -
Create
block.jsandstyle.cssandlanguagesfolders. -
Define the inputs
-
Output the schema.org data
-
Define the output
-
QA
-
Approval process (TBD)
Note: npx @wordpress/create-block will NOT work with this model as is, because it's designed to generate one-off blocks, and we are creating a library.