Skip to content

Commit ea67b95

Browse files
authored
Upgrade Dependencies (#562)
* Upgrade to Angular 10 * Upgrade to Angular 11 * Upgrade to Angular 14 * Upgrade other dependencies * Upgrade config files * Fix versions * Replace test email
1 parent 05ff4c8 commit ea67b95

36 files changed

Lines changed: 18641 additions & 15095 deletions

.browserslistrc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
2+
# For additional information regarding the format and rule options, please see:
3+
# https://github.com/browserslist/browserslist#queries
4+
5+
# For the full list of supported browsers by the Angular framework, please see:
6+
# https://angular.io/guide/browser-support
7+
8+
# You can see what browsers were selected by your queries by running:
9+
# npx browserslist
10+
11+
last 1 Chrome version
12+
last 1 Firefox version
13+
last 2 Edge major versions
14+
last 2 Safari major versions
15+
last 2 iOS major versions
16+
Firefox ESR

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ indent_size = 2
88
insert_final_newline = true
99
trim_trailing_whitespace = true
1010

11+
[*.ts]
12+
quote_type = single
13+
1114
[*.md]
1215
max_line_length = off
1316
trim_trailing_whitespace = false

.gitignore

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,42 @@
11
# See http://help.github.com/ignore-files/ for more about ignoring files.
22

3-
# compiled output
3+
# Compiled output
44
/dist
55
/tmp
66
/out-tsc
7+
/bazel-out
78

8-
# dependencies
9+
# Node
910
/node_modules
10-
11-
# profiling files
12-
chrome-profiler-events.json
13-
speed-measure-plugin.json
11+
npm-debug.log
12+
yarn-error.log
1413

1514
# IDEs and editors
16-
/.idea
15+
.idea/
1716
.project
1817
.classpath
1918
.c9/
2019
*.launch
2120
.settings/
2221
*.sublime-workspace
2322

24-
# IDE - VSCode
23+
# Visual Studio Code
2524
.vscode/*
2625
!.vscode/settings.json
2726
!.vscode/tasks.json
2827
!.vscode/launch.json
2928
!.vscode/extensions.json
3029
.history/*
3130

32-
# misc
33-
/.sass-cache
31+
# Miscellaneous
32+
/.angular/cache
33+
.sass-cache/
3434
/connect.lock
3535
/coverage
3636
/libpeerconnection.log
37-
npm-debug.log
38-
yarn-error.log
3937
testem.log
4038
/typings
4139

42-
# System Files
40+
# System files
4341
.DS_Store
4442
Thumbs.db

angular.json

Lines changed: 37 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
"build": {
1818
"builder": "@angular-devkit/build-angular:browser",
1919
"options": {
20-
"aot": true,
2120
"outputPath": "dist/angular-token-app",
2221
"index": "src/index.html",
2322
"main": "src/main.ts",
2423
"polyfills": "src/polyfills.ts",
25-
"tsConfig": "src/tsconfig.app.json",
24+
"tsConfig": "tsconfig.app.json",
25+
"inlineStyleLanguage": "scss",
2626
"assets": [
2727
"src/favicon.ico",
2828
"src/assets"
@@ -35,130 +35,71 @@
3535
},
3636
"configurations": {
3737
"production": {
38-
"fileReplacements": [
39-
{
40-
"replace": "src/environments/environment.ts",
41-
"with": "src/environments/environment.prod.ts"
42-
}
43-
],
44-
"optimization": true,
45-
"outputHashing": "all",
46-
"sourceMap": false,
47-
"extractCss": true,
48-
"namedChunks": false,
49-
"aot": true,
50-
"extractLicenses": true,
51-
"vendorChunk": false,
52-
"buildOptimizer": true,
5338
"budgets": [
5439
{
5540
"type": "initial",
56-
"maximumWarning": "2mb",
57-
"maximumError": "5mb"
41+
"maximumWarning": "500kb",
42+
"maximumError": "1mb"
5843
},
5944
{
6045
"type": "anyComponentStyle",
61-
"maximumWarning": "6kb"
46+
"maximumWarning": "2kb",
47+
"maximumError": "4kb"
6248
}
63-
]
49+
],
50+
"fileReplacements": [
51+
{
52+
"replace": "src/environments/environment.ts",
53+
"with": "src/environments/environment.prod.ts"
54+
}
55+
],
56+
"outputHashing": "all"
57+
},
58+
"development": {
59+
"buildOptimizer": false,
60+
"optimization": false,
61+
"vendorChunk": true,
62+
"extractLicenses": false,
63+
"sourceMap": true,
64+
"namedChunks": true
6465
}
65-
}
66+
},
67+
"defaultConfiguration": "production"
6668
},
6769
"serve": {
6870
"builder": "@angular-devkit/build-angular:dev-server",
69-
"options": {
70-
"browserTarget": "angular-token-app:build"
71-
},
7271
"configurations": {
7372
"production": {
7473
"browserTarget": "angular-token-app:build:production"
74+
},
75+
"development": {
76+
"browserTarget": "angular-token-app:build:development"
7577
}
76-
}
77-
},
78-
"extract-i18n": {
79-
"builder": "@angular-devkit/build-angular:extract-i18n",
80-
"options": {
81-
"browserTarget": "angular-token-app:build"
82-
}
83-
},
84-
"test": {
85-
"builder": "@angular-devkit/build-angular:karma",
86-
"options": {
87-
"main": "src/test.ts",
88-
"polyfills": "src/polyfills.ts",
89-
"tsConfig": "src/tsconfig.spec.json",
90-
"karmaConfig": "src/karma.conf.js",
91-
"styles": [
92-
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
93-
"src/styles.scss"
94-
],
95-
"scripts": [],
96-
"assets": [
97-
"src/favicon.ico",
98-
"src/assets"
99-
]
100-
}
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-
}
113-
}
114-
}
115-
},
116-
"angular-token-app-e2e": {
117-
"root": "e2e/",
118-
"projectType": "application",
119-
"prefix": "",
120-
"architect": {
121-
"e2e": {
122-
"builder": "@angular-devkit/build-angular:protractor",
123-
"options": {
124-
"protractorConfig": "e2e/protractor.conf.js",
125-
"devServerTarget": "angular-token-app:serve"
12678
},
127-
"configurations": {
128-
"production": {
129-
"devServerTarget": "angular-token-app:serve:production"
130-
}
131-
}
132-
},
133-
"lint": {
134-
"builder": "@angular-devkit/build-angular:tslint",
135-
"options": {
136-
"tsConfig": "e2e/tsconfig.e2e.json",
137-
"exclude": [
138-
"**/node_modules/**"
139-
]
140-
}
79+
"defaultConfiguration": "development"
14180
}
14281
}
14382
},
14483
"angular-token": {
84+
"projectType": "library",
14585
"root": "projects/angular-token",
14686
"sourceRoot": "projects/angular-token/src",
147-
"projectType": "library",
14887
"prefix": "lib",
14988
"architect": {
15089
"build": {
151-
"builder": "@angular-devkit/build-ng-packagr:build",
90+
"builder": "@angular-devkit/build-angular:ng-packagr",
15291
"options": {
153-
"tsConfig": "projects/angular-token/tsconfig.lib.json",
15492
"project": "projects/angular-token/ng-package.json"
15593
},
15694
"configurations": {
15795
"production": {
158-
"project": "projects/angular-token/ng-package.prod.json",
15996
"tsConfig": "projects/angular-token/tsconfig.lib.prod.json"
97+
},
98+
"development": {
99+
"tsConfig": "projects/angular-token/tsconfig.lib.json"
160100
}
161-
}
101+
},
102+
"defaultConfiguration": "production"
162103
},
163104
"test": {
164105
"builder": "@angular-devkit/build-angular:karma",
@@ -167,21 +108,8 @@
167108
"tsConfig": "projects/angular-token/tsconfig.spec.json",
168109
"karmaConfig": "projects/angular-token/karma.conf.js"
169110
}
170-
},
171-
"lint": {
172-
"builder": "@angular-devkit/build-angular:tslint",
173-
"options": {
174-
"tsConfig": [
175-
"projects/angular-token/tsconfig.lib.json",
176-
"projects/angular-token/tsconfig.spec.json"
177-
],
178-
"exclude": [
179-
"**/node_modules/**"
180-
]
181-
}
182111
}
183112
}
184113
}
185-
},
186-
"defaultProject": "angular-token-app"
187-
}
114+
}
115+
}

browserslist

Lines changed: 0 additions & 11 deletions
This file was deleted.

e2e/protractor.conf.js

Lines changed: 0 additions & 28 deletions
This file was deleted.

e2e/src/app.e2e-spec.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

e2e/src/app.po.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

e2e/tsconfig.e2e.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)