chore: scaffold CHRNX theme tooling
This commit is contained in:
12 files changed
+29784
No files matched your search
@@ -0,0 +1,47 @@
|
||||
# CHRNX WordPress Theme
|
||||
|
||||
Custom WordPress theme for chrnx.dev. This repository currently contains the
|
||||
approved design materials and a reproducible local development scaffold.
|
||||
|
||||
## Prerequisites
|
||||
|
||||
- Node.js 22 (use `nvm use`)
|
||||
- npm
|
||||
- Composer dependencies are installed inside the wp-env CLI container
|
||||
- Docker through Colima on macOS
|
||||
- Docker Compose v2 available as a Docker CLI plugin
|
||||
|
||||
## Local setup
|
||||
|
||||
```sh
|
||||
nvm use
|
||||
npm install
|
||||
npx playwright install chromium firefox webkit
|
||||
colima start
|
||||
PATH="/opt/homebrew/opt/docker/bin:$PATH" npm run env:start
|
||||
PATH="/opt/homebrew/opt/docker/bin:$PATH" npm run composer -- install
|
||||
```
|
||||
|
||||
The local WordPress site is available at <http://localhost:8888>. Once the
|
||||
theme implementation exists, activate it with `npm run env:activate`.
|
||||
|
||||
Run the configuration smoke test with:
|
||||
|
||||
```sh
|
||||
npm run test:smoke
|
||||
```
|
||||
|
||||
Use `npm run env:stop` to stop the local WordPress environment.
|
||||
|
||||
If Homebrew's Docker CLI cannot find an existing standalone Compose v2 binary,
|
||||
link it into Docker's per-user plugin directory before starting wp-env:
|
||||
|
||||
```sh
|
||||
mkdir -p "$HOME/.docker/cli-plugins"
|
||||
ln -s /usr/local/bin/docker-compose "$HOME/.docker/cli-plugins/docker-compose"
|
||||
```
|
||||
|
||||
## Deployment boundary
|
||||
|
||||
This setup is local-only. It does not create or configure a production
|
||||
deployment, publish the theme, or mutate chrnx.dev.
|
||||
Reference in new issue
Block a user