Skip to content

Commit aa202ec

Browse files
Updated to Angular 13.
1 parent 3192868 commit aa202ec

File tree

6 files changed

+18
-54
lines changed

6 files changed

+18
-54
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
!.vscode/extensions.json
2626

2727
# misc
28+
/.angular/cache
2829
/.sass-cache
2930
/connect.lock
3031
/coverage

angular.json

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,6 @@
9090
"src/favicon.ico"
9191
]
9292
}
93-
},
94-
"lint": {
95-
"builder": "@angular-devkit/build-angular:tslint",
96-
"options": {
97-
"tsConfig": [
98-
"src/tsconfig.app.json",
99-
"src/tsconfig.spec.json"
100-
],
101-
"exclude": []
102-
}
10393
}
10494
}
10595
},
@@ -114,15 +104,6 @@
114104
"protractorConfig": "./protractor.conf.js",
115105
"devServerTarget": "my-app:serve"
116106
}
117-
},
118-
"lint": {
119-
"builder": "@angular-devkit/build-angular:tslint",
120-
"options": {
121-
"tsConfig": [
122-
"e2e/tsconfig.e2e.json"
123-
],
124-
"exclude": []
125-
}
126107
}
127108
}
128109
},
@@ -155,18 +136,6 @@
155136
"scripts": [],
156137
"styles": [],
157138
}
158-
},
159-
"lint": {
160-
"builder": "@angular-devkit/build-angular:tslint",
161-
"options": {
162-
"tsConfig": [
163-
"highcharts-angular/tsconfig.lib.json",
164-
"highcharts-angular/tsconfig.spec.json"
165-
],
166-
"exclude": [
167-
"**/node_modules/**"
168-
]
169-
}
170139
}
171140
}
172141
}

highcharts-angular/tsconfig.lib.prod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"declarationMap": false
55
},
66
"angularCompilerOptions": {
7-
"enableIvy": false
7+
"compilationMode": "partial"
88
}
99
}

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
"e2e": "ng e2e"
1616
},
1717
"dependencies": {
18-
"@angular/animations": "12.2.13",
19-
"@angular/common": "12.2.13",
20-
"@angular/compiler": "12.2.13",
21-
"@angular/core": "12.2.13",
22-
"@angular/forms": "12.2.13",
23-
"@angular/platform-browser": "12.2.13",
24-
"@angular/platform-browser-dynamic": "12.2.13",
25-
"@angular/router": "12.2.13",
18+
"@angular/animations": "13.0.2",
19+
"@angular/common": "13.0.2",
20+
"@angular/compiler": "13.0.2",
21+
"@angular/core": "13.0.2",
22+
"@angular/forms": "13.0.2",
23+
"@angular/platform-browser": "13.0.2",
24+
"@angular/platform-browser-dynamic": "13.0.2",
25+
"@angular/router": "13.0.2",
2626
"@highcharts/map-collection": "^1.1.3",
2727
"core-js": "^3.8.1",
2828
"highcharts": "^9.0.0",
@@ -34,9 +34,9 @@
3434
"zone.js": "~0.11.4"
3535
},
3636
"devDependencies": {
37-
"@angular-devkit/build-angular": "~12.2.13",
38-
"@angular/cli": "12.2.13",
39-
"@angular/compiler-cli": "12.2.13",
37+
"@angular-devkit/build-angular": "~13.0.3",
38+
"@angular/cli": "13.0.3",
39+
"@angular/compiler-cli": "13.0.2",
4040
"@types/jasmine": "2.8.8",
4141
"@types/jasminewd2": "2.0.3",
4242
"@types/node": "^12.19.9",
@@ -48,12 +48,12 @@
4848
"karma-coverage-istanbul-reporter": "~3.0.2",
4949
"karma-jasmine": "~4.0.0",
5050
"karma-jasmine-html-reporter": "^1.5.0",
51-
"ng-packagr": "^12.2.5",
51+
"ng-packagr": "^13.0.8",
5252
"node-sass": "^4.12.0",
5353
"protractor": "~7.0.0",
5454
"standard-version": "^8.0.1",
5555
"ts-node": "^8.6.2",
5656
"tslint": "~6.1.0",
57-
"typescript": "4.3.5"
57+
"typescript": "4.4.4"
5858
}
5959
}

src/polyfills.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,8 @@
3333
// import 'core-js/es6/map';
3434
// import 'core-js/es6/set';
3535

36-
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
37-
// import 'classlist.js'; // Run `npm install --save classlist.js`.
38-
39-
/** IE10 and IE11 requires the following to support `@angular/animation`. */
40-
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
41-
4236
/** Evergreen browsers require these. **/
4337
import "core-js/es/reflect";
44-
/** ALL Firefox browsers require the following to support `@angular/animation`. **/
45-
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
4638
/***************************************************************************************************
4739
* Zone JS is required by Angular itself.
4840
*/

src/test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ __karma__.loaded = function () {};
2222
// First, initialize the Angular testing environment.
2323
getTestBed().initTestEnvironment(
2424
BrowserDynamicTestingModule,
25-
platformBrowserDynamicTesting()
25+
platformBrowserDynamicTesting(), {
26+
teardown: { destroyAfterEach: false }
27+
}
2628
);
2729
// Then we find all the tests.
2830
const context = require.context('./', true, /\.spec\.ts$/);

0 commit comments

Comments
 (0)