From c7e1d8bad5a8cf1e84f0526f6be385bdc10d6271 Mon Sep 17 00:00:00 2001 From: Alex Martzios Date: Fri, 23 Sep 2022 15:42:09 +0300 Subject: [PATCH] update angular core and cli to v13 --- explore/angular.json | 21 --------------------- explore/package.json | 30 +++++++++++++++--------------- explore/src/polyfills.ts | 10 ---------- explore/src/test.ts | 4 +++- 4 files changed, 18 insertions(+), 47 deletions(-) diff --git a/explore/angular.json b/explore/angular.json index e18ac869..2672864c 100644 --- a/explore/angular.json +++ b/explore/angular.json @@ -239,18 +239,6 @@ ] } }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/tsconfig.app.json", - "src/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] - } - }, "server": { "builder": "@angular-devkit/build-angular:server", "options": { @@ -346,15 +334,6 @@ "devServerTarget": "explore:serve:production" } } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": "e2e/tsconfig.e2e.json", - "exclude": [ - "**/node_modules/**" - ] - } } } } diff --git a/explore/package.json b/explore/package.json index 06edb24b..bac67a5f 100644 --- a/explore/package.json +++ b/explore/package.json @@ -23,18 +23,18 @@ }, "private": true, "dependencies": { - "@angular/animations": "~12.2.16", + "@angular/animations": "~13.3.11", "@angular/cdk": "^12.2.13", - "@angular/common": "~12.2.16", - "@angular/compiler": "~12.2.16", - "@angular/core": "~12.2.16", - "@angular/forms": "~12.2.16", - "@angular/localize": "^12.2.16", + "@angular/common": "~13.3.11", + "@angular/compiler": "~13.3.11", + "@angular/core": "~13.3.11", + "@angular/forms": "~13.3.11", + "@angular/localize": "^13.3.11", "@angular/material": "^12.2.13", - "@angular/platform-browser": "~12.2.16", - "@angular/platform-browser-dynamic": "~12.2.16", - "@angular/platform-server": "~12.2.16", - "@angular/router": "~12.2.16", + "@angular/platform-browser": "~13.3.11", + "@angular/platform-browser-dynamic": "~13.3.11", + "@angular/platform-server": "~13.3.11", + "@angular/router": "~13.3.11", "@nguniversal/express-engine": "^12.1.3", "clipboard": "^1.5.16", "core-js": "^2.5.4", @@ -49,10 +49,10 @@ "zone.js": "~0.11.4" }, "devDependencies": { - "@angular-devkit/build-angular": "~12.2.18", - "@angular/cli": "~12.2.18", - "@angular/compiler-cli": "~12.2.16", - "@angular/language-service": "~12.2.16", + "@angular-devkit/build-angular": "~13.3.9", + "@angular/cli": "~13.3.9", + "@angular/compiler-cli": "~13.3.11", + "@angular/language-service": "~13.3.11", "@nguniversal/builders": "^12.1.3", "@types/compression": "^1.7.0", "@types/express": "^4.17.0", @@ -69,6 +69,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/explore/src/polyfills.ts b/explore/src/polyfills.ts index f1aacd9f..7e1f7ffe 100644 --- a/explore/src/polyfills.ts +++ b/explore/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/explore/src/test.ts b/explore/src/test.ts index a6f15af3..6b03dbe8 100644 --- a/explore/src/test.ts +++ b/explore/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$/);