Skip to content

Commit

Permalink
Remove the example block in it's entirety (#548)
Browse files Browse the repository at this point in the history
* Remove the example block in it's entirety

* Add some documetation about making new blocks
  • Loading branch information
dekode-kevin authored Jan 24, 2025
1 parent 4691281 commit 9cc4a49
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 108 deletions.
20 changes: 20 additions & 0 deletions documentation/create-block.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Create block routines
An easy way of working with blocks in project base is to create the block through the package.json commands.

## Create a new block
To create a new block, run the following command in the terminal:

```bash
npm run create-block
```

This will prompt you for the block name, and then create the block as a new plugin in the `plugins` directory.

## Create a innerblock block
To create a new innerblock block, run the following command in the terminal:

```bash
npm run create-innerblock-block
```

This will prompt you for the block name, and then create the block as a new plugin in the `plugins` directory.
17 changes: 0 additions & 17 deletions packages/themes/block-theme/src/example-block/block.json

This file was deleted.

47 changes: 0 additions & 47 deletions packages/themes/block-theme/src/example-block/block.php

This file was deleted.

27 changes: 0 additions & 27 deletions packages/themes/block-theme/src/example-block/editor.js

This file was deleted.

17 changes: 0 additions & 17 deletions packages/themes/block-theme/src/example-block/view.js

This file was deleted.

0 comments on commit 9cc4a49

Please sign in to comment.