![]() Npm run build:non-block - Generates production files for the non-block examples. ![]() Npm run start:non-block - Builds development versions of the non-block examples and watches for changes to files to automatically rebuild as you develop. Npm run build - Generates production files for the block examples. Npm run start - Builds development versions of the blocks and watches for changes to files to automatically rebuild as you develop. Note: The blocks stored in blocks-non-jsx do not use JSX and therefore do not require a build process In this repository, there are block and non-block examples and each have their own build process.īlock examples are stored in the blocks-jsx and blocks-non-jsx directories while and other non-block examples are stored in the non-block-examples directory. You can build all of the examples by running npm run build:all in the project root. This repository does not version the built files for any of the examples. Once Docker is installed, clone this project and enter the working directory: Before you can use the development environment, you must install Docker. This project uses the package to provide a local development environment. After the plugin finishes installing, click Activate.Click Choose File, then find and Upload the downloaded zip file.Click Upload Plugin at the top of the page.Navigate to the Plugins > Add new screen in your WordPress administrative dashboard.Read the Development instructions below if you’re interested in building your own copy of the plugin. Download the gutenberg-examples.zip archive of the latest release.ĭo not download from the "Clone or download" GitHub button, as this includes the source material only.Gutenberg Examples are distributed as WordPress plugin. npx wordpress/create-block awesome-button-block -title 'Awesome Button Block' -short-description 'This is an awesome button block' -category 'theme'. Let’s scaffold a similar block (as we did above) but in a quicker way. Gutenberg developer documentation Installation Instead of configuring the block in a step-by-step process, You can provide some flags to the script in a single command.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |