Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wordpress/wporg-developer-blog


https://github.com/wordpress/wporg-developer-blog

wordpress wporg

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# WordPress.org Developer Blog

This repository is home to the block theme that powers the [WordPress Developer Blog](https://developer.wordpress.org/news/). The theme is a child theme of [wporg-parent-2021](https://github.com/WordPress/wporg-parent-2021).

## Development

### Prerequisites

* Docker
* Node/npm
* Yarn
* Composer

### Setup

1. Set up repo dependencies.

```bash
yarn setup:tools
```

1. Build the assets. The theme can't be activated until this step is done.

```bash
yarn workspaces run build
```

1. Start the local environment.

```bash
yarn wp-env start
```

1. Run the setup script.

```bash
yarn setup:wp
```

1. Visit site at [localhost:8888](http://localhost:8888).

1. Log in with username `admin` and password `password`.

### Environment management

These must be run in the project's root folder, _not_ in theme/plugin subfolders.

* Stop the environment.

```bash
yarn wp-env stop
```

* Restart the environment.

```bash
yarn wp-env start
```

* SSH into docker container.

```bash
yarn wp-env run wordpress bash
```

* Run wp-cli commands. Keep the wp-cli command in quotes so that the flags are passed correctly.

```bash
yarn wp-env run cli "post list --post_status=publish"
```

* Update composer dependencies and sync any `repo-tools` changes.

```bash
yarn update:tools
```