Skip to content

chore: Use JSZip for wxt zip, enabling future features - #501

Merged
aklinker1 merged 3 commits into
mainfrom
jszip
Feb 28, 2024
Merged

aklinker1 merged 3 commits into
mainfrom
jszip

Conversation

@aklinker1

Copy link
Copy Markdown
Member

Pulling out of #223.

@aklinker1 aklinker1 self-assigned this Feb 28, 2024
@netlify

netlify Bot commented Feb 28, 2024 •

Copy link
Copy Markdown

✅ Deploy Preview for creative-fairy-df92c4 ready!

Name Link
🔨 Latest commit 0310f67
🔍 Latest deploy log https://app.netlify.com/sites/creative-fairy-df92c4/deploys/65df9d7c3f0d1c000853fc69
😎 Deploy Preview https://deploy-preview-501--creative-fairy-df92c4.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Comment thread src/core/zip.ts
Comment on lines +81 to +85
transform?: (
file: string,
content: string,
) => Promise<string | undefined | void> | string | undefined | void;
additionalWork?: (archive: JSZip) => Promise<void> | void;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Specifically I've added the transform option to transform the file before zipping, and the additionalWork option to add generated files to the zip.

@codecov

codecov Bot commented Feb 28, 2024 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 87.09677% with 8 lines in your changes are missing coverage. Please review.

Project coverage is 85.89%. Comparing base (45b7d7c) to head (0310f67).
Report is 1 commits behind head on main.

Files Patch % Lines
src/core/zip.ts 87.09% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #501      +/-   ##
==========================================
- Coverage   86.18%   85.89%   -0.30%     
==========================================
  Files         105      105              
  Lines        8312     8351      +39     
  Branches      814      817       +3     
==========================================
+ Hits         7164     7173       +9     
- Misses       1135     1165      +30     
  Partials       13       13              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

1 participant