Should the WordPress/create-block package be renamed? #70851
Replies: 5 comments 7 replies
-
|
I don't have strong opinions, but did also consider that thought should be given for how Create Block Theme is also in use. Naming things is hard. |
Beta Was this translation helpful? Give feedback.
-
|
I really like the direction you're thinking in, especially around broadening the scope of the tool beyond just block scaffolding. That said, I’m not sure about making Playground the default. I haven’t really dove into it yet, so that might just be due to my lack of experience with the tool speaking. Still, I love the idea of using flags or templates to define what you want to scaffold, whether that’s a block, a plugin, a theme, or even a Playground-based project. My primary use case has been using One thing I find limiting is that there’s no option to scaffold just a plugin, something that sets up the modern build tools like All that to say, I love the script and use it constantly, but I’d be really excited to see it evolve into something even more flexible. Glad you’re kicking off this conversation! |
Beta Was this translation helpful? Give feedback.
-
|
From a philosophical point of view, the idea of having this package create anything that is needed by a developer is 🔥. I think that leveraging the templating system is how this can be achieved. What if we didn't need pass flags to the tool that defined what parts of the template were output but rather From a technical point of view, there will need to be some work done to decouple some of the steps that are run that are directly related to creating blocks (i.e automatic generation of a block.json file). We'd also need to define what the baseline would be from a files/setup point of view. Maybe is just keeps doing what it does now and creates a static block? If we make this tool implementation agnostic and allow the template to define what is being created (with backwards compatibility in mind) I think it becomes the tool that can do anything that is needed. |
Beta Was this translation helpful? Give feedback.
-
|
It’s something that was discussed previously in other places. It’s definitely worth emphasizing that there has been growing appetite to go beyond scaffolding a single block:
I shared the following before which is still relevant also in this discussion:
I followed up later with:
Then later, I said:
So as you can see, we are in full alignment in the terms of what should be possible. The only slight difference I would suggest is we keep also the existing package focused on creating blocks and make another one that can scaffold everything folks need for WordPress development. I think we would also need to improve |
Beta Was this translation helpful? Give feedback.
-
|
The latest version of Gutenberg has a new build system for WordPress plugins called https://github.com/WordPress/gutenberg/blob/trunk/packages/wp-build/README.md It has been proposed that this build tool should be able to auto-detect and auto-register blocks. Please let us know your thoughts. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm a huge fan of the
wordpress/create-blockpackage and all that it's enabled, but I think we need to address the fact that these days, it only sometimes is used to create blocks.Often it's just the fastest way to scaffold a new WordPress plugin that leverages the
wp-scriptsbuild process, dependency extraction, etc. It's sort of a more modern take on thewp scaffoldwith the extra power of not needing any previous software installed to run (other than node).So I think we should have a discussion around renaming it. Something like
@wordpress/create? ("Drop the block. It's cleaner") The default can still be creating a block plugin, or maybe the default could be a new site using something like playground cli or wpnow.Overall, the idea is having one command for spinning up any new WordPress code you might need:
Disclaimer: I don't actually know what is involved in changing a package name. I'm sure there'd need to be some way for the old
npxcommands to still work without failing, maybe just passing the parameters on properly to the new package, but hopefully someone smarter than me can chime in.Beta Was this translation helpful? Give feedback.
All reactions