@wordpress/create-block 4.68.0 → 4.69.1-next.719a03cbe.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.
Files changed (2) hide show
  1. package/README.md +13 -0
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -40,6 +40,19 @@ $ npx @wordpress/create-block@latest [options] [slug]
40
40
 
41
41
  When no `slug` is provided, the script will run in interactive mode and will start prompting for the input required (`slug`, title, namespace...) to scaffold the project.
42
42
 
43
+ ### `namespace`
44
+
45
+ By default, blocks are created with the `create-block` namespace. You should specify your own unique namespace:
46
+
47
+ ```bash
48
+ $ npx @wordpress/create-block@latest my-block --namespace=my-namespace
49
+ ```
50
+
51
+ This creates `my-namespace/my-block` instead of `create-block/my-block`.
52
+
53
+ If you've already created a block, update the namespace in:
54
+ - `block.json` - the `name` property
55
+
43
56
  ### `slug`
44
57
 
45
58
  The use of `slug` is optional.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/create-block",
3
- "version": "4.68.0",
3
+ "version": "4.69.1-next.719a03cbe.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",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@inquirer/prompts": "^7.2.0",
35
- "@wordpress/lazy-import": "^2.25.0",
35
+ "@wordpress/lazy-import": "^2.26.1-next.719a03cbe.0",
36
36
  "chalk": "^4.0.0",
37
37
  "change-case": "^4.1.2",
38
38
  "check-node-version": "^4.1.0",
@@ -48,5 +48,5 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "gitHead": "d1acd76ffff33ab01f0a948d2f51e5e45c95158d"
51
+ "gitHead": "5e146e949c2765411a8310bcc2641a88d036a6d9"
52
52
  }