Skip to content

Commit 2d5dab5

Browse files
author
thomas
committed
chore(version): update to version 16
1 parent e2680b3 commit 2d5dab5

File tree

126 files changed

+10829
-14244
lines changed

Some content is hidden

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

126 files changed

+10829
-14244
lines changed

.eslintrc.json

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"root": true,
33
"ignorePatterns": ["**/*"],
4-
"plugins": ["@nrwl/nx"],
4+
"plugins": ["@nx"],
55
"overrides": [
66
{
77
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
88
"rules": {
9-
"@nrwl/nx/enforce-module-boundaries": [
9+
"@nx/enforce-module-boundaries": [
1010
"error",
1111
{
1212
"enforceBuildableLibDependency": true,
@@ -19,17 +19,20 @@
1919
]
2020
}
2121
],
22-
"@angular-eslint/no-host-metadata-property": ["error", { "allowStatic": true }]
22+
"@angular-eslint/no-host-metadata-property": [
23+
"error",
24+
{ "allowStatic": true }
25+
]
2326
}
2427
},
2528
{
2629
"files": ["*.ts", "*.tsx"],
27-
"extends": ["plugin:@nrwl/nx/typescript"],
30+
"extends": ["plugin:@nx/typescript"],
2831
"rules": {}
2932
},
3033
{
3134
"files": ["*.js", "*.jsx"],
32-
"extends": ["plugin:@nrwl/nx/javascript"],
35+
"extends": ["plugin:@nx/javascript"],
3336
"rules": {}
3437
},
3538
{

apps/anchor-scrolling/.eslintrc.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
]
2424
},
2525
"extends": [
26-
"plugin:@nrwl/nx/angular",
26+
"plugin:@nx/angular",
2727
"plugin:@angular-eslint/template/process-inline-templates"
2828
]
2929
},
3030
{
3131
"files": ["*.html"],
32-
"extends": ["plugin:@nrwl/nx/angular-template"],
32+
"extends": ["plugin:@nx/angular-template"],
3333
"rules": {}
3434
}
3535
]

apps/anchor-scrolling/project.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
}
6969
},
7070
"lint": {
71-
"executor": "@nrwl/linter:eslint",
71+
"executor": "@nx/linter:eslint",
7272
"outputs": ["{options.outputFile}"],
7373
"options": {
7474
"lintFilePatterns": [
@@ -78,7 +78,7 @@
7878
}
7979
},
8080
"test": {
81-
"executor": "@nrwl/jest:jest",
81+
"executor": "@nx/jest:jest",
8282
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
8383
"options": {
8484
"jestConfig": "apps/anchor-scrolling/jest.config.ts",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { ApplicationConfig } from '@angular/core';
2+
import { provideRouter } from '@angular/router';
3+
import { appRoutes } from './app.routes';
4+
export const appConfig: ApplicationConfig = {
5+
providers: [provideRouter(appRoutes)],
6+
};

apps/anchor-scrolling/src/main.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
import { appConfig } from './app/app.config';
12
import { bootstrapApplication } from '@angular/platform-browser';
2-
import { provideRouter } from '@angular/router';
3+
34
import { AppComponent } from './app/app.component';
4-
import { appRoutes } from './app/app.routes';
55

6-
bootstrapApplication(AppComponent, {
7-
providers: [provideRouter(appRoutes)],
8-
}).catch((err) => console.error(err));
6+
bootstrapApplication(AppComponent, appConfig).catch((err) =>
7+
console.error(err)
8+
);

apps/anchor-scrolling/tailwind.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { createGlobPatternsForDependencies } = require('@nrwl/angular/tailwind');
1+
const { createGlobPatternsForDependencies } = require('@nx/angular/tailwind');
22
const { join } = require('path');
33

44
/** @type {import('tailwindcss').Config} */

apps/context-outlet-type/.eslintrc.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
{
66
"files": ["*.ts"],
77
"extends": [
8-
"plugin:@nrwl/nx/angular",
8+
"plugin:@nx/angular",
99
"plugin:@angular-eslint/template/process-inline-templates"
1010
]
1111
},
1212
{
1313
"files": ["*.html"],
14-
"extends": ["plugin:@nrwl/nx/angular-template"],
14+
"extends": ["plugin:@nx/angular-template"],
1515
"rules": {}
1616
}
1717
]

apps/context-outlet-type/project.json

+3-7
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
"targets": {
88
"build": {
99
"executor": "@angular-devkit/build-angular:browser",
10-
"outputs": [
11-
"{options.outputPath}"
12-
],
10+
"outputs": ["{options.outputPath}"],
1311
"options": {
1412
"outputPath": "dist/apps/context-outlet-type",
1513
"index": "apps/context-outlet-type/src/index.html",
@@ -21,9 +19,7 @@
2119
"apps/context-outlet-type/src/favicon.ico",
2220
"apps/context-outlet-type/src/assets"
2321
],
24-
"styles": [
25-
"apps/context-outlet-type/src/styles.scss"
26-
],
22+
"styles": ["apps/context-outlet-type/src/styles.scss"],
2723
"scripts": []
2824
},
2925
"configurations": {
@@ -78,7 +74,7 @@
7874
}
7975
},
8076
"lint": {
81-
"executor": "@nrwl/linter:eslint",
77+
"executor": "@nx/linter:eslint",
8278
"options": {
8379
"lintFilePatterns": [
8480
"apps/context-outlet-type/**/*.ts",

apps/crud/.eslintrc.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{
66
"files": ["*.ts"],
77
"extends": [
8-
"plugin:@nrwl/nx/angular",
8+
"plugin:@nx/angular",
99
"plugin:@angular-eslint/template/process-inline-templates"
1010
],
1111
"rules": {
@@ -29,7 +29,7 @@
2929
},
3030
{
3131
"files": ["*.html"],
32-
"extends": ["plugin:@nrwl/nx/angular-template"],
32+
"extends": ["plugin:@nx/angular-template"],
3333
"rules": {}
3434
}
3535
]

apps/crud/project.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@
7575
}
7676
},
7777
"lint": {
78-
"executor": "@nrwl/linter:eslint",
78+
"executor": "@nx/linter:eslint",
7979
"options": {
8080
"lintFilePatterns": ["apps/crud/**/*.ts", "apps/crud/**/*.html"]
8181
}
8282
},
8383
"test": {
84-
"executor": "@nrwl/jest:jest",
84+
"executor": "@nx/jest:jest",
8585
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
8686
"options": {
8787
"jestConfig": "apps/crud/jest.config.ts",

apps/crud/src/app/app.config.ts

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { ApplicationConfig } from '@angular/core';
2+
import { enableProdMode, importProvidersFrom } from '@angular/core';
3+
import { HttpClientModule } from '@angular/common/http';
4+
export const appConfig: ApplicationConfig = {
5+
providers: [importProvidersFrom(HttpClientModule)],
6+
};

apps/crud/src/main.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { HttpClientModule } from '@angular/common/http';
2-
import { enableProdMode, importProvidersFrom } from '@angular/core';
1+
import { appConfig } from './app/app.config';
2+
33
import { bootstrapApplication } from '@angular/platform-browser';
44
import { AppComponent } from './app/app.component';
55
import { environment } from './environments/environment';
@@ -8,6 +8,6 @@ if (environment.production) {
88
enableProdMode();
99
}
1010

11-
bootstrapApplication(AppComponent, {
12-
providers: [importProvidersFrom(HttpClientModule)],
13-
}).catch((err) => console.error(err));
11+
bootstrapApplication(AppComponent, appConfig).catch((err) =>
12+
console.error(err)
13+
);

apps/declarative-to-reactive/.eslintrc.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
]
2424
},
2525
"extends": [
26-
"plugin:@nrwl/nx/angular",
26+
"plugin:@nx/angular",
2727
"plugin:@angular-eslint/template/process-inline-templates"
2828
]
2929
},
3030
{
3131
"files": ["*.html"],
32-
"extends": ["plugin:@nrwl/nx/angular-template"],
32+
"extends": ["plugin:@nx/angular-template"],
3333
"rules": {}
3434
}
3535
]

apps/declarative-to-reactive/project.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
}
6969
},
7070
"lint": {
71-
"executor": "@nrwl/linter:eslint",
71+
"executor": "@nx/linter:eslint",
7272
"outputs": ["{options.outputFile}"],
7373
"options": {
7474
"lintFilePatterns": [
@@ -78,7 +78,7 @@
7878
}
7979
},
8080
"test": {
81-
"executor": "@nrwl/jest:jest",
81+
"executor": "@nx/jest:jest",
8282
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
8383
"options": {
8484
"jestConfig": "apps/declarative-to-reactive/jest.config.ts",

apps/declarative-to-reactive/src/app/nx-welcome.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -730,10 +730,10 @@ import { CommonModule } from '@angular/common';
730730
Add UI library
731731
</summary>
732732
<pre><span># Generate UI lib</span>
733-
nx g @nrwl/angular:lib ui
733+
nx g @nx/angular:lib ui
734734
735735
<span># Add a component</span>
736-
nx g @nrwl/angular:component button --project ui</pre>
736+
nx g @nx/angular:component button --project ui</pre>
737737
</details>
738738
<details>
739739
<summary>

apps/di/.eslintrc.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
]
2424
},
2525
"extends": [
26-
"plugin:@nrwl/nx/angular",
26+
"plugin:@nx/angular",
2727
"plugin:@angular-eslint/template/process-inline-templates"
2828
]
2929
},
3030
{
3131
"files": ["*.html"],
32-
"extends": ["plugin:@nrwl/nx/angular-template"],
32+
"extends": ["plugin:@nx/angular-template"],
3333
"rules": {}
3434
}
3535
]

apps/di/project.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
}
7171
},
7272
"lint": {
73-
"executor": "@nrwl/linter:eslint",
73+
"executor": "@nx/linter:eslint",
7474
"outputs": ["{options.outputFile}"],
7575
"options": {
7676
"lintFilePatterns": ["apps/di/**/*.ts", "apps/di/**/*.html"]

apps/ngfor-enhancement/.eslintrc.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{
66
"files": ["*.ts"],
77
"extends": [
8-
"plugin:@nrwl/nx/angular",
8+
"plugin:@nx/angular",
99
"plugin:@angular-eslint/template/process-inline-templates"
1010
],
1111
"rules": {
@@ -29,7 +29,7 @@
2929
},
3030
{
3131
"files": ["*.html"],
32-
"extends": ["plugin:@nrwl/nx/angular-template"],
32+
"extends": ["plugin:@nx/angular-template"],
3333
"rules": {}
3434
}
3535
]

apps/ngfor-enhancement/project.json

+3-7
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
"targets": {
88
"build": {
99
"executor": "@angular-devkit/build-angular:browser",
10-
"outputs": [
11-
"{options.outputPath}"
12-
],
10+
"outputs": ["{options.outputPath}"],
1311
"options": {
1412
"outputPath": "dist/apps/ngfor-enhancement",
1513
"index": "apps/ngfor-enhancement/src/index.html",
@@ -21,9 +19,7 @@
2119
"apps/ngfor-enhancement/src/favicon.ico",
2220
"apps/ngfor-enhancement/src/assets"
2321
],
24-
"styles": [
25-
"apps/ngfor-enhancement/src/styles.scss"
26-
],
22+
"styles": ["apps/ngfor-enhancement/src/styles.scss"],
2723
"scripts": []
2824
},
2925
"configurations": {
@@ -78,7 +74,7 @@
7874
}
7975
},
8076
"lint": {
81-
"executor": "@nrwl/linter:eslint",
77+
"executor": "@nx/linter:eslint",
8278
"options": {
8379
"lintFilePatterns": [
8480
"apps/ngfor-enhancement/**/*.ts",

apps/ngrx-1/.eslintrc.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{
66
"files": ["*.ts"],
77
"extends": [
8-
"plugin:@nrwl/nx/angular",
8+
"plugin:@nx/angular",
99
"plugin:@angular-eslint/template/process-inline-templates"
1010
],
1111
"rules": {
@@ -29,7 +29,7 @@
2929
},
3030
{
3131
"files": ["*.html"],
32-
"extends": ["plugin:@nrwl/nx/angular-template"],
32+
"extends": ["plugin:@nx/angular-template"],
3333
"rules": {}
3434
}
3535
]

0 commit comments

Comments
 (0)