-
Notifications
You must be signed in to change notification settings - Fork 155
chore: Switch tutorial to use wp-env and Docker #2221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Replaces wp-now and blueprint setup with @wordpress/env and Docker for local WordPress development in the Faust.js tutorial. Updates documentation, environment example, and removes faust-tutorial-blueprint.json in favor of .wp-env.json. Changes all references and ports from 8881 to 8888 for consistency.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request modernizes the Faust.js tutorial's local WordPress development setup by migrating from wp-now to @wordpress/env (wp-env) with Docker, and standardizes the WordPress port to 8888 throughout all documentation and configuration files.
Key Changes:
- Replaced
wp-nowwith@wordpress/envfor Docker-based local WordPress development - Standardized WordPress port from
8881to8888across all configuration files and documentation - Introduced
.wp-env.jsonto manage required plugins and WordPress configuration settings
Reviewed Changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
examples/next/tutorial/package.json |
Updated wp-dev script to use wp-env start and added @wordpress/env as a devDependency |
examples/next/tutorial/faust-tutorial-blueprint.json |
Removed obsolete blueprint file used by wp-now |
examples/next/tutorial/.wp-env.json |
Added wp-env configuration specifying required plugins, port 8888, and debug settings |
examples/next/tutorial/.env.local.example |
Updated WordPress URL to use port 8888 |
docs/tutorial/learn-faust/index.md |
Updated tutorial instructions to reference Docker Desktop, wp-env setup steps, and port 8888 throughout |
Files not reviewed (1)
- examples/next/tutorial/package-lock.json: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
📦 Next.js Bundle Analysis for @faustwp/getting-started-exampleThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 28 out of 36 changed files in this pull request and generated 3 comments.
Files not reviewed (1)
- examples/next/tutorial/package-lock.json: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 5 out of 6 changed files in this pull request and generated no new comments.
Files not reviewed (1)
- examples/next/tutorial/package-lock.json: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This pull request updates the Faust.js tutorial and its example project to use
@wordpress/env(wp-env) and Docker for local WordPress development, replacing the previous@wp-now/wp-nowsetup. It also standardizes the WordPress local development port to8888throughout the documentation and configuration files, and removes the now-unnecessary blueprint file. These changes streamline the setup process, improve compatibility, and make the tutorial easier to follow.Local development environment migration:
@wordpress/env(wp-env) for managing the local WordPress environment, replacing the previous@wp-now/wp-nowapproach. Thewp-devscript inpackage.jsonis updated to usewp-env start, and@wordpress/envis added as a dev dependency. [1] [2] [3] [4].wp-env.jsonconfiguration file is added to specify plugins, port (8888), and debugging settings for the local WordPress environment.faust-tutorial-blueprint.jsonfile is removed from the example project.Documentation and configuration updates:
8888instead of8881for WordPress URLs, ensuring consistency and preventing port conflicts. [1] [2] [3] [4] [5] [6]These changes modernize the tutorial's local development workflow and make the setup process more reliable for new users.