Skip to content

Commit e8fd628

Browse files
GaryJonesclaude
andcommitted
Add wp-env configuration for local development
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]>
1 parent 4dd4379 commit e8fd628

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.wp-env.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"plugins": [
3+
"."
4+
],
5+
"phpVersion": "7.4",
6+
"config": {
7+
"WP_DEBUG": true,
8+
"WP_DEBUG_LOG": true,
9+
"SCRIPT_DEBUG": true
10+
},
11+
"lifecycleScripts": {
12+
"afterStart": "wp-env run cli wp plugin install query-monitor --activate"
13+
},
14+
"env": {
15+
"tests": {
16+
"phpVersion": "8.4",
17+
"core": "WordPress/WordPress#trunk"
18+
}
19+
}
20+
}

0 commit comments

Comments
 (0)