Reorganise files, update local configs

This commit is contained in:
3wc
2024-01-13 20:07:12 -03:00
parent 43fd49bf40
commit 7c613510bf
17 changed files with 15 additions and 9 deletions

View File

@ -14,11 +14,16 @@ Repo for practice task for Autonomic front-end recruitment.
## Running the site locally
**Note** With all methods, you'll see a white screen when you visit the local
instance, because this theme is blank! You can check things are working by
visiting the local URL before the `theme activate` step, or just go straight to
the dashboard at `/wp-admin` and start hacking.
### `wp-env`
**Note** this will only work with newer versions of Docker, if `docker compose`
gives `'compose' is not a docker command.` then either upgrade Docker or use
another method.
**Note** The latest `wp-env` requires "Docker Compose V2"; if `docker compose`
gives `'compose' is not a docker command.` then run `npm -g i
@wordpress/env@8.13.0` instead of the first command.
You can launch an instance of WordPress pre-installed with this theme using the `wp-env` tool.
@ -26,6 +31,7 @@ You can launch an instance of WordPress pre-installed with this theme using the
$ npm -g i @wordpress/env
$ cd /path/to/theme/Repo
$ wp-env start
$ wp-env run cli wp theme activate sample-wp-block-theme
```
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.