From 1672888a77cce1e92a045a9f2127e9cefd2dfd43 Mon Sep 17 00:00:00 2001 From: Adam Wood <1017872+adamwoodnz@users.noreply.github.com> Date: Wed, 20 Mar 2024 13:04:51 +0900 Subject: [PATCH 1/7] Add blueprint to activate theme and plugin --- blueprint.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 blueprint.json diff --git a/blueprint.json b/blueprint.json new file mode 100644 index 000000000..f4ad7cfa8 --- /dev/null +++ b/blueprint.json @@ -0,0 +1,14 @@ +{ + "$schema": "https://playground.wordpress.net/blueprint-schema.json", + "steps": [ + { + "step": "activateTheme", + "themeFolderName": "wporg-learn-2020" + }, + { + "step": "activatePlugin", + "pluginName": "WordPress.org Learn", + "pluginPath": "wporg-learn/wporg-learn.php" + } + ] +} From bca13e81cbb0526fefcf25dbe82658b2c5163e21 Mon Sep 17 00:00:00 2001 From: Adam Wood <1017872+adamwoodnz@users.noreply.github.com> Date: Wed, 20 Mar 2024 13:21:30 +0900 Subject: [PATCH 2/7] Add npm script to start using wp-now --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 098f0669a..9a182ca06 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,8 @@ "start:locale-switcher": "yarn workspace wporg-locale-switcher start", "start:plugin": "yarn workspace wporg-learn-plugin start", "start:theme": "yarn workspace wporg-learn-2024 start", - "wp-env": "wp-env" + "wp-env": "wp-env", + "wp-now": "(cd wp-content && wp-now start --blueprint=../blueprint.json --reset)" }, "main": "index.js" } From 34f189087cbc899769d15b80d4bbb91f5823e08a Mon Sep 17 00:00:00 2001 From: Adam Wood <1017872+adamwoodnz@users.noreply.github.com> Date: Wed, 20 Mar 2024 13:29:47 +0900 Subject: [PATCH 3/7] Fix theme path in blueprint --- blueprint.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blueprint.json b/blueprint.json index f4ad7cfa8..590ee8ddd 100644 --- a/blueprint.json +++ b/blueprint.json @@ -3,7 +3,7 @@ "steps": [ { "step": "activateTheme", - "themeFolderName": "wporg-learn-2020" + "themeFolderName": "pub/wporg-learn-2020" }, { "step": "activatePlugin", From 20b16853e3e265da220876adde37061bedb008b9 Mon Sep 17 00:00:00 2001 From: Adam Wood <1017872+adamwoodnz@users.noreply.github.com> Date: Thu, 21 Mar 2024 12:29:12 +0900 Subject: [PATCH 4/7] Stop resetting wp-now env Allows plugin and theme activation --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9a182ca06..c6f337ae2 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "start:plugin": "yarn workspace wporg-learn-plugin start", "start:theme": "yarn workspace wporg-learn-2024 start", "wp-env": "wp-env", - "wp-now": "(cd wp-content && wp-now start --blueprint=../blueprint.json --reset)" + "wp-now": "(cd wp-content && wp-now start --blueprint=../blueprint.json)" }, "main": "index.js" } From 93e4fbc5d214c8d2024d8d96a2b25af6f5f4a562 Mon Sep 17 00:00:00 2001 From: Adam Wood <1017872+adamwoodnz@users.noreply.github.com> Date: Thu, 21 Mar 2024 12:45:50 +0900 Subject: [PATCH 5/7] Activate all the plugins --- blueprint.json | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/blueprint.json b/blueprint.json index 590ee8ddd..bd1c0f935 100644 --- a/blueprint.json +++ b/blueprint.json @@ -9,6 +9,46 @@ "step": "activatePlugin", "pluginName": "WordPress.org Learn", "pluginPath": "wporg-learn/wporg-learn.php" + }, + { + "step": "activatePlugin", + "pluginName": "Gutenberg", + "pluginPath": "gutenberg/gutenberg.php" + }, + { + "step": "activatePlugin", + "pluginName": "Sensei LMS", + "pluginPath": "sensei-lms/sensei-lms.php" + }, + { + "step": "activatePlugin", + "pluginName": "Sensei Pro", + "pluginPath": "sensei-pro/sensei-pro.php" + }, + { + "step": "activatePlugin", + "pluginName": "Jetpack", + "pluginPath": "jetpack/jetpack.php" + }, + { + "step": "activatePlugin", + "pluginName": "Edit Flow", + "pluginPath": "edit-flow/edit_flow.php" + }, + { + "step": "activatePlugin", + "pluginName": "Code Syntax Block", + "pluginPath": "code-syntax-block/index.php" + }, + { + "step": "activatePlugin", + "pluginName": "Locale Detection", + "pluginPath": "locale-detection/locale-detection.php" + }, + { + "step": "activatePlugin", + "pluginName": "WordPress Importer", + "pluginPath": "wordpress-importer/wordpress-importer.php" } ] } From 6bd2713f525e8b9ca34cd166469ae8d06bee2c09 Mon Sep 17 00:00:00 2001 From: Adam Wood <1017872+adamwoodnz@users.noreply.github.com> Date: Tue, 17 Sep 2024 12:35:40 +1200 Subject: [PATCH 6/7] Use 2024 theme for blueprint --- blueprint.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blueprint.json b/blueprint.json index bd1c0f935..2c7dfa721 100644 --- a/blueprint.json +++ b/blueprint.json @@ -3,7 +3,7 @@ "steps": [ { "step": "activateTheme", - "themeFolderName": "pub/wporg-learn-2020" + "themeFolderName": "pub/wporg-learn-2024" }, { "step": "activatePlugin", From 8a0b30dd74c66857a19dda50e0796531367fe79d Mon Sep 17 00:00:00 2001 From: Adam Wood <1017872+adamwoodnz@users.noreply.github.com> Date: Mon, 23 Sep 2024 16:32:14 +1200 Subject: [PATCH 7/7] Reduce blueprint to core plugins --- blueprint.json | 34 +++++++--------------------------- 1 file changed, 7 insertions(+), 27 deletions(-) diff --git a/blueprint.json b/blueprint.json index 2c7dfa721..b911d06e7 100644 --- a/blueprint.json +++ b/blueprint.json @@ -2,13 +2,9 @@ "$schema": "https://playground.wordpress.net/blueprint-schema.json", "steps": [ { - "step": "activateTheme", - "themeFolderName": "pub/wporg-learn-2024" - }, - { - "step": "activatePlugin", - "pluginName": "WordPress.org Learn", - "pluginPath": "wporg-learn/wporg-learn.php" + "step": "login", + "username": "admin", + "password": "password" }, { "step": "activatePlugin", @@ -27,28 +23,12 @@ }, { "step": "activatePlugin", - "pluginName": "Jetpack", - "pluginPath": "jetpack/jetpack.php" - }, - { - "step": "activatePlugin", - "pluginName": "Edit Flow", - "pluginPath": "edit-flow/edit_flow.php" - }, - { - "step": "activatePlugin", - "pluginName": "Code Syntax Block", - "pluginPath": "code-syntax-block/index.php" - }, - { - "step": "activatePlugin", - "pluginName": "Locale Detection", - "pluginPath": "locale-detection/locale-detection.php" + "pluginName": "WordPress.org Learn", + "pluginPath": "wporg-learn/wporg-learn.php" }, { - "step": "activatePlugin", - "pluginName": "WordPress Importer", - "pluginPath": "wordpress-importer/wordpress-importer.php" + "step": "activateTheme", + "themeFolderName": "pub/wporg-learn-2024" } ] }