Skip to content

Conversation

@josephfusco
Copy link
Member

This pull request updates the Faust.js tutorial and example project to use @wordpress/env (wp-env) and Docker for the local WordPress development environment, replacing the previous wp-now setup. It also standardizes the WordPress port to 8888 throughout the documentation and configuration files, ensuring consistency for users following the tutorial. The required plugins and environment settings are now managed via a new .wp-env.json file, and references to outdated blueprint files and instructions have been removed.

Environment setup modernization

  • Replaced the usage of wp-now and the faust-tutorial-blueprint.json blueprint with @wordpress/env (wp-env), leveraging Docker for local WordPress development. The wp-dev script now runs wp-env start instead of npx @wp-now/wp-now start. (docs/tutorial/learn-faust/index.md [1] examples/next/tutorial/package.json [2] [3]
  • Added .wp-env.json configuration file to specify required plugins (wp-graphql, faustwp), set the WordPress port to 8888, and enable debugging options. (examples/next/tutorial/.wp-env.json examples/next/tutorial/.wp-env.jsonR1-R12)
  • Removed the obsolete faust-tutorial-blueprint.json file, as it is no longer needed with wp-env. (examples/next/tutorial/faust-tutorial-blueprint.json examples/next/tutorial/faust-tutorial-blueprint.jsonL1-L20)

Documentation and configuration consistency

  • Updated all tutorial instructions, URLs, and environment variables to use port 8888 for WordPress instead of 8881, including .env.local.example and .env.local references. (docs/tutorial/learn-faust/index.md [1] [2] [3] [4] examples/next/tutorial/.env.local.example [5]
  • Clarified setup steps in the documentation, including instructions for installing Docker Desktop and accessing the WordPress admin with default credentials. (docs/tutorial/learn-faust/index.md [1] [2]

These updates streamline the tutorial setup, improve reliability by using Docker, and ensure all documentation and configuration files are aligned for a smoother learning experience.

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.
@josephfusco josephfusco requested a review from a team as a code owner November 20, 2025 19:39
@changeset-bot
Copy link

changeset-bot bot commented Nov 20, 2025

⚠️ No Changeset found

Latest commit: 63faa52

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

Copilot AI left a 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-now with @wordpress/env for Docker-based local WordPress development
  • Standardized WordPress port from 8881 to 8888 across all configuration files and documentation
  • Introduced .wp-env.json to 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.

@josephfusco josephfusco linked an issue Nov 20, 2025 that may be closed by this pull request
@github-actions
Copy link
Contributor

github-actions bot commented Nov 20, 2025

📦 Next.js Bundle Analysis for @faustwp/getting-started-example

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@josephfusco josephfusco requested a review from Copilot November 20, 2025 19:57
Copy link

Copilot AI left a 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.

{
"phpVersion": "8.3",
"plugins": [
"https://github.com/wp-graphql/wp-graphql/releases/latest/download/wp-graphql.zip",
Copy link

Copilot AI Nov 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Inconsistent plugin sources: wp-graphql is downloaded from GitHub releases while faustwp is from WordPress.org. For consistency and reliability, both plugins should use the same source. Consider using WordPress.org for both or document why different sources are needed.

Suggested change
"https://github.com/wp-graphql/wp-graphql/releases/latest/download/wp-graphql.zip",
"https://downloads.wordpress.org/plugin/wp-graphql.latest-stable.zip",

Copilot uses AI. Check for mistakes.
Comment on lines +10 to +11
"lint": "next lint",
"wp-dev": "npx @wp-now/wp-now start --blueprint faust-tutorial-blueprint.json"
Copy link

Copilot AI Nov 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This script still references the old wp-now setup that was replaced by wp-env. The script should be updated to wp-env start or removed if it's no longer used, as the new workflow uses tutorial:start and other commands defined in the README.

Suggested change
"lint": "next lint",
"wp-dev": "npx @wp-now/wp-now start --blueprint faust-tutorial-blueprint.json"
"lint": "next lint"

Copilot uses AI. Check for mistakes.
console.log('✅ .env.local already exists\n');
}

// Step 2: Check if wp-env is running
Copy link

Copilot AI Nov 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When the wp-env check fails, the error is caught but no meaningful message is shown to help users understand what went wrong. Consider adding error context before starting wp-env, such as checking if Docker is running.

Suggested change
// Step 2: Check if wp-env is running
// Step 2: Check if Docker is running
try {
execSync('docker info', { stdio: 'ignore' });
} catch (error) {
console.error('❌ Docker does not appear to be running. Please start Docker Desktop or your Docker daemon and try again.');
process.exit(1);
}
// Step 3: Check if wp-env is running

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Faust Tutorial

2 participants