Skip to content

Commit

Permalink
Add blueprint.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwelcher committed May 21, 2024
1 parent 402e50e commit 1e69438
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions _blueprint/to-do-mvc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"preferredVersions": {
"php": "8.0",
"wp": "latest"
},
"phpExtensionBundles": [
"kitchen-sink"
],
"features": {},
"steps": [
null,
false,
{
"step": "login",
"username": "admin",
"password": "password"
},
{
"step": "installPlugin",
"pluginZipFile": {
"resource": "url",
"url": "https://github-proxy.com/proxy/?repo=ryanwelcher/interactivity-api-todomvc&release=test-four&asset=to-do-mvc.zip"
},
"options": {
"activate": true
}
},
{
"step": "wp-cli",
"command": "wp option update show_on_front page"
},
{
"step": "wp-cli",
"command": "wp post create --post_type='Page' --post_title='' --post_status='publish' --post_content='<!-- wp:to-do-mvc/to-do-mvc /-->'"
},
{
"step": "runPHP",
"code": "<?php require_once 'wordpress/wp-load.php'; $pages = wp_get_recent_posts( array( 'post_type'=>'page', 'post_per_page' => 1 ) ); update_option( 'page_on_front', $pages[0]['ID'] ); ?>"
},
null,
null
]
}

0 comments on commit 1e69438

Please sign in to comment.