Skip to content

Commit 6b0ac1f

Browse files
committed
(feat) upgrade to Angular v14
1 parent bc16bd3 commit 6b0ac1f

34 files changed

+4871
-2591
lines changed

angular.json

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"version": 1,
33
"projects": {
44
"scheduler": {
5+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
56
"projectType": "application",
67
"root": "apps/scheduler",
78
"sourceRoot": "apps/scheduler/src",
@@ -91,14 +92,15 @@
9192
"builder": "@nrwl/jest:jest",
9293
"outputs": ["coverage/apps/scheduler"],
9394
"options": {
94-
"jestConfig": "apps/scheduler/jest.config.js",
95+
"jestConfig": "apps/scheduler/jest.config.ts",
9596
"passWithNoTests": true
9697
}
9798
}
9899
},
99100
"tags": []
100101
},
101102
"scheduler-e2e": {
103+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
102104
"root": "apps/scheduler-e2e",
103105
"sourceRoot": "apps/scheduler-e2e/src",
104106
"projectType": "application",
@@ -127,6 +129,7 @@
127129
"implicitDependencies": ["scheduler"]
128130
},
129131
"scheduler-feature-episode-request": {
132+
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
130133
"projectType": "library",
131134
"root": "libs/scheduler/feature-episode-request",
132135
"sourceRoot": "libs/scheduler/feature-episode-request/src",
@@ -136,7 +139,7 @@
136139
"builder": "@nrwl/jest:jest",
137140
"outputs": ["coverage/libs/scheduler/feature-episode-request"],
138141
"options": {
139-
"jestConfig": "libs/scheduler/feature-episode-request/jest.config.js",
142+
"jestConfig": "libs/scheduler/feature-episode-request/jest.config.ts",
140143
"passWithNoTests": true
141144
}
142145
},
@@ -153,6 +156,7 @@
153156
"tags": []
154157
},
155158
"scheduler-feature-home": {
159+
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
156160
"projectType": "library",
157161
"root": "libs/scheduler/feature-home",
158162
"sourceRoot": "libs/scheduler/feature-home/src",
@@ -162,7 +166,7 @@
162166
"builder": "@nrwl/jest:jest",
163167
"outputs": ["coverage/libs/scheduler/feature-home"],
164168
"options": {
165-
"jestConfig": "libs/scheduler/feature-home/jest.config.js",
169+
"jestConfig": "libs/scheduler/feature-home/jest.config.ts",
166170
"passWithNoTests": true
167171
}
168172
},
@@ -179,6 +183,7 @@
179183
"tags": []
180184
},
181185
"scheduler-services-common": {
186+
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
182187
"projectType": "library",
183188
"root": "libs/scheduler/services-common",
184189
"sourceRoot": "libs/scheduler/services-common/src",
@@ -188,7 +193,7 @@
188193
"builder": "@nrwl/jest:jest",
189194
"outputs": ["coverage/libs/scheduler/services-common"],
190195
"options": {
191-
"jestConfig": "libs/scheduler/services-common/jest.config.js",
196+
"jestConfig": "libs/scheduler/services-common/jest.config.ts",
192197
"passWithNoTests": true
193198
}
194199
},
@@ -205,6 +210,7 @@
205210
"tags": []
206211
},
207212
"ui-common": {
213+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
208214
"projectType": "library",
209215
"root": "libs/ui-common",
210216
"sourceRoot": "libs/ui-common/src",
@@ -213,7 +219,7 @@
213219
"test": {
214220
"builder": "@nrwl/jest:jest",
215221
"options": {
216-
"jestConfig": "libs/ui-common/jest.config.js",
222+
"jestConfig": "libs/ui-common/jest.config.ts",
217223
"passWithNoTests": true
218224
}
219225
},
@@ -262,6 +268,7 @@
262268
"tags": []
263269
},
264270
"website": {
271+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
265272
"projectType": "application",
266273
"root": "apps/website",
267274
"sourceRoot": "apps/website/src",
@@ -346,13 +353,14 @@
346353
"test": {
347354
"builder": "@nrwl/jest:jest",
348355
"options": {
349-
"jestConfig": "apps/website/jest.config.js",
356+
"jestConfig": "apps/website/jest.config.ts",
350357
"passWithNoTests": true
351358
}
352359
}
353360
}
354361
},
355362
"website-e2e": {
363+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
356364
"root": "apps/website-e2e",
357365
"sourceRoot": "apps/website-e2e/src",
358366
"projectType": "application",

apps/scheduler/jest.config.js renamed to apps/scheduler/jest.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
module.exports = {
1+
/* eslint-disable */
2+
export default {
23
displayName: 'scheduler',
34
preset: '../../jest.preset.js',
45
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],

apps/scheduler/tsconfig.app.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"compilerOptions": {
44
"outDir": "../../dist/out-tsc",
55
"types": [],
6-
"target": "ES2017"
6+
"target": "es2020"
77
},
88
"files": ["src/main.ts", "src/polyfills.ts"],
99
"include": ["src/**/*.d.ts"],
10-
"exclude": ["**/*.test.ts", "**/*.spec.ts"]
10+
"exclude": ["**/*.test.ts", "**/*.spec.ts", "jest.config.ts"]
1111
}

apps/scheduler/tsconfig.editor.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
"include": ["**/*.ts"],
44
"compilerOptions": {
55
"types": ["jest", "node"]
6-
}
6+
},
7+
"exclude": ["jest.config.ts"]
78
}

apps/scheduler/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"noImplicitOverride": true,
2020
"noPropertyAccessFromIndexSignature": true,
2121
"noImplicitReturns": true,
22-
"noFallthroughCasesInSwitch": true
22+
"noFallthroughCasesInSwitch": true,
23+
"target": "es2020"
2324
},
2425
"angularCompilerOptions": {
2526
"strictInjectionParameters": true,

apps/scheduler/tsconfig.spec.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
"types": ["jest", "node"]
77
},
88
"files": ["src/test-setup.ts"],
9-
"include": ["**/*.test.ts", "**/*.spec.ts", "**/*.d.ts"]
9+
"include": ["**/*.test.ts", "**/*.spec.ts", "**/*.d.ts", "jest.config.ts"]
1010
}

apps/website/jest.config.js renamed to apps/website/jest.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
module.exports = {
1+
/* eslint-disable */
2+
export default {
23
displayName: 'website',
34
preset: '../../jest.preset.js',
45
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],

apps/website/tsconfig.app.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"compilerOptions": {
44
"outDir": "../../dist/out-tsc",
55
"types": [],
6-
"target": "ES2017"
6+
"target": "es2020"
77
},
88
"files": ["src/main.ts", "src/polyfills.ts"],
99
"include": ["src/**/*.d.ts"],
10-
"exclude": ["**/*.test.ts", "**/*.spec.ts"]
10+
"exclude": ["**/*.test.ts", "**/*.spec.ts", "jest.config.ts"]
1111
}

apps/website/tsconfig.editor.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
"include": ["**/*.ts"],
44
"compilerOptions": {
55
"types": ["jest", "node"]
6-
}
6+
},
7+
"exclude": ["jest.config.ts"]
78
}

apps/website/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"noImplicitOverride": true,
2020
"noPropertyAccessFromIndexSignature": true,
2121
"noImplicitReturns": true,
22-
"noFallthroughCasesInSwitch": true
22+
"noFallthroughCasesInSwitch": true,
23+
"target": "es2020"
2324
},
2425
"angularCompilerOptions": {
2526
"strictInjectionParameters": true,

0 commit comments

Comments
 (0)