Repository navigation
Add composer build command to package plugin zip - #22
Merged
Merged
Conversation
Add bin/build-zip.sh, wired to 'composer build', which packages the plugin into dist/client-side-media-experiments.zip using the .distignore exclusion list so local builds match the release deploy workflow. Extend .distignore to also exclude .claude, .wordpress-org, bin, dist, and README.md, and document the command in README.md. Fixes #21
|
Caution Review failedAn error occurred during the review process. Please try again later. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #21
What
Adds a single command to build a distributable zip for the WordPress.org plugin repository:
This produces
dist/client-side-media-experiments.zip.How
bin/build-zip.sh: copies runtime files viarsync --exclude-from=.distignoreinto a single top-levelclient-side-media-experiments/directory (as required by WordPress.org) and zips it intodist/.composer.json: adds abuildscript pointing at the shell script..distignore: extended to also exclude.claude,.wordpress-org,bin,dist, andREADME.md(the WordPress.org repo usesreadme.txt). Since the release deploy workflow (10up/action-wordpress-plugin-deploy) uses the same.distignore, local builds and SVN deploys now share one exclusion list..gitignore: ignoresdist/.README.md: documents the command under a new Development section.Verification
Ran
composer buildtwice (idempotent). Zip contents:No development files included; single top-level plugin directory.