Repository navigation
Added wp-env based local development setup - #283
Merged
Merged
Conversation
Member
|
I guess it would be worth using the (experimental) Playground integration in wp-env to not being forced to work with Docker, which adds additional complexity, dependencies as well as more load and less performance for the environment. |
Contributor
Author
|
Good point, thanks! I switched the default to the Playground runtime ( I kept a Docker option ( |
MatzeKitt
self-requested a review
November 14, 2026 10:13
Member
|
Thanks for implementing! |
MatzeKitt
approved these changes
Nov 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a reproducible local WordPress environment via
@wordpress/env, running on the WordPress Playground runtime by default (no Docker needed), pinned to PHP 8.3 to match CI. No plugin code is modified..wp-env.json: loads and activates the plugin and Plugin Check, enablesWP_DEBUG/SCRIPT_DEBUG, port8888package.json/package-lock.json: adds@wordpress/envand the scripts below (lockfile changes are additive only).distignore: excludes.wp-env.jsonfrom the release archiveUsage
start:wp-envstart:wp-env:dockerstop:wp-env/reset:wp-env/destroy:wp-envshell:wp-envplugin-check:wp-envwp plugin check embed-privacy(Docker only)Notes
wp-env runyet, so WP-CLI commands need the Docker runtime. Plugin Check can still be used from wp-admin under Playground.npm run buildis required first: withWP_DEBUGon, the plugin callsfilemtime()on gitignored build artefacts (inc/class-frontend.php:62), which warns on a fresh clone. Afile_exists()guard could be a follow-up.Requires PHP: 5.6in the plugin header.