From 5b34177835491794efcbf3c3fd53c3564e6e0787 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Thu, 24 Aug 2023 17:23:20 +0300 Subject: [PATCH] Update angular to version 13 --- .gitignore | 1 + angular.json | 21 --------------------- package.json | 32 ++++++++++++++++---------------- src/polyfills.ts | 10 ---------- src/test.ts | 4 +++- 5 files changed, 20 insertions(+), 48 deletions(-) diff --git a/.gitignore b/.gitignore index 164614e..86fae35 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +/.angular/cache node_modules/ dist/ .idea/ diff --git a/angular.json b/angular.json index d24e3c4..e9db40e 100644 --- a/angular.json +++ b/angular.json @@ -183,18 +183,6 @@ "src/assets" ] } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/tsconfig.app.json", - "src/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] - } } } }, @@ -214,15 +202,6 @@ "devServerTarget": "usage-counts:serve:production" } } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": "e2e/tsconfig.e2e.json", - "exclude": [ - "**/node_modules/**" - ] - } } } } diff --git a/package.json b/package.json index 16254c3..5973d64 100644 --- a/package.json +++ b/package.json @@ -16,32 +16,32 @@ }, "private": true, "dependencies": { - "@angular/animations": "~12.2.17", + "@angular/animations": "~13.4.0", "@angular/cdk": "^12.2.13", - "@angular/common": "~12.2.17", - "@angular/compiler": "~12.2.17", - "@angular/core": "~12.2.17", - "@angular/forms": "~12.2.17", - "@angular/localize": "^12.2.17", + "@angular/common": "~13.4.0", + "@angular/compiler": "~13.4.0", + "@angular/core": "~13.4.0", + "@angular/forms": "~13.4.0", + "@angular/localize": "^13.4.0", "@angular/material": "^12.2.13", - "@angular/platform-browser": "~12.2.17", - "@angular/platform-browser-dynamic": "~12.2.17", - "@angular/router": "~12.2.17", + "@angular/platform-browser": "~13.4.0", + "@angular/platform-browser-dynamic": "~13.4.0", + "@angular/router": "~13.4.0", "clipboard": "^1.5.16", "core-js": "^2.5.4", "express": "^4.15.2", "jquery": "^3.4.1", - "ng-recaptcha": "^8.0.1", + "ng-recaptcha": "^9.0.0", "rxjs": "^6.5.1", "ts-md5": "^1.2.0", "tslib": "^2.0.0", "zone.js": "~0.11.4" }, "devDependencies": { - "@angular-devkit/build-angular": "~12.2.18", - "@angular/cli": "~12.2.18", - "@angular/compiler-cli": "~12.2.17", - "@angular/language-service": "~12.2.17", + "@angular-devkit/build-angular": "~13.3.11", + "@angular/cli": "~13.3.11", + "@angular/compiler-cli": "~13.4.0", + "@angular/language-service": "~13.4.0", "@types/express": "^4.17.0", "@types/express-serve-static-core": "4.17.28", "@types/node": "^12.11.1", @@ -57,6 +57,6 @@ "karma-jasmine-html-reporter": "^1.6.0", "protractor": "~7.0.0", "ts-node": "~7.0.0", - "typescript": "~4.3.5" + "typescript": "~4.6.4" } -} \ No newline at end of file +} diff --git a/src/polyfills.ts b/src/polyfills.ts index f1aacd9..7e1f7ff 100644 --- a/src/polyfills.ts +++ b/src/polyfills.ts @@ -22,16 +22,6 @@ import '@angular/localize/init'; * BROWSER POLYFILLS */ -/** IE10 and IE11 requires the following for NgClass support on SVG elements */ -// import 'classlist.js'; // Run `npm install --save classlist.js`. - -/** - * Web Animations `@angular/platform-browser/animations` - * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari. - * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0). - */ -// import 'web-animations-js'; // Run `npm install --save web-animations-js`. - /** * By default, zone.js will patch all possible macroTask and DomEvents * user can disable parts of macroTask/DomEvents patch by setting following flags diff --git a/src/test.ts b/src/test.ts index a6f15af..6b03dbe 100644 --- a/src/test.ts +++ b/src/test.ts @@ -12,7 +12,9 @@ declare const require: any; // First, initialize the Angular testing environment. getTestBed().initTestEnvironment( BrowserDynamicTestingModule, - platformBrowserDynamicTesting() + platformBrowserDynamicTesting(), { + teardown: { destroyAfterEach: false } +} ); // Then we find all the tests. const context = require.context('./', true, /\.spec\.ts$/);