Skip to content

Commit 68747da

Browse files
author
Ahmad Awais
committed
📦 NEW: Add Example Single-Block
1 parent c7ce7fa commit 68747da

20 files changed

Lines changed: 327 additions & 146 deletions
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88

99
### What/How?
1010

11-
This example includes a WordPress Gutenberg plugin called `basic` which creates a Gutenberg block also called `basic`.
11+
This example includes a WordPress Gutenberg plugin called `single-block` which creates a Gutenberg block also called `single-block`.
1212

1313
👉 This example is created by running the following steps, that you can follow to build it on your own.
1414

1515
- [Install `create-guten-block` →](https://github.com/ahmadawais/create-guten-block#getting-started)
16-
- Run `create-guten-block basic` command.
16+
- Run `create-guten-block single-block` command.
1717

1818
_That's about it._
1919

‎examples/01-single-block/dist/blocks.build.js‎

Lines changed: 110 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/basic/dist/blocks.editor.build.css renamed to examples/01-single-block/dist/blocks.editor.build.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* CSS for just Backend enqueued after style.scss
1111
* which makes it higher in priority.
1212
*/
13-
.wp-block-cgb-block-basic {
13+
.wp-block-cgb-block-single-block {
1414
background: #bada55;
1515
border: 0.2rem solid #292929;
1616
color: #292929;

examples/basic/dist/blocks.style.build.css renamed to examples/01-single-block/dist/blocks.style.build.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
* CSS for both Frontend+Backend.
1111
*/
12-
.wp-block-cgb-block-basic {
12+
.wp-block-cgb-block-single-block {
1313
background: orangered;
1414
border: 0.2rem solid #292929;
1515
color: #292929;

examples/basic/package-lock.json renamed to examples/01-single-block/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "basic-cgb-guten-block",
2+
"name": "single-block-cgb-guten-block",
33
"version": "1.0.0",
44
"private": true,
55
"scripts": {

0 commit comments

Comments
 (0)