WordPress.org News Theme, 2021 edition
This is starting as a fork of Blockbase.
mu-plugins repo.
Development
Prerequisites
- Docker
- Node/npm
- Yarn
- Composer
Setup
- Set up repo dependencies:
yarn run initial-setup - Build the assets:
yarn workspaces run build. The theme can't be activated until this step is done. - Start up and provision the environment:
yarn run env:setup - Visit site at
localhost:8888 - Log in with username
adminand passwordpassword
Environment management
These must be run in the project's root folder, not in theme/plugin subfolders.
- Stop the environment:
yarn run env:stoporyarn run wp-env stop - Restart the environment:
yarn run envoryarn run wp-env start - Reset the dev site's content:
yarn run env:reset && yarn run env:import - SSH into docker container:
docker exec -it {container ID} /bin/bash. You can get the ID fromdocker ps.
Asset management
- Build all assets once:
yarn workspaces run build - Rebuild all assets on change:
yarn run start:all