-
Notifications
You must be signed in to change notification settings - Fork 12
Wave 1: Upgrade core framework + build config from Angular 9 to Angular 21 #421
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,13 +15,12 @@ | |
| "prefix": "app", | ||
| "architect": { | ||
| "build": { | ||
| "builder": "@angular-devkit/build-angular:browser", | ||
| "builder": "@angular-devkit/build-angular:application", | ||
| "options": { | ||
| "aot": true, | ||
| "outputPath": "dist/angular-hnpwa", | ||
|
devin-ai-integration[bot] marked this conversation as resolved.
|
||
| "index": "src/index.html", | ||
| "main": "src/main.ts", | ||
| "polyfills": "src/polyfills.ts", | ||
| "browser": "src/main.ts", | ||
| "polyfills": ["src/polyfills.ts"], | ||
| "tsConfig": "tsconfig.app.json", | ||
| "assets": [ | ||
| "src/favicon.ico", | ||
|
|
@@ -45,12 +44,8 @@ | |
| "optimization": true, | ||
| "outputHashing": "all", | ||
| "sourceMap": true, | ||
| "extractCss": true, | ||
| "namedChunks": true, | ||
| "aot": true, | ||
| "extractLicenses": true, | ||
| "vendorChunk": false, | ||
| "buildOptimizer": true, | ||
| "budgets": [ | ||
| { | ||
| "type": "initial", | ||
|
|
@@ -62,33 +57,38 @@ | |
| "maximumWarning": "6kb" | ||
| } | ||
| ], | ||
| "serviceWorker": true, | ||
| "ngswConfigPath": "ngsw-config.json" | ||
| "serviceWorker": "ngsw-config.json" | ||
|
tobydrinkall marked this conversation as resolved.
|
||
| }, | ||
| "development": { | ||
| "optimization": false, | ||
| "extractLicenses": false, | ||
| "sourceMap": true | ||
| } | ||
| } | ||
| }, | ||
| "defaultConfiguration": "production" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📝 Info: Build default changed from development to production The Was this helpful? React with 👍 or 👎 to provide feedback. |
||
| }, | ||
| "serve": { | ||
| "builder": "@angular-devkit/build-angular:dev-server", | ||
| "options": { | ||
| "browserTarget": "angular-hnpwa:build" | ||
| }, | ||
| "configurations": { | ||
| "production": { | ||
| "browserTarget": "angular-hnpwa:build:production" | ||
| "buildTarget": "angular-hnpwa:build:production" | ||
| }, | ||
| "development": { | ||
| "buildTarget": "angular-hnpwa:build:development" | ||
| } | ||
| } | ||
| }, | ||
| "defaultConfiguration": "development" | ||
| }, | ||
| "extract-i18n": { | ||
| "builder": "@angular-devkit/build-angular:extract-i18n", | ||
| "options": { | ||
| "browserTarget": "angular-hnpwa:build" | ||
| "buildTarget": "angular-hnpwa:build" | ||
| } | ||
| }, | ||
| "test": { | ||
| "builder": "@angular-devkit/build-angular:karma", | ||
| "options": { | ||
| "main": "src/test.ts", | ||
| "polyfills": "src/polyfills.ts", | ||
| "polyfills": ["zone.js", "zone.js/testing"], | ||
| "tsConfig": "tsconfig.spec.json", | ||
| "karmaConfig": "karma.conf.js", | ||
| "assets": [ | ||
|
|
@@ -130,5 +130,7 @@ | |
| } | ||
| } | ||
| }, | ||
| "defaultProject": "angular-hnpwa" | ||
| "cli": { | ||
| "analytics": false | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,7 +3,7 @@ | |
| "rules": "database.rules.json" | ||
| }, | ||
| "hosting": { | ||
| "public": "dist", | ||
| "public": "dist/angular-hnpwa/browser", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📝 Info: Application builder output path structure change affects deployment The Was this helpful? React with 👍 or 👎 to provide feedback. |
||
| "rewrites": [ | ||
| { | ||
| "source": "**", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚩 Deprecated tooling configs retained (tslint, protractor)
The
angular.jsonstill references@angular-devkit/build-angular:tslint(angular.json:106) and@angular-devkit/build-angular:protractor(angular.json:119). Both tslint and protractor have been deprecated for years — tslint was superseded by eslint, and protractor was removed from Angular CLI in v15. Thepackage.jsonstill liststslint(package.json:47) andprotractor(package.json:45) as devDependencies. While these won't break the build,ng lintandng e2ewill likely fail at runtime since the builders may not exist in@angular-devkit/build-angularv21. Consider migrating to@angular-eslintand a modern e2e framework like Cypress or Playwright.(Refers to lines 105-129)
Was this helpful? React with 👍 or 👎 to provide feedback.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Intentional: the TSLint → ESLint migration and removal of the protractor e2e setup are Wave 4 of this migration and are being handled in a follow-up PR based on this branch. This foundational PR only targets a green
npm run build.