Add wp-env config and instructions
This commit is contained in:
parent
67fedf104f
commit
0da2fd583e
4
.wp-env.json
Normal file
4
.wp-env.json
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"core": null,
|
||||||
|
"theme": [ "." ]
|
||||||
|
}
|
13
README.md
13
README.md
@ -10,3 +10,16 @@ Repo for practice task for Autonomic front-end recruitment.
|
|||||||
- The breadcrumb on top doesn't need to be functionaly. You can use static text.
|
- The breadcrumb on top doesn't need to be functionaly. You can use static text.
|
||||||
- You don't need to copy all of the site's content. Feel free to use placeholder text.
|
- You don't need to copy all of the site's content. Feel free to use placeholder text.
|
||||||
- Majority of the site's styling should be implemented via `theme.json`.
|
- Majority of the site's styling should be implemented via `theme.json`.
|
||||||
|
|
||||||
|
## Running the site locally
|
||||||
|
|
||||||
|
You can launch an instance of WordPress pre-loaded with this theme using the `wp-env` tool.
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ npm -g i @wordpress/env
|
||||||
|
$ cd /path/to/theme/Repo
|
||||||
|
$ wp-env start
|
||||||
|
```
|
||||||
|
|
||||||
|
This will launch a WordPress local instance at http://localhost:8888. You can log into the dashboard at http://localhost:8888/wp-admin with `admin` as the username and `password` as the password.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user