Skip to content
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

fix: ACNA-2562 - artifacts and zip output should be in a .gitignored dist folder #736

Merged
merged 2 commits into from
Oct 12, 2023

Conversation

shazron
Copy link
Member

@shazron shazron commented Oct 11, 2023

These files have been moved:

  1. app-package artifacts folder has been moved to dist/app-package
  2. the default output app.zip has been moved to dist/app.zip.

This has been added:

  1. all extension dist folders are excluded from the pack
  2. the dist folder itself is excluded from the pack (just in case the .gitignore value is not there)
  3. the dist/app-package folder will be deleted after the pack

How Has This Been Tested?

  1. npm test
  2. aio app pack on an App Builder project

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@codecov
Copy link

codecov bot commented Oct 11, 2023

Codecov Report

Merging #736 (1a0f0cd) into master (bc39f62) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master      #736   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           57        57           
  Lines         3223      3229    +6     
  Branches       607       607           
=========================================
+ Hits          3223      3229    +6     
Files Coverage Δ
src/commands/app/pack.js 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@shazron
Copy link
Member Author

shazron commented Oct 11, 2023

FYI @sangeetha5491 - slight change to the artifacts folder being passed in to the hook.

Copy link
Contributor

@MichaelGoberling MichaelGoberling left a comment

Choose a reason for hiding this comment

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

Changes LGTM!

Follow up Q: Is there a known use case for being able to configure the output of the app zip? It seems useful, but I was wondering if we could maybe reduce the chance a dev accidentally packages foo/app.zip if the app zip always goes in dist/app.zip

@shazron
Copy link
Member Author

shazron commented Oct 12, 2023

Changes LGTM!

Follow up Q: Is there a known use case for being able to configure the output of the app zip? It seems useful, but I was wondering if we could maybe reduce the chance a dev accidentally packages foo/app.zip if the app zip always goes in dist/app.zip

The use case is if an ISV wants to automate and put all packages into a known folder, and they can name it immediately to what they want, say for archiving. Say --output ~/Desktop/my-app-packages/my-project-abc-2023-10-12.zip

@shazron shazron merged commit 814908d into master Oct 12, 2023
7 checks passed
@shazron shazron deleted the story/ACNA-2562 branch October 12, 2023 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants