Skip to content

Commit f03b5a5

Browse files
committed
Add support for wp-env
1 parent 82fa1f6 commit f03b5a5

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

Diff for: .wp-env.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"core": "WordPress/WordPress",
3+
"port": 8080,
4+
"mappings": {
5+
"wp-content/plugins/material-design": "./plugin",
6+
"wp-content/themes/material-design-google": "./theme"
7+
},
8+
"env": {
9+
"tests": {
10+
"port": 8081
11+
}
12+
}
13+
}

Diff for: contributing/engineering.md

+6
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ git clone [email protected]:material-components/material-design-for-wordpress.git m
5555
cd material-design
5656
```
5757

58+
### Windows local enviorment
59+
Use WordPress's [wp-env](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-env/).
60+
61+
1. Install wp-env as mentioned above.
62+
2. Start with `wp-env start` (Assuming you have `wp-env` installed globally with updated PATH variable or use `npx wp-env start` to execute from repository's node_modules):
63+
5864
Setup the development tools using [Node.js](https://nodejs.org) and [Composer](https://getcomposer.org):
5965

6066
```bash

0 commit comments

Comments
 (0)