Skip to content

Commit 5cf167b

Browse files
committed
Updated to Angular 13
1 parent b81f24b commit 5cf167b

File tree

7 files changed

+1494
-2710
lines changed

7 files changed

+1494
-2710
lines changed

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
*.sublime-workspace
2020

2121
# misc
22+
/.angular/cache
2223
/.sass-cache
2324
/connect.lock
2425
/coverage

Diff for: angular.json

-11
Original file line numberDiff line numberDiff line change
@@ -113,17 +113,6 @@
113113
"protractorConfig": "./protractor.conf.js",
114114
"devServerTarget": "devon4ng-application-template:serve"
115115
}
116-
},
117-
"lint": {
118-
"builder": "@angular-devkit/build-angular:tslint",
119-
"options": {
120-
"tsConfig": [
121-
"e2e/tsconfig.e2e.json"
122-
],
123-
"exclude": [
124-
"**/node_modules/**"
125-
]
126-
}
127116
}
128117
}
129118
}

Diff for: package.json

+17-17
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
},
1313
"private": true,
1414
"dependencies": {
15-
"@angular/animations": "~12.1.1",
16-
"@angular/cdk": "~12.1.1",
17-
"@angular/common": "~12.1.1",
18-
"@angular/compiler": "~12.1.1",
19-
"@angular/core": "~12.1.1",
20-
"@angular/forms": "~12.1.1",
21-
"@angular/material": "~12.1.1",
22-
"@angular/platform-browser": "~12.1.1",
23-
"@angular/platform-browser-dynamic": "~12.1.1",
24-
"@angular/router": "~12.1.1",
15+
"@angular/animations": "~13.1.0",
16+
"@angular/cdk": "~13.1.0",
17+
"@angular/common": "~13.1.0",
18+
"@angular/compiler": "~13.1.0",
19+
"@angular/core": "~13.1.0",
20+
"@angular/forms": "~13.1.0",
21+
"@angular/material": "~13.1.0",
22+
"@angular/platform-browser": "~13.1.0",
23+
"@angular/platform-browser-dynamic": "~13.1.0",
24+
"@angular/router": "~13.1.0",
2525
"@nestjsx/crud-request": "^4.2.0",
2626
"@ngneat/transloco": "^3.1.1",
2727
"core-js": "^2.5.4",
@@ -32,16 +32,16 @@
3232
"zone.js": "~0.11.4"
3333
},
3434
"devDependencies": {
35-
"@angular-devkit/build-angular": "~12.2.11",
36-
"@angular-devkit/schematics": "~12.2.12",
35+
"@angular-devkit/build-angular": "~13.1.1",
36+
"@angular-devkit/schematics": "~13.1.1",
3737
"@angular-eslint/builder": "13.0.1",
3838
"@angular-eslint/eslint-plugin": "13.0.1",
3939
"@angular-eslint/eslint-plugin-template": "13.0.1",
4040
"@angular-eslint/schematics": "13.0.1",
4141
"@angular-eslint/template-parser": "13.0.1",
42-
"@angular/cli": "~12.2.14",
43-
"@angular/compiler-cli": "~12.1.1",
44-
"@angular/language-service": "~12.2.11",
42+
"@angular/cli": "~13.1.1",
43+
"@angular/compiler-cli": "~13.1.0",
44+
"@angular/language-service": "~13.1.0",
4545
"@types/jasmine": "~3.10.2",
4646
"@types/jasminewd2": "~2.0.3",
4747
"@types/node": "^16.11.12",
@@ -60,12 +60,12 @@
6060
"karma-jasmine-html-reporter": "^1.5.0",
6161
"protractor": "~7.0.0",
6262
"ts-node": "~10.4.0",
63-
"typescript": "~4.3.5"
63+
"typescript": "~4.5.3"
6464
},
6565
"prettier": {
6666
"singleQuote": true,
6767
"semi": true,
6868
"tabWidth": 2,
6969
"trailingComma": "all"
7070
}
71-
}
71+
}

Diff for: src/assets/styles/material.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
@use '~@angular/material' as mat;
1+
@use '@angular/material' as mat;
22
@import url('https://fonts.googleapis.com/css?family=Roboto');
3-
@import '~@angular/material/theming';
3+
@import '@angular/material/theming';
44

55
// Define a custom typography config that overrides the font-family
66
// or any typography level.

Diff for: src/polyfills.ts

-9
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,10 @@
2222
// import 'core-js/es6/map';
2323
// import 'core-js/es6/set';
2424

25-
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
26-
// import 'classlist.js'; // Run `npm install --save classlist.js`.
27-
28-
/** IE10 and IE11 requires the following to support `@angular/animation`. */
29-
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
30-
3125
/** Evergreen browsers require these. **/
3226
import 'core-js/es6/reflect';
3327
import 'core-js/es7/reflect';
3428

35-
/** ALL Firefox browsers require the following to support `@angular/animation`. **/
36-
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
37-
3829
/***************************************************************************************************
3930
* Zone JS is required by Angular itself.
4031
*/

Diff for: src/test.ts

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

0 commit comments

Comments
 (0)