From 13e19162a08404e66b537b8e8916f71b6b578b1e Mon Sep 17 00:00:00 2001 From: tanshu Date: Wed, 29 Dec 2021 07:50:07 +0530 Subject: [PATCH] Chore: Updated to angular 13 --- bookie/.gitignore | 1 + bookie/package.json | 60 ++++++++++++++++++++--------------------- bookie/src/polyfills.ts | 12 --------- bookie/src/test.ts | 4 ++- 4 files changed, 33 insertions(+), 44 deletions(-) diff --git a/bookie/.gitignore b/bookie/.gitignore index 2cb60d6..9b47455 100644 --- a/bookie/.gitignore +++ b/bookie/.gitignore @@ -33,6 +33,7 @@ speed-measure-plugin*.json .history/* # misc +/.angular/cache /.sass-cache /connect.lock /coverage diff --git a/bookie/package.json b/bookie/package.json index f803c1f..b4eb772 100644 --- a/bookie/package.json +++ b/bookie/package.json @@ -14,42 +14,40 @@ }, "private": true, "dependencies": { - "@angular/animations": "^12.2.11", - "@angular/cdk": "^12.2.11", - "@angular/common": "^12.2.11", - "@angular/compiler": "^12.2.11", - "@angular/core": "^12.2.11", - "@angular/flex-layout": "^12.0.0-beta.35", - "@angular/forms": "^12.2.11", - "@angular/material": "^12.2.11", - "@angular/material-moment-adapter": "^12.2.11", - "@angular/platform-browser": "^12.2.11", - "@angular/platform-browser-dynamic": "^12.2.11", - "@angular/router": "^12.2.11", - "mathjs": "^9.5.1", + "@angular/animations": "^13.1.1", + "@angular/cdk": "^13.1.1", + "@angular/common": "^13.1.1", + "@angular/compiler": "^13.1.1", + "@angular/core": "^13.1.1", + "@angular/flex-layout": "^13.0.0-beta.36", + "@angular/forms": "^13.1.1", + "@angular/material": "^13.1.1", + "@angular/material-moment-adapter": "^13.1.1", + "@angular/platform-browser": "^13.1.1", + "@angular/platform-browser-dynamic": "^13.1.1", + "@angular/router": "^13.1.1", + "mathjs": "^10.0.1", "moment": "^2.29.1", "rxjs": "^6.6.7", "tslib": "^2.2.0", "zone.js": "~0.11.4" }, "devDependencies": { - "@angular-devkit/build-angular": "~12.2.11", - "@angular-eslint/builder": "^12.6.1", - "@angular-eslint/eslint-plugin": "^12.6.1", - "@angular-eslint/eslint-plugin-template": "^12.6.1", - "@angular-eslint/schematics": "^12.6.1", - "@angular-eslint/template-parser": "^12.6.1", - "@angular/cli": "^12.2.11", - "@angular/compiler-cli": "^12.2.11", - "@angular/language-service": "^12.2.11", + "@angular-devkit/build-angular": "~13.1.2", + "@angular-eslint/builder": "^13.0.1", + "@angular-eslint/eslint-plugin": "^13.0.1", + "@angular-eslint/eslint-plugin-template": "^13.0.1", + "@angular-eslint/schematics": "^13.0.1", + "@angular-eslint/template-parser": "^13.0.1", + "@angular/cli": "^13.1.2", + "@angular/compiler-cli": "^13.1.1", + "@angular/language-service": "^13.1.1", "@types/jasmine": "~3.7.4", "@types/node": "^16.11.6", - "@typescript-eslint/eslint-plugin": "5.2.0", - "@typescript-eslint/parser": "5.2.0", - "eslint": "^8.1.0", - "eslint-plugin-import": "^2.25.2", - "eslint-plugin-jsdoc": "^37.0.3", - "eslint-plugin-prefer-arrow": "1.2.3", + "@typescript-eslint/eslint-plugin": "5.8.1", + "@typescript-eslint/parser": "5.8.1", + "eslint": "^8.2.0", + "eslint-plugin-import": "2.25.3", "husky": "^7.0.4", "jasmine-core": "^3.7.1", "jasmine-spec-reporter": "^7.0.0", @@ -58,11 +56,11 @@ "karma-coverage-istanbul-reporter": "~3.0.2", "karma-jasmine": "^4.0.0", "karma-jasmine-html-reporter": "^1.6.0", - "lint-staged": "^11.2.6", - "prettier": "^2.3.1", + "lint-staged": "^12.1.4", + "prettier": "^2.5.1", "standard-version": "^9.3.2", "ts-node": "^9.1.1", - "typescript": "~4.2.4" + "typescript": "~4.5.4" }, "husky": { "hooks": { diff --git a/bookie/src/polyfills.ts b/bookie/src/polyfills.ts index 1f24716..b40974e 100644 --- a/bookie/src/polyfills.ts +++ b/bookie/src/polyfills.ts @@ -18,18 +18,6 @@ * BROWSER POLYFILLS */ -/** - * 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/bookie/src/test.ts b/bookie/src/test.ts index a0e80c3..8e0cae8 100644 --- a/bookie/src/test.ts +++ b/bookie/src/test.ts @@ -19,7 +19,9 @@ declare const require: { }; // First, initialize the Angular testing environment. -getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting()); +getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting(), { + teardown: { destroyAfterEach: false } +}); // Then we find all the tests. const context = require.context('./', true, /\.spec\.ts$/); // And load the modules.