Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add WP.org plugin demo #667

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions assets/blueprints/blueprint.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"landingPage": "/wp-admin/profile.php",
"landingPage": "\/wp-admin\/profile.php",
"preferredVersions": {
"php": "7.4",
"wp": "latest"
},
"steps": [
{
"step": "login"
"step": "login",
"username": "admin",
"password": "password"
},
{
"step": "installPlugin",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WP.org might be doing this out of the box but we keep it here to ensure we can test it without deploying changes to WP.org.

"pluginData": {
"resource": "wordpress.org/plugins",
"pluginZipFile": {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jeffpaul The documentation on the site is old. The latest schema can be seen here https://playground.wordpress.net/blueprint-schema.json

For example, the pluginZipFile is deprecated:

schema

VS Code should be able to autocomplete and suggest the field values per https://code.visualstudio.com/docs/languages/json#_json-schemas-and-settings

"resource": "wordpress.org\/plugins",
"slug": "two-factor"
},
"options": {
Expand Down
Loading