Skip to content

Commit

Permalink
Create Block: Updated the demo included in the README file (#28037)
Browse files Browse the repository at this point in the history
Closes #27602.
  • Loading branch information
gziolo committed Jan 7, 2021
1 parent 1740d48 commit 4171f3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions packages/create-block/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

- Increase the minimum Node.js version to 12 ([#27934](https://github.com/WordPress/gutenberg/pull/27934)).

### Internal

- Update the demo included in the README file ([#28037](https://github.com/WordPress/gutenberg/pull/28037)).

## 1.1.0 (2021-01-05)

### New Feature
Expand Down
4 changes: 2 additions & 2 deletions packages/create-block/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ Visit the [Gutenberg handbook](https://developer.wordpress.org/block-editor/deve

## Quick start

![Demo](https://make.wordpress.org/core/files/2020/02/74508276-f0648280-4efe-11ea-9cc0-a607b43d1bcf.gif)

You just need to provide the `slug` which is the target location for scaffolded files and the internal block name.

```bash
Expand All @@ -34,6 +32,8 @@ The following command generates PHP, JS and CSS code for registering a block.
$ npx @wordpress/create-block [options] [slug]
```

![Demo](https://user-images.githubusercontent.com/699132/103872910-4de15f00-50cf-11eb-8c74-67ca91a8c1a4.gif)

`[slug]` is optional. When provided it triggers the quick mode where it is used as the block slug used for its identification, the output location for scaffolded files, and the name of the WordPress plugin. The rest of the configuration is set to all default values unless overridden with some of the options listed below.

Options:
Expand Down

0 comments on commit 4171f3f

Please sign in to comment.