Skip to content

Conversation

@fofiu
Copy link
Contributor

@fofiu fofiu commented Dec 10, 2022

Description

This PR handles basic Nuxt 2 and Next 3 support.

Scenarios Tested

Covers basic Nuxt 3 with limited configuration.
Nuxt 2 has a couple more use cases, but the following should be handled:

  • ssr: false
  • ssr: true
  • target: 'server'
  • target: 'static'
  • custom generate directory

Sample Commands

Deploying Nuxt 2 and 3 codebase via firebase emulators:start.

@codecov-commenter
Copy link

codecov-commenter commented Dec 14, 2022

Codecov Report

Base: 56.30% // Head: 56.26% // Decreases project coverage by -0.05% ⚠️

Coverage data is based on head (44db98c) compared to base (06b8bad).
Patch coverage: 36.00% of modified lines in pull request are covered.

❗ Current head 44db98c differs from pull request most recent head bde7d00. Consider uploading reports for the commit bde7d00 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5321      +/-   ##
==========================================
- Coverage   56.30%   56.26%   -0.05%     
==========================================
  Files         315      317       +2     
  Lines       21348    21402      +54     
  Branches     4353     4365      +12     
==========================================
+ Hits        12020    12041      +21     
- Misses       8287     8312      +25     
- Partials     1041     1049       +8     
Impacted Files Coverage Δ
src/frameworks/index.ts 15.95% <ø> (-0.07%) ⬇️
src/frameworks/nuxt2/index.ts 27.77% <27.77%> (ø)
src/frameworks/nuxt/index.ts 45.94% <43.75%> (+12.61%) ⬆️
src/frameworks/nuxt/utils.ts 100.00% <100.00%> (ø)
src/init/features/firestore/index.ts 88.00% <0.00%> (-0.89%) ⬇️
src/frameworks/next/index.ts 14.21% <0.00%> (-0.08%) ⬇️
src/firestore/checkDatabaseType.ts 40.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

fofiu added 3 commits January 3, 2023 10:41
* refactor the Nuxt 2 build workflow to accommodate all the ssr/target combinations
* eliminated some eslint warnings
* abstracted some common methods outside the main nuxt file
* started using some interfaces
* started testing scripts
@fofiu fofiu marked this pull request as ready for review January 14, 2023 15:30
Copy link
Member

@jamesdaniels jamesdaniels left a comment

Choose a reason for hiding this comment

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

LGTM better than what we have. Add changelog and can you fix Austin's email in a force-push?

@jamesdaniels jamesdaniels enabled auto-merge (squash) January 31, 2023 15:16
@jamesdaniels jamesdaniels merged commit 978a10f into firebase:master Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants