Skip to content

Commit b50d996

Browse files
committed
Angular 13 update
1 parent c4d26c1 commit b50d996

File tree

6 files changed

+27
-48
lines changed

6 files changed

+27
-48
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ package-lock.json
2727
!.vscode/extensions.json
2828

2929
# misc
30+
/.angular/cache
3031
/.sass-cache
3132
/connect.lock
3233
/coverage

angular.json

-13
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
"optimization": true,
5959
"outputHashing": "all",
6060
"sourceMap": false,
61-
"extractCss": true,
6261
"namedChunks": false,
6362
"extractLicenses": true,
6463
"vendorChunk": false,
@@ -83,7 +82,6 @@
8382
"options": {
8483
"browserTarget": "odp-ui-appcenter:build",
8584
"proxyConfig": "proxy.conf.json",
86-
"baseHref": "/",
8785
"port": 4201
8886
},
8987
"configurations": {
@@ -110,17 +108,6 @@
110108
"scripts": []
111109
}
112110
},
113-
"lint": {
114-
"builder": "@angular-devkit/build-angular:tslint",
115-
"options": {
116-
"tsConfig": [
117-
"tsconfig.app.json",
118-
"tsconfig.spec.json",
119-
"e2e/tsconfig.json"
120-
],
121-
"exclude": ["**/node_modules/**"]
122-
}
123-
},
124111
"e2e": {
125112
"builder": "@angular-devkit/build-angular:protractor",
126113
"options": {

package.json

+14-14
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
"private": true,
1313
"dependencies": {
1414
"@amcharts/amcharts4": "^4.8.9",
15-
"@angular/animations": "~12.2.17",
16-
"@angular/common": "~12.2.17",
17-
"@angular/compiler": "~12.2.17",
18-
"@angular/core": "~12.2.17",
19-
"@angular/forms": "~12.2.17",
20-
"@angular/localize": "^12.2.17",
21-
"@angular/platform-browser": "~12.2.17",
22-
"@angular/platform-browser-dynamic": "~12.2.17",
23-
"@angular/router": "~12.2.17",
15+
"@angular/animations": "~13.3.12",
16+
"@angular/common": "~13.3.12",
17+
"@angular/compiler": "~13.3.12",
18+
"@angular/core": "~13.3.12",
19+
"@angular/forms": "~13.3.12",
20+
"@angular/localize": "^13.3.12",
21+
"@angular/platform-browser": "~13.3.12",
22+
"@angular/platform-browser-dynamic": "~13.3.12",
23+
"@angular/router": "~13.3.12",
2424
"@ng-bootstrap/ng-bootstrap": "^9.0.2",
2525
"@types/pdfjs-dist": "2.1.7",
2626
"ag-grid-angular": "^25.0.1",
@@ -48,10 +48,10 @@
4848
"zone.js": "~0.11.8"
4949
},
5050
"devDependencies": {
51-
"@angular-devkit/build-angular": "~12.2.18",
52-
"@angular/cli": "~12.2.18",
53-
"@angular/compiler-cli": "~12.2.17",
54-
"@angular/language-service": "~12.2.17",
51+
"@angular-devkit/build-angular": "~13.3.10",
52+
"@angular/cli": "~13.3.10",
53+
"@angular/compiler-cli": "~13.3.12",
54+
"@angular/language-service": "~13.3.12",
5555
"@types/jasmine": "~3.5.0",
5656
"@types/jasminewd2": "~2.0.3",
5757
"@types/node": "^12.11.1",
@@ -66,6 +66,6 @@
6666
"protractor": "~7.0.0",
6767
"ts-node": "~8.3.0",
6868
"tslint": "~6.1.3",
69-
"typescript": "~4.3.5"
69+
"typescript": "~4.6.4"
7070
}
7171
}

src/app/utils/truncated/truncated.module.ts

+9-10
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@ import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
44
import { TruncatedDirective, TruncatedTooltipComponent } from './truncated.directive';
55

66
@NgModule({
7-
imports: [
8-
CommonModule,
9-
NgbModule
10-
],
11-
declarations: [
12-
TruncatedDirective,
13-
TruncatedTooltipComponent
14-
],
15-
exports: [TruncatedDirective],
16-
entryComponents: [TruncatedTooltipComponent]
7+
imports: [
8+
CommonModule,
9+
NgbModule
10+
],
11+
declarations: [
12+
TruncatedDirective,
13+
TruncatedTooltipComponent
14+
],
15+
exports: [TruncatedDirective]
1716
})
1817
export class TruncatedModule { }

src/polyfills.ts

-10
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,6 @@
1818
* BROWSER POLYFILLS
1919
*/
2020

21-
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
22-
// import 'classlist.js'; // Run `npm install --save classlist.js`.
23-
24-
/**
25-
* Web Animations `@angular/platform-browser/animations`
26-
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
27-
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
28-
*/
29-
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
30-
3121
/**
3222
* By default, zone.js will patch all possible macroTask and DomEvents
3323
* user can disable parts of macroTask/DomEvents patch by setting following flags

src/test.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ declare const require: {
1717
// First, initialize the Angular testing environment.
1818
getTestBed().initTestEnvironment(
1919
BrowserDynamicTestingModule,
20-
platformBrowserDynamicTesting()
20+
platformBrowserDynamicTesting(), {
21+
teardown: { destroyAfterEach: false }
22+
}
2123
);
2224
// Then we find all the tests.
2325
const context = require.context('./', true, /\.spec\.ts$/);

0 commit comments

Comments
 (0)