update to 13

This commit is contained in:
2022-12-01 23:42:04 +08:00
parent 716b7ced8b
commit 548a2014d9
5 changed files with 17 additions and 25 deletions

1
.gitignore vendored
View File

@@ -1,3 +1,4 @@
/.angular/cache
dist dist
node_modules node_modules
.idea .idea

View File

@@ -52,7 +52,6 @@
"optimization": true, "optimization": true,
"outputHashing": "all", "outputHashing": "all",
"sourceMap": false, "sourceMap": false,
"extractCss": true,
"namedChunks": false, "namedChunks": false,
"aot": true, "aot": true,
"extractLicenses": true, "extractLicenses": true,

View File

@@ -12,15 +12,15 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "^12.2.17", "@angular/animations": "^13.3.12",
"@angular/common": "^12.2.17", "@angular/common": "^13.3.12",
"@angular/compiler": "^12.2.17", "@angular/compiler": "^13.3.12",
"@angular/core": "^12.2.17", "@angular/core": "^13.3.12",
"@angular/forms": "^12.2.17", "@angular/forms": "^13.3.12",
"@angular/platform-browser": "^12.2.17", "@angular/platform-browser": "^13.3.12",
"@angular/platform-browser-dynamic": "^12.2.17", "@angular/platform-browser-dynamic": "^13.3.12",
"@angular/router": "^12.2.17", "@angular/router": "^13.3.12",
"@angular/service-worker": "^12.2.17", "@angular/service-worker": "^13.3.12",
"jquery": "^3.5.1", "jquery": "^3.5.1",
"js-base64": "^3.6.0", "js-base64": "^3.6.0",
"ng-zorro-antd": "^11.2.0", "ng-zorro-antd": "^11.2.0",
@@ -30,9 +30,9 @@
"zone.js": "^0.11.3" "zone.js": "^0.11.3"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "^12.2.18", "@angular-devkit/build-angular": "^13.3.10",
"@angular/cli": "^12.2.18", "@angular/cli": "^13.3.10",
"@angular/compiler-cli": "^12.2.17", "@angular/compiler-cli": "^13.3.12",
"@angular/language-service": "^13.2.0", "@angular/language-service": "^13.2.0",
"@types/jasmine": "^3.6.2", "@types/jasmine": "^3.6.2",
"@types/jasminewd2": "~2.0.3", "@types/jasminewd2": "~2.0.3",
@@ -48,7 +48,7 @@
"nz-tslint-rules": "^0.901.2", "nz-tslint-rules": "^0.901.2",
"protractor": "^7.0.0", "protractor": "^7.0.0",
"ts-node": "^10.5.0", "ts-node": "^10.5.0",
"typescript": "~4.3.5", "typescript": "~4.6.4",
"eslint": "^7.6.0", "eslint": "^7.6.0",
"eslint-plugin-import": "2.26.0", "eslint-plugin-import": "2.26.0",
"eslint-plugin-jsdoc": "35.4.1", "eslint-plugin-jsdoc": "35.4.1",

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

@@ -12,7 +12,9 @@ declare const require: any;
// 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$/);