Skip to content

Commit d3374fc

Browse files
committed
feat(): upgrade nx and angular
1 parent 54332d2 commit d3374fc

254 files changed

Lines changed: 4977 additions & 4900 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps/angular/1-projection/jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-disable */
2-
export default {
2+
module.exports = {
33
displayName: 'angular-projection',
44
preset: '../../../jest.preset.js',
55
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
import { provideZoneChangeDetection } from '@angular/core';
12
import { bootstrapApplication } from '@angular/platform-browser';
23
import { AppComponent } from './app/app.component';
34

4-
bootstrapApplication(AppComponent).catch((err) => console.error(err));
5+
bootstrapApplication(AppComponent, {
6+
providers: [provideZoneChangeDetection()],
7+
}).catch((err) => console.error(err));
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
import 'jest-preset-angular/setup-jest';
1+
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';
2+
3+
setupZoneTestEnv();

apps/angular/1-projection/tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
"noImplicitOverride": true,
2121
"noPropertyAccessFromIndexSignature": true,
2222
"noImplicitReturns": true,
23-
"noFallthroughCasesInSwitch": true
23+
"noFallthroughCasesInSwitch": true,
24+
"module": "preserve",
25+
"moduleResolution": "bundler",
26+
"lib": ["dom", "es2022"]
2427
},
2528
"angularCompilerOptions": {
2629
"enableI18nLegacyMessageIdFormat": false,

apps/angular/1-projection/tsconfig.spec.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
44
"outDir": "../../../dist/out-tsc",
5-
"module": "commonjs",
6-
"types": ["jest", "node"]
5+
"module": "preserve",
6+
"types": ["jest", "node"],
7+
"moduleResolution": "bundler",
8+
"isolatedModules": true
79
},
810
"files": ["src/test-setup.ts"],
911
"include": ["jest.config.ts", "**/*.test.ts", "**/*.spec.ts", "**/*.d.ts"]
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
import { provideZoneChangeDetection } from '@angular/core';
12
import { bootstrapApplication } from '@angular/platform-browser';
23
import { AppComponent } from './app/app.component';
34

4-
bootstrapApplication(AppComponent).catch((err) => console.error(err));
5+
bootstrapApplication(AppComponent, {
6+
providers: [provideZoneChangeDetection()],
7+
}).catch((err) => console.error(err));

apps/angular/10-utility-wrapper-pipe/tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717
"noImplicitOverride": true,
1818
"noPropertyAccessFromIndexSignature": true,
1919
"noImplicitReturns": true,
20-
"noFallthroughCasesInSwitch": true
20+
"noFallthroughCasesInSwitch": true,
21+
"module": "preserve",
22+
"moduleResolution": "bundler",
23+
"lib": ["dom", "es2022"]
2124
},
2225
"angularCompilerOptions": {
2326
"enableI18nLegacyMessageIdFormat": false,
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
import { provideZoneChangeDetection } from '@angular/core';
12
import { bootstrapApplication } from '@angular/platform-browser';
23
import { PageComponent } from './app/page.component';
34

4-
bootstrapApplication(PageComponent).catch((err) => console.error(err));
5+
bootstrapApplication(PageComponent, {
6+
providers: [provideZoneChangeDetection()],
7+
}).catch((err) => console.error(err));

apps/angular/13-highly-customizable-css/tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
"noImplicitOverride": true,
88
"noPropertyAccessFromIndexSignature": true,
99
"noImplicitReturns": true,
10-
"noFallthroughCasesInSwitch": true
10+
"noFallthroughCasesInSwitch": true,
11+
"module": "preserve",
12+
"moduleResolution": "bundler",
13+
"lib": ["dom", "es2022"]
1114
},
1215
"files": [],
1316
"include": [],
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
import { provideZoneChangeDetection } from '@angular/core';
12
import { bootstrapApplication } from '@angular/platform-browser';
23
import { AppComponent } from './app/app.component';
34

4-
bootstrapApplication(AppComponent).catch((err) => console.error(err));
5+
bootstrapApplication(AppComponent, {
6+
providers: [provideZoneChangeDetection()],
7+
}).catch((err) => console.error(err));

0 commit comments

Comments
 (0)