@wp-playground/blueprints 1.0.3 → 1.0.5
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/blueprint-schema-validator.js +155 -138
- package/blueprint-schema.json +7 -4
- package/index.cjs +11 -15
- package/index.d.ts +1 -1
- package/index.js +676 -677
- package/lib/blueprint.d.ts +2 -1
- package/lib/compile.d.ts +1 -1
- package/package.json +11 -11
package/lib/blueprint.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { SupportedPHPVersion } from '@php-wasm/universal';
|
|
|
2
2
|
import { StepDefinition } from './steps';
|
|
3
3
|
import { FileReference } from './resources';
|
|
4
4
|
export type ExtraLibrary = 'wp-cli';
|
|
5
|
+
export type PHPConstants = Record<string, string | boolean | number>;
|
|
5
6
|
export interface Blueprint {
|
|
6
7
|
/**
|
|
7
8
|
* The URL to navigate to after the blueprint has been run.
|
|
@@ -63,7 +64,7 @@ export interface Blueprint {
|
|
|
63
64
|
/**
|
|
64
65
|
* PHP Constants to define on every request
|
|
65
66
|
*/
|
|
66
|
-
constants?:
|
|
67
|
+
constants?: PHPConstants;
|
|
67
68
|
/**
|
|
68
69
|
* WordPress plugins to install and activate
|
|
69
70
|
*/
|
package/lib/compile.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export interface CompileBlueprintOptions {
|
|
|
31
31
|
*
|
|
32
32
|
* For example, if corsProxy is set to "https://cors.wordpress.net/proxy.php",
|
|
33
33
|
* then the CORS requests to https://github.com/WordPress/gutenberg.git would actually
|
|
34
|
-
* be made to https://cors.wordpress.net/proxy.php
|
|
34
|
+
* be made to https://cors.wordpress.net/proxy.php?https://github.com/WordPress/gutenberg.git.
|
|
35
35
|
*/
|
|
36
36
|
corsProxy?: string;
|
|
37
37
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wp-playground/blueprints",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"exports": {
|
|
5
5
|
".": {
|
|
6
6
|
"import": "./index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"access": "public",
|
|
22
22
|
"directory": "../../../dist/packages/playground/blueprints"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "46db8582432b91516c1f25c591d2d0f346b99c5c",
|
|
25
25
|
"engines": {
|
|
26
26
|
"node": ">=18.18.0",
|
|
27
27
|
"npm": ">=8.11.0"
|
|
@@ -44,14 +44,14 @@
|
|
|
44
44
|
"sha.js": "2.4.11",
|
|
45
45
|
"simple-get": "4.0.1",
|
|
46
46
|
"wasm-feature-detect": "1.8.0",
|
|
47
|
-
"@php-wasm/node-polyfills": "1.0.
|
|
48
|
-
"@php-wasm/universal": "1.0.
|
|
49
|
-
"@wp-playground/common": "1.0.
|
|
50
|
-
"@php-wasm/node": "1.0.
|
|
51
|
-
"@php-wasm/progress": "1.0.
|
|
52
|
-
"@php-wasm/util": "1.0.
|
|
53
|
-
"@php-wasm/logger": "1.0.
|
|
54
|
-
"@wp-playground/storage": "1.0.
|
|
55
|
-
"@wp-playground/wordpress": "1.0.
|
|
47
|
+
"@php-wasm/node-polyfills": "1.0.5",
|
|
48
|
+
"@php-wasm/universal": "1.0.5",
|
|
49
|
+
"@wp-playground/common": "1.0.5",
|
|
50
|
+
"@php-wasm/node": "1.0.5",
|
|
51
|
+
"@php-wasm/progress": "1.0.5",
|
|
52
|
+
"@php-wasm/util": "1.0.5",
|
|
53
|
+
"@php-wasm/logger": "1.0.5",
|
|
54
|
+
"@wp-playground/storage": "1.0.5",
|
|
55
|
+
"@wp-playground/wordpress": "1.0.5"
|
|
56
56
|
}
|
|
57
57
|
}
|