Skip to content

Commit 9559790

Browse files
committed
Add wp-env configuration for local development environment
1 parent 2786523 commit 9559790

2 files changed

Lines changed: 28 additions & 2 deletions

File tree

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ coverage/html/
4040
# ENV files
4141
.env
4242

43-
# wp-env
44-
.wp-env.json
43+
# wp-env personal overrides
44+
.wp-env.override.json
4545

4646
# IDE
4747
.vscode

.wp-env.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"core": "WordPress/WordPress#6.9.4",
3+
"phpVersion": "8.2",
4+
"plugins": ["."],
5+
"config": {
6+
"WP_DEBUG": true,
7+
"WP_DEBUG_LOG": true,
8+
"SCRIPT_DEBUG": true
9+
},
10+
"mappings": {
11+
"wp-content/mu-plugins": "./.wp-env/mu-plugins"
12+
},
13+
"lifecycleScripts": {
14+
"afterStart": "./.wp-env/scripts/fix-loopback.sh"
15+
},
16+
"env": {
17+
"tests": {
18+
"phpVersion": "8.2",
19+
"config": {
20+
"WP_DEBUG": true,
21+
"WP_DEBUG_LOG": true,
22+
"SCRIPT_DEBUG": true
23+
}
24+
}
25+
}
26+
}

0 commit comments

Comments
 (0)