Skip to content

Commit 735aa39

Browse files
committed
fix: update to angular v13
1 parent 6a139a9 commit 735aa39

File tree

6 files changed

+847
-2349
lines changed

6 files changed

+847
-2349
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
!.vscode/extensions.json
2727

2828
# misc
29+
/.angular/cache
2930
/.sass-cache
3031
/connect.lock
3132
/coverage

angular.json

-23
Original file line numberDiff line numberDiff line change
@@ -98,18 +98,6 @@
9898
"src/manifest.webmanifest"
9999
]
100100
}
101-
},
102-
"lint": {
103-
"builder": "@angular-devkit/build-angular:tslint",
104-
"options": {
105-
"tsConfig": [
106-
"src/tsconfig.app.json",
107-
"src/tsconfig.spec.json"
108-
],
109-
"exclude": [
110-
"**/node_modules/**"
111-
]
112-
}
113101
}
114102
}
115103
},
@@ -124,17 +112,6 @@
124112
"protractorConfig": "./protractor.conf.js",
125113
"devServerTarget": "ang2-conduit:serve"
126114
}
127-
},
128-
"lint": {
129-
"builder": "@angular-devkit/build-angular:tslint",
130-
"options": {
131-
"tsConfig": [
132-
"e2e/tsconfig.e2e.json"
133-
],
134-
"exclude": [
135-
"**/node_modules/**"
136-
]
137-
}
138115
}
139116
}
140117
}

package.json

+15-15
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616
],
1717
"private": true,
1818
"dependencies": {
19-
"@angular/animations": "12.2.10",
20-
"@angular/common": "12.2.10",
21-
"@angular/compiler": "12.2.10",
22-
"@angular/core": "12.2.10",
23-
"@angular/forms": "12.2.10",
24-
"@angular/platform-browser": "12.2.10",
25-
"@angular/platform-browser-dynamic": "12.2.10",
26-
"@angular/router": "12.2.10",
27-
"@angular/service-worker": "12.2.10",
19+
"@angular/animations": "13.0.0",
20+
"@angular/common": "13.0.0",
21+
"@angular/compiler": "13.0.0",
22+
"@angular/core": "13.0.0",
23+
"@angular/forms": "13.0.0",
24+
"@angular/platform-browser": "13.0.0",
25+
"@angular/platform-browser-dynamic": "13.0.0",
26+
"@angular/router": "13.0.0",
27+
"@angular/service-worker": "13.0.0",
2828
"core-js": "^3.18.3",
2929
"marked": "^2.1.3",
3030
"ngx-quicklink": "^0.2.7",
@@ -33,10 +33,10 @@
3333
"zone.js": "~0.11.4"
3434
},
3535
"devDependencies": {
36-
"@angular-devkit/build-angular": "~12.2.10",
37-
"@angular/cli": "^12.2.10",
38-
"@angular/compiler-cli": "12.2.10",
39-
"@angular/language-service": "12.2.10",
36+
"@angular-devkit/build-angular": "~13.0.1",
37+
"@angular/cli": "^13.0.1",
38+
"@angular/compiler-cli": "13.0.0",
39+
"@angular/language-service": "13.0.0",
4040
"@types/jasmine": "~3.9.1",
4141
"@types/jasminewd2": "~2.0.10",
4242
"@types/node": "^16.11.0",
@@ -53,6 +53,6 @@
5353
"protractor": "~7.0.0",
5454
"ts-node": "~10.3.0",
5555
"tslint": "~6.1.3",
56-
"typescript": "4.2.3"
56+
"typescript": "4.4.4"
5757
}
58-
}
58+
}

src/polyfills.ts

-9
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,13 @@
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-
2421
/** IE10 and IE11 requires the following for the Reflect API. */
2522
// import 'core-js/es6/reflect';
2623

2724
/** Evergreen browsers require these. **/
2825
// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove.
2926
// import 'core-js/es7/reflect';
3027

31-
/**
32-
* Required to support Web Animations `@angular/platform-browser/animations`.
33-
* Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation
34-
**/
35-
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
36-
3728
/***************************************************************************************************
3829
* Zone JS is required by default for Angular itself.
3930
*/

src/test.ts

+3-1
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)