-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Add @wordpress/create-project to scaffold themes/plugins. #71352
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
base: trunk
Are you sure you want to change the base?
Add @wordpress/create-project to scaffold themes/plugins. #71352
Conversation
- extracted and refactored create-block into create-project - generalized cli and code to support theme and standalone blocks - added plugin template from create-block
- refactor the code cause I was not able to fix property override issue at all when doing theme - blocks for theme will be added in `assets/src/blocks` cause that seemed liked a good place - proper blueprint support - theme now supports classic and fse variant
|
Warning: Type of PR label mismatch To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.
Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task. |
|
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 If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
What?
Closes #23514
Introduces the new
@wordpress/create-projectpackage - a comprehensive scaffolding tool that creates WordPress plugins, themes, blocks, and blueprints with modern build tooling, addressing the need for scaffolding non-block scripts and UI components.Why?
Currently,
@wordpress/create-blockonly scaffolds single-block plugins, but WordPress development often requires creating scripts for components like sidebar panels, or other non-block functionality. Developers were forced to:@wordpress/create-blockThe new
@wordpress/create-projecttool solves this by providing a unified scaffolding solution for all WordPress development needs, not just blocks.How?
This PR introduces a complete scaffolding system that expands beyond blocks to support the full WordPress development ecosystem:
Core Features:
Multi-Project Type Support:
Interactive CLI Experience:
Flexible Architecture:
Testing Instructions
wp-create-projectTesting Instructions for Keyboard
The CLI tool is fully keyboard accessible:
Screenshots or screencast
Blueprint
Screen.Recording.2025-09-05.at.7.54.34.PM.mov
Theme
Screen.Recording.2025-09-05.at.7.56.18.PM.mov