You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 19, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Jun 19, 2025. It is now read-only.
README is not clear how to use the examples to build and deploy a esnext plugin #180
I'm new to Gutenberg Block creation, and found this example repo through the official documentation.
The README mentions npm run build to compile the blocks for build deployment, but not what should be extracted into a zip file to upload as a plugin.
I've tried searching online, but there's no clarity. Is it possible to provide clearer steps?
I can use this example repo to get a local instance running, and see my changes to the edit & saved version of the plugin.
What I would love is to know how to take the minimal build files, separate it from the node modules etc and upload it to another site.
I can't see what is happening right now on the local site behind the scenes as it's running using Docker.
With the current structure of the plugin, you would need to remove all of the src folders in each example along with the vendor and node_modules directory. There are also a number of files at the root of the project that could be removed as well:
.gitignore
.editorConfig
.nvmrc
composer.json
composer.lock
lerna.json
package.json
package-lock.json
phpcs.xml
We are working towards restructuring the project to make this process much easier ( see #195 ) and would allow us to leverage the package-zip command from the @wordpress/scripts package
Activity
ryanwelcher commentedon Mar 30, 2022
With the current structure of the plugin, you would need to remove all of the
srcfolders in each example along with thevendorandnode_modulesdirectory. There are also a number of files at the root of the project that could be removed as well:We are working towards restructuring the project to make this process much easier ( see #195 ) and would allow us to leverage the
package-zipcommand from the@wordpress/scriptspackageT-Gwynbleidd commentedon Apr 3, 2022
Thanks for getting back to me on this.