Skip to content

chore: angular upgrade from 11 to 12 #297

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

Closed
wants to merge 1 commit into from
Closed

Conversation

itssharmasandeep
Copy link
Contributor

Description

Angular upgrade from 11 to 12

@itssharmasandeep itssharmasandeep requested a review from a team as a code owner August 12, 2021 17:33
@github-actions
Copy link

Unit Test Results

  2 files  15 suites   19s ⏱️
53 tests 53 ✔️ 0 💤 0 ❌

Results for commit 2c98012.

@codecov
Copy link

codecov bot commented Aug 12, 2021

Codecov Report

Merging #297 (2c98012) into main (7caa7cc) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##              main      #297   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           49        49           
  Lines          655       655           
  Branches        62        62           
=========================================
  Hits           655       655           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7caa7cc...2c98012. Read the comment docs.

@anandtiwary
Copy link
Contributor

Don't forget to update peer dependencies in hyperdash angular lib.

@@ -8,7 +8,7 @@
"test": "ng test",
"lint": "ng lint",
"commit": "git-cz",
"build:ci": "ng build --prod hyperdash-angular && ng build --prod hyperdash-angular-app",
"build:ci": "ng build --configuration production hyperdash-angular && ng build --configuration production hyperdash-angular-app",
Copy link
Contributor

@anandtiwary anandtiwary Aug 12, 2021

Choose a reason for hiding this comment

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

do we need to add a configuration flag here? I think Angular is moving towards prod build by default anyway. I would say let's opt in for this feature.

@aaron-steinfeld thoughts?

You can run the optional migration for enabling production builds by default ng update @angular/cli@12 --migrate-only production-by-default.

Copy link
Contributor

Choose a reason for hiding this comment

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

We should also enable NG_PERSISTENT_BUILD_CACHE for faster build.

angular/angular-cli#20756

  "start": "NG_PERSISTENT_BUILD_CACHE=1 ng serve",
  "build": "NG_PERSISTENT_BUILD_CACHE=1 ng build",

Copy link
Contributor

Choose a reason for hiding this comment

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

I would say let's opt in for this feature.

So we can certainly compare build times, but does this mean our local builds would be minified, not source mapped etc? If so, I'd be against it. In other words, what is the advantage of doing a prod build locally other than a greater fidelity to the final state?

Copy link
Contributor

Choose a reason for hiding this comment

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

They have better template checking. I would also not want to miss out on source map.

"@angular/forms": "^12.2.1",
"@angular/platform-browser": "^12.2.1",
"@angular/platform-browser-dynamic": "^12.2.1",
"@angular/router": "^12.2.1",
Copy link
Contributor

Choose a reason for hiding this comment

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

This should bump zone.js too right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@anandtiwary
Copy link
Contributor

@aaron-steinfeld Please take a look

@anandtiwary anandtiwary requested a review from a team August 12, 2021 18:00
@itssharmasandeep
Copy link
Contributor Author

Some issue

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.

3 participants