@wp-playground/blueprints 0.9.45 → 1.0.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.
@@ -138,11 +138,7 @@
138
138
  "description": "User to log in as. If true, logs the user in as admin/password."
139
139
  },
140
140
  "phpExtensionBundles": {
141
- "type": "array",
142
- "items": {
143
- "$ref": "#/definitions/SupportedPHPExtensionBundle"
144
- },
145
- "description": "The PHP extensions to use."
141
+ "deprecated": "No longer used. Feel free to remove it from your Blueprint."
146
142
  },
147
143
  "steps": {
148
144
  "type": "array",
@@ -340,10 +336,6 @@
340
336
  "required": ["resource", "url"],
341
337
  "additionalProperties": false
342
338
  },
343
- "SupportedPHPExtensionBundle": {
344
- "type": "string",
345
- "enum": ["kitchen-sink", "light"]
346
- },
347
339
  "StepDefinition": {
348
340
  "type": "object",
349
341
  "discriminator": {
@@ -523,6 +515,10 @@
523
515
  "step": {
524
516
  "type": "string",
525
517
  "const": "enableMultisite"
518
+ },
519
+ "wpCliPath": {
520
+ "type": "string",
521
+ "description": "wp-cli.phar path"
526
522
  }
527
523
  },
528
524
  "required": ["step"]
@@ -639,16 +635,27 @@
639
635
  "const": "installPlugin",
640
636
  "description": "The step identifier."
641
637
  },
638
+ "pluginData": {
639
+ "anyOf": [
640
+ {
641
+ "$ref": "#/definitions/FileReference"
642
+ },
643
+ {
644
+ "$ref": "#/definitions/DirectoryReference"
645
+ }
646
+ ],
647
+ "description": "The plugin files to install. It can be either a plugin zip file, or a directory containing all the plugin files at its root."
648
+ },
642
649
  "pluginZipFile": {
643
650
  "$ref": "#/definitions/FileReference",
644
- "description": "The plugin zip file to install."
651
+ "deprecated": ". Use `pluginData` instead."
645
652
  },
646
653
  "options": {
647
654
  "$ref": "#/definitions/InstallPluginOptions",
648
655
  "description": "Optional installation options."
649
656
  }
650
657
  },
651
- "required": ["pluginZipFile", "step"]
658
+ "required": ["pluginData", "step"]
652
659
  },
653
660
  {
654
661
  "type": "object",
@@ -676,27 +683,27 @@
676
683
  "const": "installTheme",
677
684
  "description": "The step identifier."
678
685
  },
686
+ "themeData": {
687
+ "anyOf": [
688
+ {
689
+ "$ref": "#/definitions/FileReference"
690
+ },
691
+ {
692
+ "$ref": "#/definitions/DirectoryReference"
693
+ }
694
+ ],
695
+ "description": "The theme files to install. It can be either a theme zip file, or a directory containing all the theme files at its root."
696
+ },
679
697
  "themeZipFile": {
680
698
  "$ref": "#/definitions/FileReference",
681
- "description": "The theme zip file to install."
699
+ "deprecated": ". Use `themeData` instead."
682
700
  },
683
701
  "options": {
684
- "type": "object",
685
- "properties": {
686
- "activate": {
687
- "type": "boolean",
688
- "description": "Whether to activate the theme after installing it."
689
- },
690
- "importStarterContent": {
691
- "type": "boolean",
692
- "description": "Whether to import the theme's starter content after installing it."
693
- }
694
- },
695
- "additionalProperties": false,
702
+ "$ref": "#/definitions/InstallThemeOptions",
696
703
  "description": "Optional installation options."
697
704
  }
698
705
  },
699
- "required": ["step", "themeZipFile"]
706
+ "required": ["step", "themeData"]
700
707
  },
701
708
  {
702
709
  "type": "object",
@@ -724,7 +731,7 @@
724
731
  },
725
732
  "password": {
726
733
  "type": "string",
727
- "description": "The password to log in with. Defaults to 'password'."
734
+ "deprecated": "The password field is deprecated and will be removed in a future version.\nOnly the username field is required for user authentication."
728
735
  }
729
736
  },
730
737
  "required": ["step"]
@@ -1172,6 +1179,37 @@
1172
1179
  },
1173
1180
  "required": ["data", "path", "step"]
1174
1181
  },
1182
+ {
1183
+ "type": "object",
1184
+ "additionalProperties": false,
1185
+ "properties": {
1186
+ "progress": {
1187
+ "type": "object",
1188
+ "properties": {
1189
+ "weight": {
1190
+ "type": "number"
1191
+ },
1192
+ "caption": {
1193
+ "type": "string"
1194
+ }
1195
+ },
1196
+ "additionalProperties": false
1197
+ },
1198
+ "step": {
1199
+ "type": "string",
1200
+ "const": "writeFiles"
1201
+ },
1202
+ "writeToPath": {
1203
+ "type": "string",
1204
+ "description": "The path of the file to write to"
1205
+ },
1206
+ "filesTree": {
1207
+ "$ref": "#/definitions/DirectoryReference",
1208
+ "description": "The data to write"
1209
+ }
1210
+ },
1211
+ "required": ["filesTree", "step", "writeToPath"]
1212
+ },
1175
1213
  {
1176
1214
  "type": "object",
1177
1215
  "additionalProperties": false,
@@ -1243,12 +1281,100 @@
1243
1281
  }
1244
1282
  ]
1245
1283
  },
1284
+ "DirectoryReference": {
1285
+ "anyOf": [
1286
+ {
1287
+ "$ref": "#/definitions/GitDirectoryReference"
1288
+ },
1289
+ {
1290
+ "$ref": "#/definitions/DirectoryLiteralReference"
1291
+ }
1292
+ ]
1293
+ },
1294
+ "GitDirectoryReference": {
1295
+ "type": "object",
1296
+ "properties": {
1297
+ "resource": {
1298
+ "type": "string",
1299
+ "const": "git:directory",
1300
+ "description": "Identifies the file resource as a git directory"
1301
+ },
1302
+ "url": {
1303
+ "type": "string",
1304
+ "description": "The URL of the git repository"
1305
+ },
1306
+ "ref": {
1307
+ "type": "string",
1308
+ "description": "The branch of the git repository"
1309
+ },
1310
+ "path": {
1311
+ "type": "string",
1312
+ "description": "The path to the directory in the git repository"
1313
+ }
1314
+ },
1315
+ "required": ["resource", "url", "ref", "path"],
1316
+ "additionalProperties": false
1317
+ },
1318
+ "DirectoryLiteralReference": {
1319
+ "type": "object",
1320
+ "additionalProperties": false,
1321
+ "properties": {
1322
+ "resource": {
1323
+ "type": "string",
1324
+ "const": "literal:directory",
1325
+ "description": "Identifies the file resource as a git directory"
1326
+ },
1327
+ "files": {
1328
+ "$ref": "#/definitions/FileTree"
1329
+ },
1330
+ "name": {
1331
+ "type": "string"
1332
+ }
1333
+ },
1334
+ "required": ["files", "name", "resource"]
1335
+ },
1336
+ "FileTree": {
1337
+ "type": "object",
1338
+ "additionalProperties": {
1339
+ "anyOf": [
1340
+ {
1341
+ "$ref": "#/definitions/FileTree"
1342
+ },
1343
+ {
1344
+ "type": ["object", "string"]
1345
+ }
1346
+ ]
1347
+ },
1348
+ "properties": {}
1349
+ },
1246
1350
  "InstallPluginOptions": {
1247
1351
  "type": "object",
1248
1352
  "properties": {
1249
1353
  "activate": {
1250
1354
  "type": "boolean",
1251
1355
  "description": "Whether to activate the plugin after installing it."
1356
+ },
1357
+ "targetFolderName": {
1358
+ "type": "string",
1359
+ "description": "The name of the folder to install the plugin to. Defaults to guessing from pluginData"
1360
+ }
1361
+ },
1362
+ "additionalProperties": false
1363
+ },
1364
+ "InstallThemeOptions": {
1365
+ "type": "object",
1366
+ "properties": {
1367
+ "activate": {
1368
+ "type": "boolean",
1369
+ "description": "Whether to activate the theme after installing it."
1370
+ },
1371
+ "importStarterContent": {
1372
+ "type": "boolean",
1373
+ "description": "Whether to import the theme's starter content after installing it."
1374
+ },
1375
+ "targetFolderName": {
1376
+ "type": "string",
1377
+ "description": "The name of the folder to install the theme to. Defaults to guessing from themeData"
1252
1378
  }
1253
1379
  },
1254
1380
  "additionalProperties": false