Lines 1-21javascript
1"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const St=require("./index.cjs"),M={properties:{version:{type:"number",const:2,description:`Not a generic 'number' type – this schema is specifically for Blueprints v2. Version 1 had no "version" field and versions 3, 4, 5, etc will be different from version 2.`},$schema:{anyOf:[{$ref:"#/definitions/DataSources.URLReference"},{$ref:"#/definitions/DataSources.ExecutionContextPath"}],description:"JSON Schema URL."},blueprintMeta:{type:"object",properties:{name:{type:"string"},description:{type:"string"},moreInfo:{type ...
2
MediumDynamic Require
Package source references dynamic require/import behavior.
validate-blueprint-v2-CGFpDXlD.cjsView on unpkg · L1 3Example: "Adam's Movies"`,default:"My WordPress Site"},timezone_string:{type:"string",description:'Example: "Poland/Warsaw"',default:"UTC"},permalink_structure:{anyOf:[{type:"string"},{type:"boolean",const:!1}],description:'Site permalink structure. If present and different from the current permalink structure, the Blueprint runner will run `$wp_rewrite->flush_rules();`. If you only want to set this option without flushing the rules, use an explicit `additionalStepsAfterExecution` step.\n\nExample: "/%year%/%monthnum%/%postname%/" or false for no pretty permalinks.',default:"/%postname%/"},sit ...
5The runner **MUST** use the WordPress \`update_option\` function to store the siteOptions values defined in this property as WordPress options. Lists and objects are passed to \`update_option\` as PHP arrays.
9\`\`\`json { "blogname": "Adam's Movies", "timezone": "Poland/Warsaw", "gutenberg-experiments": { 'gutenberg-custom-dataviews': true, 'gutenberg-new-posts-dashboard': true, 'gutenberg-quick-edit-dataviews': true } } \`\`\``},constants:{type:"object",additionalProperties:{type:["boolean","string","number"]},properties:{WP_DEBUG:{type:"boolean"},WP_DEBUG_LOG:{type:"boolean"},WP_DEBUG_DISPLAY:{type:"boolean"},SCRIPT_DEBUG:{type:"boolean"}},description:`Constants to define in the wp-config.php file.
11The runner may overwrite the define() calls in the wp-config.php file on the target site. It assumes the wp-config.php file at the Blueprint Execution Target is writable.`},wordpressVersion:{anyOf:[{$ref:"#/definitions/DataSources.WordPressVersion"},{$ref:"#/definitions/DataSources.DataReference"},{type:"object",properties:{min:{$ref:"#/definitions/DataSources.WordPressVersionConstraintVersion"},max:{$ref:"#/definitions/DataSources.WordPressVersionConstraintVersion"},preferred:{$ref:"#/definitions/DataSources.WordPressVersionPreferredVersion",default:"latest"}},required:["min"],additionalPrope ...
13A string selects the version for a newly created site. A branch such as \`6.8\` selects the newest available release in that branch. Strings are selection hints and do not reject an existing site. \`"none"\` boots the PHP runtime without downloading WordPress or initializing its database.
15An object declares compatibility bounds. The runner chooses the newest available release within those bounds for a new site and verifies an existing site's installed version against them. \`preferred\` influences new-site selection without narrowing compatibility.
17A data reference supplies the WordPress files for a newly created site.`,default:"latest"},phpVersion:{anyOf:[{$ref:"#/definitions/DataSources.PHPVersion"},{type:"object",properties:{min:{$ref:"#/definitions/DataSources.PHPVersionConstraintVersion"},recommended:{$ref:"#/definitions/DataSources.PHPVersionConstraintVersion"},max:{$ref:"#/definitions/DataSources.PHPVersionConstraintVersion"}},additionalProperties:!1}],description:`The PHP version required for this Blueprint to work.
19In runtimes where we set up the runtime, such as Playground and wp-env, the runner will choose a version compatible with this constraint.
21In other environments, this is used for validation. The Blueprint engine will throw an error if the currently running PHP version doesn't match this constraint.`,default:'"8.0". Changing the default value will bump the Blueprint version.'},activeTheme:{anyOf:[{$ref:"#/definitions/DataSources.ThemeDirectoryReference"},{$ref:"#/definitions/DataSources.DataReference"},{type:"object",properties:{source:{anyOf:[{$ref:"#/definitions/DataSources.ThemeDirectoryReference"},{$ref:"#/definitions/DataSources.DataReference"}]},importStarterContent:{type:"boolean",description:"Whether to import the theme's ...
Long lines were clipped for display.