Skip to content

Commit

Permalink
Experimental: Adds declarative properties to the Blueprint schema (#788)
Browse files Browse the repository at this point in the history
## What is this PR doing?

First stab at
https://github.com/WordPress/wordpress-playground/issues/787

This PR proposes a first few declarative Blueprint properties:

```js
{
	"landingPage": "/wp-admin/post-new.php",
	"plugins": [ 
		"gutenberg", 
		"classic-editor",
		"https://mysite.com/plugin.zip",
		{ "resource": "url", "https://mysite.com/plugin.zip" }
	],
	"login": true,
	"siteOptions": {
		"blogname": "My site!"
	}
}
```

Under the hood, all these declarative properties are translated into
`steps` and prepended to the list of Blueprint steps. Therefore, the
imperative `steps` API is still supported and can be mixed with the
declarative syntax.

These new options are all marked as deprecated from the start to
discourage their use. Once they're stable, I'll remove the deprecation
notice.

## Testing instructions

* Pull this branch
* Paste the below Blueprint at http://localhost:5400/website-server/#
<-- here
* Confirm it worked as expected

```js

```js
{
	"landingPage": "/wp-admin/post-new.php",
	"plugins": [ 
		"gutenberg", 
		"classic-editor"
	],
	"login": true,
	"siteOptions": {
		"blogname": "My site!"
	}
}
```



cc @dmsnell @seanmorris
  • Loading branch information
adamziel authored Nov 24, 2023
1 parent 0654635 commit 0318c77
Show file tree
Hide file tree
Showing 3 changed files with 317 additions and 169 deletions.
Loading

0 comments on commit 0318c77

Please sign in to comment.