Update to Angular 13

This commit is contained in:
FyloZ 2021-12-01 23:19:35 -05:00
parent f644edae21
commit 3136f2e1d6
Signed by: william
GPG Key ID: 835378AE9AF4AE97
4 changed files with 18 additions and 25 deletions

1
.gitignore vendored
View File

@ -32,6 +32,7 @@ speed-measure-plugin*.json
.history/* .history/*
# misc # misc
/.angular/cache
/.sass-cache /.sass-cache
/connect.lock /connect.lock
/coverage /coverage

View File

@ -11,16 +11,16 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "~12.2.14", "@angular/animations": "~13.0.3",
"@angular/cdk": "^12.2.13", "@angular/cdk": "^12.2.13",
"@angular/common": "~12.2.14", "@angular/common": "~13.0.3",
"@angular/compiler": "~12.2.14", "@angular/compiler": "~13.0.3",
"@angular/core": "~12.2.14", "@angular/core": "~13.0.3",
"@angular/forms": "~12.2.14", "@angular/forms": "~13.0.3",
"@angular/material": "^12.2.13", "@angular/material": "^12.2.13",
"@angular/platform-browser": "~12.2.14", "@angular/platform-browser": "~13.0.3",
"@angular/platform-browser-dynamic": "~12.2.14", "@angular/platform-browser-dynamic": "~13.0.3",
"@angular/router": "~12.2.14", "@angular/router": "~13.0.3",
"@mdi/angular-material": "^5.7.55", "@mdi/angular-material": "^5.7.55",
"bootstrap": "^4.5.2", "bootstrap": "^4.5.2",
"copy-webpack-plugin": "^6.2.1", "copy-webpack-plugin": "^6.2.1",
@ -32,15 +32,15 @@
"zone.js": "~0.11.4" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "^12.2.13", "@angular-devkit/build-angular": "^13.0.4",
"@angular-eslint/builder": "13.0.1", "@angular-eslint/builder": "13.0.1",
"@angular-eslint/eslint-plugin": "13.0.1", "@angular-eslint/eslint-plugin": "13.0.1",
"@angular-eslint/eslint-plugin-template": "13.0.1", "@angular-eslint/eslint-plugin-template": "13.0.1",
"@angular-eslint/schematics": "13.0.1", "@angular-eslint/schematics": "13.0.1",
"@angular-eslint/template-parser": "13.0.1", "@angular-eslint/template-parser": "13.0.1",
"@angular/cli": "^12.2.13", "@angular/cli": "^13.0.4",
"@angular/compiler-cli": "~12.2.14", "@angular/compiler-cli": "~13.0.3",
"@angular/language-service": "~12.2.14", "@angular/language-service": "~13.0.3",
"@types/jasmine": "~3.6.0", "@types/jasmine": "~3.6.0",
"@types/jasminewd2": "~2.0.3", "@types/jasminewd2": "~2.0.3",
"@types/node": "^12.11.1", "@types/node": "^12.11.1",
@ -59,6 +59,6 @@
"karma-jasmine-html-reporter": "^1.5.0", "karma-jasmine-html-reporter": "^1.5.0",
"protractor": "~7.0.0", "protractor": "~7.0.0",
"ts-node": "~8.3.0", "ts-node": "~8.3.0",
"typescript": "~4.3.5" "typescript": "~4.4.4"
} }
} }

View File

@ -18,16 +18,6 @@
* BROWSER POLYFILLS * 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 * By default, zone.js will patch all possible macroTask and DomEvents
* user can disable parts of macroTask/DomEvents patch by setting following flags * user can disable parts of macroTask/DomEvents patch by setting following flags

View File

@ -17,7 +17,9 @@ declare const require: {
// First, initialize the Angular testing environment. // First, initialize the Angular testing environment.
getTestBed().initTestEnvironment( getTestBed().initTestEnvironment(
BrowserDynamicTestingModule, BrowserDynamicTestingModule,
platformBrowserDynamicTesting() platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
}
); );
// Then we find all the tests. // Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/); const context = require.context('./', true, /\.spec\.ts$/);