Skip to content
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

Introduce basic wp-env environment #417

Merged
merged 1 commit into from
Jul 14, 2023
Merged

Introduce basic wp-env environment #417

merged 1 commit into from
Jul 14, 2023

Conversation

t-hamano
Copy link
Contributor

Currently, I think either of the following methods is mainly used to develop this project locally.

  • Set up your own local environment and clone this repository in the plugins directory
  • Use the globally installed env package, and define a path relative to this project in the plugins property of .wp-env.json.

I don't think the introduction of wp-env has been discussed in this project yet, but it would be useful to be able to set up a local environment with only the npm packages and commands that this project depends on, without having to prepare a special environment.

This PR introduces a basic wp-env execution environment.

  • run npm ci
  • run npm run wp-env start
  • Access localhost:8888/wp-admin and confirm that the Create Block Theme plugin works.

Copy link
Member

@vcanales vcanales left a comment

Choose a reason for hiding this comment

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

Thanks, I agree that this is missing! This is good to go as is.

@vcanales vcanales merged commit 2b6041c into WordPress:trunk Jul 14, 2023
1 check passed
@t-hamano t-hamano deleted the enhancement/add-env-package branch July 15, 2023 03:30
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.

2 participants