8000 Add exclusion for `/vendor` directory in zip build by danielwrobert · Pull Request #2106 · woocommerce/storefront · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add exclusion for /vendor directory in zip build #2106

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

Merged
merged 1 commit into from
Jul 13, 2023

Conversation

danielwrobert
Copy link
Contributor
@danielwrobert danielwrobert commented Jul 12, 2023

The composer archive command previously included the /vendor directory where the .gitignore file excludes it.

This adjusts the exclude array in the composer.json file to omit the /vendor directory from the zip generation.

See this internal conversation for additional context: p1689174493505199-slack-C7U3Y3VMY.

Props to @danieldudzic for discovering the discrepancy!

Screenshots

How to test the changes in this Pull Request:

  1. Run the composer install command which will generate a /vendor folder in the root directory.
  2. Run npm run build and confirm the storefront.zip file is generated.
  3. Confirm that the zip file is ~2.9 mb in size.
  4. Open the generated zip file and confirm that there is no /vendor folder present in the root directory of the theme.

Changelog

Fix – add exclusion for /vendor directory in release zip build.

@danielwrobert danielwrobert self-assigned this Jul 12, 2023
@danielwrobert danielwrobert added the status: needs review PR that needs review label Jul 12, 2023
@danielwrobert danielwrobert marked this pull request as ready for review July 12, 2023 17:58
The composer archive previously included the /vendor directory where the
.gitignore excluded it. This adjusts the composer archive exclude array
to omit the /vendor directory from the zip generation.
@danielwrobert danielwrobert force-pushed the fix/vendor-include-on-zip-build branch from 5076ee6 to 2e20f47 Compare July 12, 2023 17:58
Copy link
Contributor
@Aljullu Aljullu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for creating the PR, @danielwrobert!

I followed the testing steps and did some smoke testing with the generated ZIP and everything seems to be working well.

@github-actions github-actions bot added status: ready to merge Automatically applied to a pull when a pull is approved. Indicates ready for merging. and removed status: needs review PR that needs review labels Jul 13, 2023
Copy link
Contributor
@nefeline nefeline left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 All good! Confirmed the vendor directory is not part of the generated zip file anymore.

@danielwrobert danielwrobert merged commit bda638f into trunk Jul 13, 2023
@danielwrobert danielwrobert deleted the fix/vendor-include-on-zip-build branch July 13, 2023 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: ready to merge Automatically applied to a pull when a pull is approved. Indicates ready for merging.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0