Skip to content

Commit c9595fa

Browse files
chore(ng13): Update to angular 13
- first update devkit to 12 - npx ng update @angular/core@12 - npx ng update @angular/cli@12 - remove codelyzer dependency - update devkit to 13 - npx ng update @angular/core@13 - npx ng update @angualr/cli@13
1 parent b8a80c7 commit c9595fa

File tree

6 files changed

+3000
-4684
lines changed

6 files changed

+3000
-4684
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ yarn-error.log
2020
!.vscode/extensions.json
2121

2222
# misc
23+
/.angular/cache
2324
/connect.lock
2425
/coverage/*
2526
/libpeerconnection.log

angular.json

Lines changed: 9 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"build": {
1212
"builder": "@angular-devkit/build-angular:browser",
1313
"options": {
14-
"aot": true,
1514
"outputPath": "dist",
1615
"index": "src/index.html",
1716
"main": "src/main.ts",
@@ -24,7 +23,13 @@
2423
"styles": [
2524
"src/styles.css"
2625
],
27-
"scripts": []
26+
"scripts": [],
27+
"vendorChunk": true,
28+
"extractLicenses": false,
29+
"buildOptimizer": false,
30+
"sourceMap": true,
31+
"optimization": false,
32+
"namedChunks": true
2833
},
2934
"configurations": {
3035
"production": {
@@ -38,7 +43,6 @@
3843
"outputHashing": "all",
3944
"sourceMap": false,
4045
"namedChunks": false,
41-
"aot": true,
4246
"extractLicenses": true,
4347
"vendorChunk": false,
4448
"buildOptimizer": true,
@@ -49,7 +53,8 @@
4953
}
5054
]
5155
}
52-
}
56+
},
57+
"defaultConfiguration": ""
5358
},
5459
"serve": {
5560
"builder": "@angular-devkit/build-angular:dev-server",
@@ -83,15 +88,6 @@
8388
"src/favicon.ico"
8489
]
8590
}
86-
},
87-
"lint": {
88-
"builder": "@angular-devkit/build-angular:tslint",
89-
"options": {
90-
"tsConfig": [
91-
"src/tsconfig.json"
92-
],
93-
"exclude": []
94-
}
9591
}
9692
}
9793
},
@@ -106,15 +102,6 @@
106102
"protractorConfig": "./protractor.conf.js",
107103
"devServerTarget": "sample-app-angular:serve"
108104
}
109-
},
110-
"lint": {
111-
"builder": "@angular-devkit/build-angular:tslint",
112-
"options": {
113-
"tsConfig": [
114-
"e2e/tsconfig.json"
115-
],
116-
"exclude": []
117-
}
118105
}
119106
}
120107
}

package.json

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@
55
"angular-cli": {},
66
"scripts": {
77
"ng": "ng",
8-
"start": "ng serve --prod --source-map",
9-
"build": "ng build --prod --source-map",
8+
"start": "ng serve --configuration production --source-map",
9+
"build": "ng build --configuration production --source-map",
1010
"test": "npm run build && cypress-runner run",
1111
"test:open": "npm run build && cypress-runner open",
1212
"e2e": "npm run test",
1313
"gh-pages": "ng build --base-href=/sample-app-angular/ && shx rm -rf pages && shx mkdir pages && cd pages && git init && git remote add pages [email protected]:ui-router/sample-app-angular.git && git fetch pages && git checkout gh-pages && git rm -rf * && shx mv ../dist/* . && git add . && git commit -m 'Update gh-pages' . && git push && cd .. && shx rm -rf pages"
1414
},
1515
"private": true,
1616
"dependencies": {
17-
"@angular/common": "11.0.5",
18-
"@angular/compiler": "11.0.5",
19-
"@angular/core": "11.0.5",
20-
"@angular/forms": "11.0.5",
21-
"@angular/platform-browser": "11.0.5",
22-
"@angular/platform-browser-dynamic": "11.0.5",
17+
"@angular/common": "13.0.2",
18+
"@angular/compiler": "13.0.2",
19+
"@angular/core": "13.0.2",
20+
"@angular/forms": "13.0.2",
21+
"@angular/platform-browser": "13.0.2",
22+
"@angular/platform-browser-dynamic": "13.0.2",
2323
"@uirouter/angular": "^8.0.1",
2424
"@uirouter/core": "6.0.7",
2525
"@uirouter/rx": "0.6.5",
@@ -29,20 +29,19 @@
2929
"rxjs-compat": "^6.6.7",
3030
"ts-helpers": "^1.1.2",
3131
"tslib": "^2.3.0",
32-
"zone.js": "~0.10.3"
32+
"zone.js": "~0.11.4"
3333
},
3434
"devDependencies": {
35-
"@angular-devkit/build-angular": "~0.1100.7",
36-
"@angular/animations": "11.0.5",
37-
"@angular/cli": "^11.2.12",
38-
"@angular/compiler-cli": "11.0.5",
35+
"@angular-devkit/build-angular": "^13",
36+
"@angular/animations": "13.0.2",
37+
"@angular/cli": "^13.0.3",
38+
"@angular/compiler-cli": "13.0.2",
3939
"@types/jasmine": "~3.6.10",
4040
"@uirouter/cypress-runner": "^1.1.0",
41-
"codelyzer": "^6.0.2",
4241
"fibers": "5.0.0",
4342
"html-webpack-plugin": "4.3.0",
4443
"shx": "^0.3.3",
4544
"tslint": "6.1.2",
46-
"typescript": "~4.0.8"
45+
"typescript": "~4.4.4"
4746
}
48-
}
47+
}

src/polyfills.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,16 @@ import 'core-js/es6/regexp';
1414
import 'core-js/es6/map';
1515
import 'core-js/es6/set';
1616
import 'core-js/es6/reflect';
17-
import 'zone.js/dist/zone';
17+
import 'zone.js';
1818

1919
// If you need to support the browsers/features below, uncomment the import
2020
// and run `npm install import-name-here';
2121
// Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html
2222

23-
// Needed for: IE9
24-
// import 'classlist.js';
25-
2623
// Animations
27-
// Needed for: All but Chrome and Firefox, Not supported in IE9
28-
// import 'web-animations-js';
2924

3025
// Date, currency, decimal and percent pipes
3126
// Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10
3227
// import 'intl';
3328

3429
// NgClass on SVG elements
35-
// Needed for: IE10, IE11
36-
// import 'classlist.js';

src/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"baseUrl": "",
44
"declaration": false,
55
"downlevelIteration": true,
6-
"emitDecoratorMetadata": true,
76
"experimentalDecorators": true,
87
"lib": ["es6", "dom"],
98
"mapRoot": "./",

0 commit comments

Comments
 (0)