Skip to content

Conversation

@GaryJones
Copy link
Contributor

Summary

Adds .wp-env.json to standardise local development environment across all VIP-maintained plugins.

Changes

  • Add .wp-env.json configuration file
  • PHP version set to plugin minimum (varies by plugin)
  • WordPress set to latest production release (auto-updates)
  • Query Monitor auto-installed via lifecycle script
  • Debug constants enabled (WP_DEBUG, WP_DEBUG_LOG, SCRIPT_DEBUG)
  • Test environment configured with PHP 8.4 + WordPress trunk

Benefits

  • Simple wp-env start to get started
  • Automatic Query Monitor installation
  • Test against bleeding-edge PHP/WP with wp-env start --env=tests
  • Replaces other local dev-env with code-based configuration

Testing

npm g -i @wordpress/env
wp-env start
# Visit http://localhost:8888
# Query Monitor and this plugin should be active

Add .wp-env.json to standardize local development environment with:
- PHP 7.4 (plugin minimum)
- Latest WordPress (auto-updates)
- Query Monitor auto-installed
- Debug constants enabled
- Test environment with PHP 8.4 + WordPress trunk

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@GaryJones GaryJones self-assigned this Nov 5, 2025
@GaryJones GaryJones added the type: maintenance Routine maintenance and code quality improvements label Nov 5, 2025
@GaryJones GaryJones merged commit b2e3cee into develop Nov 5, 2025
8 checks passed
@GaryJones GaryJones deleted the feat/wp-env-config branch November 5, 2025 19:06
@GaryJones GaryJones added this to the Next milestone Dec 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: maintenance Routine maintenance and code quality improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants