@wordpress/create-block 4.2.1-next.4d3b314fd5.0 → 4.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/lib/init-block.js +2 -0
- package/lib/init-package-json.js +2 -0
- package/lib/scaffold.js +4 -0
- package/package.json +3 -3
package/lib/init-block.js
CHANGED
|
@@ -29,6 +29,7 @@ async function initBlockJSON( {
|
|
|
29
29
|
editorScript,
|
|
30
30
|
editorStyle,
|
|
31
31
|
style,
|
|
32
|
+
customBlockJSON,
|
|
32
33
|
} ) {
|
|
33
34
|
info( '' );
|
|
34
35
|
info( 'Creating a "block.json" file.' );
|
|
@@ -56,6 +57,7 @@ async function initBlockJSON( {
|
|
|
56
57
|
editorScript,
|
|
57
58
|
editorStyle,
|
|
58
59
|
style,
|
|
60
|
+
...customBlockJSON,
|
|
59
61
|
} ).filter( ( [ , value ] ) => !! value )
|
|
60
62
|
),
|
|
61
63
|
null,
|
package/lib/init-package-json.js
CHANGED
|
@@ -24,6 +24,7 @@ module.exports = async ( {
|
|
|
24
24
|
npmDevDependencies,
|
|
25
25
|
customScripts,
|
|
26
26
|
isDynamicVariant,
|
|
27
|
+
customPackageJSON,
|
|
27
28
|
} ) => {
|
|
28
29
|
const cwd = join( process.cwd(), slug );
|
|
29
30
|
|
|
@@ -58,6 +59,7 @@ module.exports = async ( {
|
|
|
58
59
|
...( wpEnv && { env: 'wp-env' } ),
|
|
59
60
|
...customScripts,
|
|
60
61
|
},
|
|
62
|
+
...customPackageJSON,
|
|
61
63
|
} ).filter( ( [ , value ] ) => !! value )
|
|
62
64
|
)
|
|
63
65
|
);
|
package/lib/scaffold.js
CHANGED
|
@@ -44,6 +44,8 @@ module.exports = async (
|
|
|
44
44
|
editorStyle,
|
|
45
45
|
style,
|
|
46
46
|
variantVars,
|
|
47
|
+
customPackageJSON,
|
|
48
|
+
customBlockJSON,
|
|
47
49
|
}
|
|
48
50
|
) => {
|
|
49
51
|
slug = slug.toLowerCase();
|
|
@@ -99,6 +101,8 @@ module.exports = async (
|
|
|
99
101
|
editorScript,
|
|
100
102
|
editorStyle,
|
|
101
103
|
style,
|
|
104
|
+
customPackageJSON,
|
|
105
|
+
customBlockJSON,
|
|
102
106
|
...variantVars,
|
|
103
107
|
};
|
|
104
108
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/create-block",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"description": "Generates PHP, JS and CSS code for registering a block for a WordPress plugin.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"wp-create-block": "./index.js"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@wordpress/lazy-import": "^1.
|
|
34
|
+
"@wordpress/lazy-import": "^1.7.0",
|
|
35
35
|
"chalk": "^4.0.0",
|
|
36
36
|
"change-case": "^4.1.2",
|
|
37
37
|
"check-node-version": "^4.1.0",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"access": "public"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "a2ff0e6471c88436dad0287beb88d1729aa6f5dd"
|
|
52
52
|
}
|