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

Flutter Web support #5332

Merged
merged 21 commits into from
May 1, 2023
Merged

Flutter Web support #5332

merged 21 commits into from
May 1, 2023

Conversation

jamesdaniels
Copy link
Member

Description

Scenarios Tested

Sample Commands

Verified

This commit was signed with the committer’s verified signature.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@codecov-commenter
Copy link

codecov-commenter commented Dec 14, 2022

Codecov Report

Patch coverage: 86.66% and project coverage change: +0.04 🎉

Comparison is base (8fab832) 55.21% compared to head (c15f8ad) 55.25%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5332      +/-   ##
==========================================
+ Coverage   55.21%   55.25%   +0.04%     
==========================================
  Files         325      327       +2     
  Lines       22261    22291      +30     
  Branches     4538     4544       +6     
==========================================
+ Hits        12291    12317      +26     
- Misses       8879     8880       +1     
- Partials     1091     1094       +3     
Impacted Files Coverage Δ
src/frameworks/flutter/utils.ts 80.00% <80.00%> (ø)
src/frameworks/flutter/index.ts 88.00% <88.00%> (ø)

... and 1 file with indirect coverage changes

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

@jamesdaniels jamesdaniels changed the title Flutter Web frameworks Flutter Web support Dec 15, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

Partially verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
@jamesdaniels jamesdaniels marked this pull request as ready for review April 12, 2023 04:48

Partially verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.

export function build(cwd: string): Promise<BuildResult> {
checkForFlutterCLI();
const build = execSync(`flutter build web --release`, {
Copy link

Choose a reason for hiding this comment

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

Suggested change
const build = execSync(`flutter build web --release`, {
const build = execSync(`flutter build web`, {

--release is the default

Copy link

Choose a reason for hiding this comment

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

How is customization handled here? Folks might want to pass a number of things to the CLI...

Copy link
Member Author

Choose a reason for hiding this comment

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

Fair q.

Short term, we have a target environment variable landing soon e.g, FIREBASE_HOSTING_BUILD_TARGET=profile
Long term, one will be able to override the build command.

Mid term... what are the most common?

I could see respecting a FIREBASE_HOSTING_BUILD_ARGS="..." env variable

@jamesdaniels
Copy link
Member Author

Test coverage and changelog coming right up

Copy link
Member

@leoortizz leoortizz left a comment

Choose a reason for hiding this comment

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

LGTM! I was able to deploy and develop locally with this PR.

Just left a few nits for small improvements.

@jamesdaniels jamesdaniels enabled auto-merge (squash) May 1, 2023 18:24
@jamesdaniels jamesdaniels disabled auto-merge May 1, 2023 18:27
@jamesdaniels jamesdaniels enabled auto-merge (squash) May 1, 2023 18:28
@jamesdaniels jamesdaniels merged commit 9f10a2e into master May 1, 2023
@jamesdaniels jamesdaniels deleted the jamesdaniels_flutter-web branch May 1, 2023 19:06
ProfHercules pushed a commit to ProfHercules/firebase-tools that referenced this pull request May 5, 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.

None yet

4 participants