-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Scripts: Add new command which generates zip
file for the plugin
#19237
Comments
For completeness sake: The quoted workaround above 'omits' the step to add the node-module directory to the .gitignore file. |
There is also this article from @mkaz explaining how to automate plugin publishing with GitHub action created by @helen and @10up: https://mkaz.blog/wordpress/deploy-wordpress-plugin-using-github-actions/ It's something that could be integrated with |
Is it something which Gutenberg could use for its own plugin distribution? It would be nice to "dog-food" this solution. On the point about |
It made me think about using Update: there is also |
Is this requesting something different than I ask because I'm looking for a command that would build a 'lean' zip of Gutenberg (like that command does) but that commands deletes node_modules, etc locally on my computer; and I found this issue. (For use cases, I then use that zip on another testing wordpress site on a remote server, without having to install node, etc on said server) |
Yes, it's different. The one you shared is unique to Gutenberg plugin. |
@skorasaurus I am not sure if I understood what you are looking for. Maybe you could benefit from the 'Gutenberg Nightly' version |
@bph Thanks for the mention and your work on this! I wasn't aware of it and that solves most of my use cases. |
You are welcome! Glad to read, most use cases are solved with the 'Nightly' 👍 |
I finally found some time to implement the new |
Plugin developers could benefit from having one command to run to output the zip file with all assets that should be included for the plugin to work in WordPress.
I discussed it with @bph and she raised the concern that having big folders like the
node_modules
one included might be not the best experience. She shared her workaround:The text was updated successfully, but these errors were encountered: