From f2ff84955e961a56d439097d2df6ca80b5ae0d1f Mon Sep 17 00:00:00 2001 From: mricoul Date: Thu, 26 Mar 2026 15:02:58 +0100 Subject: [PATCH] chore: add WordPress Playground blueprint Adds a blueprint.json configuration to allow users to test the plugin in a WordPress Playground environment and includes a "Test with WordPress Playground" badge in the README. --- README.md | 1 + blueprint.json | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 blueprint.json diff --git a/README.md b/README.md index 9868201..41bcc26 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # Blockparty — Modal +[![Test with WordPress Playground](https://img.shields.io/badge/Test%20with-WordPress%20Playground-0073aa?style=for-the-badge&logo=wordpress&logoColor=white)](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/beapi/blockparty-modal/refs/heads/main/blueprint.json) [![License: GPL v2](https://img.shields.io/badge/License-GPL%20v2-blue.svg)](https://www.gnu.org/licenses/gpl-2.0) [![WordPress: 6.8+](https://img.shields.io/badge/WordPress-6.8+-green.svg)](https://wordpress.org/) [![PHP: 8.1+](https://img.shields.io/badge/PHP-8.1+-purple.svg)](https://php.net/) diff --git a/blueprint.json b/blueprint.json new file mode 100644 index 0000000..35831f6 --- /dev/null +++ b/blueprint.json @@ -0,0 +1,28 @@ +{ + "$schema": "https://playground.wordpress.net/blueprint-schema.json", + "landingPage": "/wp-admin/post-new.php", + "preferredVersions": { + "php": "8.1", + "wp": "latest" + }, + "steps": [ + { + "step": "login", + "username": "admin", + "password": "password" + }, + { + "step": "installPlugin", + "pluginData": { + "resource": "git:directory", + "url": "https://github.com/BeAPI/blockparty-modal", + "ref": "1.0.4", + "refType": "tag" + }, + "options": { + "activate": true, + "targetFolderName": "blockparty-modal" + } + } + ] +}