This repository contains examples used in the Learn VIP Course: Enterprise Block Editor (Gutenberg)
- A PHP CodeSniffer configuration that will check your code against the coding standards that are recommended by the Newspack team.
- A Prettier configuration for WordPress.
- A Husky configuration to lint local files changes before they are committed.
By running npm run setup from the root of the project you'll:
- Install
package.jsondependencies - Install
composer.jsondependencies - Initialize and configure husky pre-commit
- block-variations (live demo)
- block-variations-quote (live demo)
- unregister-block-variations (live demo)
- modify-block-variation (live demo)
- block-bindings-custom-source (live demo)
- block-bindings-post-meta (live demo)
- editor-bindings (live demo)
- Basic (live demo) - A simple configuration limiting the blocks available
- Per Role (live demo) - A simple role-based configuration
- Per Post Type (live demo) - A post-type-based configuration that includes block settings for specific blocks
- Advanced (live demo as author 1 - live demo as editor 1) - An advanced configuration with different rule types and detailed block settings
- iapi-global-local-derived-state-block (live demo)
- iapi-global-local-derived-state-3-blocks (live demo)
- iapi-core-blocks-inner-blocks (live demo)
- script-modules-block-manual (live demo)
- script-modules-block-view (live demo)
- script-modules-block-editor (live demo)
Footnotes
-
These playground demos may not work well directly from the link due to this issue. If that's the case try copying and pasting the related
blueprint.jsonon playground.wordpress.net/builder ↩ ↩2