Browse Happy Environment#666
Conversation
I have created a folder with wp-env environment configuration for the Browse Happy website (https://browsehappy.com). As part of this change I have also included an after start script to preset the theme and change the title/description in the environment.
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Unlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @JamieBradders. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds a new wp-env configuration to spin up a local Browse Happy site, including bootstrap setup and usage docs.
Changes:
- Add a new
browsehappy:envnpm script for starting the Browse Happy environment. - Introduce
environments/browsehappy/.wp-env.jsonand anafterStartlifecycle script to configure the site on startup. - Document how to start and access the Browse Happy environment.
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| environments/package.json | Adds browsehappy:env script entry (and re-formats JSON). |
| environments/browsehappy/bin/after-start.sh | Adds post-start bootstrap steps (site options + theme activation). |
| environments/browsehappy/.wp-env.json | Defines the wp-env setup for Browse Happy (core/php/theme + lifecycle script). |
| environments/README.md | Documents how to start/access the Browse Happy environment. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "lifecycleScripts": { | ||
| "afterStart": "bash browsehappy/bin/after-start.sh" | ||
| }, |
There was a problem hiding this comment.
I'm not sure if this is a valid suggestion becausebin/after-start.sh is not a valid path. To be sure, I tested it and got the error:
✖ afterStart Error:
bash: bin/after-start.sh: No such file or directory
I also followed the same convention as that from the jobs/ environment config.
|
AI review: |
| "core": "WordPress/WordPress#master", | ||
| "phpVersion": "8.4", | ||
| "testsEnvironment": false, | ||
| "themes": ["../browsehappy.com/public_html"], |
| { | ||
| "core": "WordPress/WordPress#master", | ||
| "phpVersion": "8.4", | ||
| "testsEnvironment": false, | ||
| "themes": ["../browsehappy.com/public_html"], | ||
| "lifecycleScripts": { | ||
| "afterStart": "bash browsehappy/bin/after-start.sh" | ||
| }, | ||
| "config": { | ||
| "WP_DEBUG": true | ||
| } | ||
| } |
Removed the irrelevant comments from the after-start.sh script and reverted the tabs -> spaces change in package.json
Added extra detail to the comments for activating the browse happy theme to avoid confusion in the future.
| @@ -0,0 +1,12 @@ | |||
| { | |||
| "core": "WordPress/WordPress#master", | |||
| { | ||
| "core": "WordPress/WordPress#master", | ||
| "phpVersion": "8.4", | ||
| "testsEnvironment": false, | ||
| "themes": ["../browsehappy.com/public_html"], | ||
| "lifecycleScripts": { | ||
| "afterStart": "bash browsehappy/bin/after-start.sh" | ||
| }, | ||
| "config": { | ||
| "WP_DEBUG": true | ||
| } | ||
| } |
| **Access:** `http://localhost:8888` | ||
|
|
||
| ### Handbook (in-plugin) |
|
hmm, I think I might have broken this by attempting to update the branch myself (and without permissions on your fork @JamieBradders ) |
|
Superseded by #668, which recreates this work (with props to @JamieBradders) on a branch in the main repo so it can be merged from there. Closing in favour of #668. |
I have created a folder with wp-env environment configuration for the Browse Happy website (https://browsehappy.com). As part of this change I have also included an after start script to preset the theme and change the title/description in the environment.