Skip to content

Commit c48beb7

Browse files
committed
add wp-env
1 parent 7c524a5 commit c48beb7

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ dist
44
node_modules
55
vendor
66
Thumbs.db
7-
.DS_Store
7+
.DS_Store
8+
debug.log

.wp-env.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"phpVersion": "8.2",
3+
"plugins": ["."],
4+
"config": {
5+
"WP_DEBUG": true,
6+
"WP_DEBUG_DISPLAY": false,
7+
"WP_DEBUG_LOG": "/var/www/html/wp-content/plugins/wp-react-admin-page-example/debug.log"
8+
},
9+
"lifecycleScripts": {
10+
"afterStart": "wp-env run cli wp user update 1 --admin_color=modern"
11+
}
12+
}

0 commit comments

Comments
 (0)