@wp-playground/blueprints 0.5.1 → 0.5.3
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.json +5 -0
- package/index.cjs +453 -112
- package/index.d.ts +15 -1
- package/index.js +2308 -1910
- package/lib/steps/define-wp-config-consts.d.ts +18 -1
- package/lib/steps/index.d.ts +1 -1
- package/lib/utils/flatten-directory.d.ts +12 -0
- package/lib/utils/run-php-with-zip-functions.d.ts +2 -0
- package/lib/utils/update-file.d.ts +12 -0
- package/lib/utils/wp-content-files-excluded-from-exports.d.ts +6 -0
- package/lib/utils/zip-name-to-human-name.d.ts +9 -0
- package/package.json +3 -3
- package/lib/steps/common.d.ts +0 -13
package/index.d.ts
CHANGED
|
@@ -1460,6 +1460,20 @@ export interface DefineWpConfigConstsStep {
|
|
|
1460
1460
|
step: "defineWpConfigConsts";
|
|
1461
1461
|
/** The constants to define */
|
|
1462
1462
|
consts: Record<string, unknown>;
|
|
1463
|
+
/**
|
|
1464
|
+
* The method of defining the constants. Possible values are:
|
|
1465
|
+
*
|
|
1466
|
+
* - rewrite-wp-config: Default. Rewrites the wp-config.php file to
|
|
1467
|
+
* explicitly call define() with the requested
|
|
1468
|
+
* name and value. This method alters the file
|
|
1469
|
+
* on the disk, but it doesn't conflict with
|
|
1470
|
+
* existing define() calls in wp-config.php.
|
|
1471
|
+
* - define-before-run: Defines the constant before running the requested
|
|
1472
|
+
* script. It doesn't alter any files on the disk, but
|
|
1473
|
+
* constants defined this way may conflict with existing
|
|
1474
|
+
* define() calls in wp-config.php.
|
|
1475
|
+
*/
|
|
1476
|
+
method?: "rewrite-wp-config" | "define-before-run";
|
|
1463
1477
|
/**
|
|
1464
1478
|
* @deprecated This option is noop and will be removed in a future version.
|
|
1465
1479
|
* This option is only kept in here to avoid breaking Blueprint schema validation
|
|
@@ -1468,7 +1482,7 @@ export interface DefineWpConfigConstsStep {
|
|
|
1468
1482
|
virtualize?: boolean;
|
|
1469
1483
|
}
|
|
1470
1484
|
/**
|
|
1471
|
-
* Defines constants
|
|
1485
|
+
* Defines constants in a wp-config.php file.
|
|
1472
1486
|
*
|
|
1473
1487
|
* This step can be called multiple times, and the constants will be merged.
|
|
1474
1488
|
*
|