@wordpress/build 0.6.0 → 0.6.2-next.v.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 +4 -0
- package/README.md +13 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -136,6 +136,18 @@ Files to copy with optional PHP transformations:
|
|
|
136
136
|
|
|
137
137
|
Configure your root `package.json` with a `wpPlugin` object to control global namespace and externalization behavior:
|
|
138
138
|
|
|
139
|
+
### `wpPlugin.name`
|
|
140
|
+
|
|
141
|
+
Name used to prefix genereated PHP functions. Must follow function name rules in PHP, i.e. valid name starts with a letter or underscore, followed by any number of letters, numbers, or underscores.
|
|
142
|
+
|
|
143
|
+
```json
|
|
144
|
+
{
|
|
145
|
+
"wpPlugin": {
|
|
146
|
+
"name": "myPlugin"
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
```
|
|
150
|
+
|
|
139
151
|
### `wpPlugin.scriptGlobal`
|
|
140
152
|
|
|
141
153
|
The global variable name for your packages (e.g., `"wp"`, `"myPlugin"`). Set to `false` to disable global exposure:
|
|
@@ -339,6 +351,7 @@ This configuration:
|
|
|
339
351
|
```json
|
|
340
352
|
{
|
|
341
353
|
"wpPlugin": {
|
|
354
|
+
"name": "acme",
|
|
342
355
|
"scriptGlobal": "acme",
|
|
343
356
|
"packageNamespace": "acme"
|
|
344
357
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/build",
|
|
3
|
-
"version": "0.6.0",
|
|
3
|
+
"version": "0.6.2-next.v.0+b8934fcf9",
|
|
4
4
|
"description": "Build tool for WordPress plugins.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"publishConfig": {
|
|
78
78
|
"access": "public"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "17529010285784fd2e735348a28391c79de87c88"
|
|
81
81
|
}
|