@wordpress/create-block-tutorial-template 1.3.2-next.253d9b6e21.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/LICENSE.md +1 -1
- package/README.md +1 -1
- package/index.js +0 -6
- package/package.json +3 -3
- package/templates/$slug.php.mustache +1 -1
- package/templates/readme.txt.mustache +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 1.4.0 (2022-01-27)
|
|
6
|
+
|
|
7
|
+
### Enhancement
|
|
8
|
+
|
|
9
|
+
- Speed up scaffolding process by omitting WordPress dependencies in the template ([#37639](https://github.com/WordPress/gutenberg/pull/37639)).
|
|
10
|
+
- Update link to block registration reference ([#37674](https://github.com/WordPress/gutenberg/pull/37674))
|
|
11
|
+
|
|
5
12
|
## 1.3.0 (2021-07-21)
|
|
6
13
|
|
|
7
14
|
### Enhancement
|
package/LICENSE.md
CHANGED
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Create Block Tutorial Template
|
|
2
2
|
|
|
3
|
-
This is a template for [`@wordpress/create-block`](/packages/create-block/README.md) that is the finished version of the block in the official [WordPress Tutorial](/docs/getting-started/
|
|
3
|
+
This is a template for [`@wordpress/create-block`](/packages/create-block/README.md) that is the finished version of the block in the official [WordPress Tutorial](/docs/getting-started/create-block/README.md) for the block editor.
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
package/index.js
CHANGED
|
@@ -22,12 +22,6 @@ module.exports = {
|
|
|
22
22
|
supports: {
|
|
23
23
|
html: false,
|
|
24
24
|
},
|
|
25
|
-
npmDependencies: [
|
|
26
|
-
'@wordpress/block-editor',
|
|
27
|
-
'@wordpress/blocks',
|
|
28
|
-
'@wordpress/components',
|
|
29
|
-
'@wordpress/i18n',
|
|
30
|
-
],
|
|
31
25
|
},
|
|
32
26
|
templatesPath: join( __dirname, 'templates' ),
|
|
33
27
|
assetsPath: join( __dirname, 'assets' ),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/create-block-tutorial-template",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "Template for @wordpress/create-block used in the official WordPress tutorial.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"create block",
|
|
10
10
|
"block template"
|
|
11
11
|
],
|
|
12
|
-
"homepage": "https://github.com/WordPress/gutenberg/tree/HEAD/docs/getting-started/
|
|
12
|
+
"homepage": "https://github.com/WordPress/gutenberg/tree/HEAD/docs/getting-started/create-block",
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
15
15
|
"url": "https://github.com/WordPress/gutenberg.git",
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
"publishConfig": {
|
|
22
22
|
"access": "public"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "d95ccb9366e249133cdb1d7b25c382446b9ee502"
|
|
25
25
|
}
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
* Behind the scenes, it registers also all assets so they can be enqueued
|
|
27
27
|
* through the block editor in the corresponding context.
|
|
28
28
|
*
|
|
29
|
-
* @see https://developer.wordpress.org/
|
|
29
|
+
* @see https://developer.wordpress.org/reference/functions/register_block_type/
|
|
30
30
|
*/
|
|
31
31
|
function {{namespaceSnakeCase}}_{{slugSnakeCase}}_block_init() {
|
|
32
32
|
register_block_type( __DIR__ );
|