Skip to content

feat: Add @wxt-dev/module-vue package - #716

Merged
aklinker1 merged 7 commits into
mainfrom
vue-module
Jun 13, 2024
Merged

aklinker1 merged 7 commits into
mainfrom
vue-module

Conversation

@aklinker1

@aklinker1 aklinker1 commented Jun 13, 2024 •

Copy link
Copy Markdown
Member

This is my first PR extracting a frontend framework's logic from wxt into a module.

Will update the vue template after this PR once the module is released to NPM

@netlify

netlify Bot commented Jun 13, 2024 •

Copy link
Copy Markdown

✅ Deploy Preview for creative-fairy-df92c4 ready!

Name Link
🔨 Latest commit ada0229
🔍 Latest deploy log https://app.netlify.com/sites/creative-fairy-df92c4/deploys/666b32274bcd9d00089e0148
😎 Deploy Preview https://deploy-preview-716--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.

@aklinker1 aklinker1 changed the title update template feat: Add @wxt-dev/module-vue package Jun 13, 2024
@aklinker1

aklinker1 commented Jun 13, 2024 •

Copy link
Copy Markdown
Member Author

After writing the first moudle, a couple of take-aways:

  • second arg options should be optional
  • new helper: addImportPreset
  • new helper: isPackageInstalled
  • export WxtModule type from 'wxt/modules' to avoid "TS2742: The inferred type of 'default' cannot be named without a reference to '../node_modules/wxt/dist/index-q2ZwJBs6'. This is likely not portable. A type annotation is necessary."
  • Double check that types augmentation works for module options without adding an import to the type

@aklinker1 aklinker1 mentioned this pull request Jun 13, 2024
4 of 5 tasks
@codecov

codecov Bot commented Jun 13, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.32%. Comparing base (fa67910) to head (ada0229).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #716      +/-   ##
==========================================
- Coverage   87.52%   87.32%   -0.20%     
==========================================
  Files         117      117              
  Lines        9692     9692              
  Branches      970      969       -1     
==========================================
- Hits         8483     8464      -19     
- Misses       1194     1213      +19     
  Partials       15       15              

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

@aklinker1
aklinker1 marked this pull request as ready for review June 13, 2024 18:00
@aklinker1
aklinker1 merged commit e6e0c71 into main Jun 13, 2024
@aklinker1
aklinker1 deleted the vue-module branch June 13, 2024 20:16
@aklinker1 aklinker1 mentioned this pull request Aug 16, 2024
29 of 33 tasks
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