feat(nx): update to nx17

This commit is contained in:
thomas
2023-10-24 10:27:18 +02:00
parent 3173522a00
commit b34b846674
66 changed files with 6092 additions and 3695 deletions

3
.gitignore vendored
View File

@@ -40,4 +40,5 @@ Thumbs.db
.angular .angular
TODO.md TODO.md
.nx/cache

View File

@@ -4,3 +4,5 @@
/coverage /coverage
.angular .angular
/.nx/cache

View File

@@ -68,7 +68,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -68,7 +68,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -74,7 +74,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [
"apps/angular/context-outlet-type/**/*.ts", "apps/angular/context-outlet-type/**/*.ts",

View File

@@ -78,7 +78,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [
"apps/angular/crud/**/*.ts", "apps/angular/crud/**/*.ts",

View File

@@ -68,7 +68,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -73,7 +73,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -68,7 +68,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -71,7 +71,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -68,7 +68,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -74,7 +74,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [
"apps/angular/ngfor-enhancement/**/*.ts", "apps/angular/ngfor-enhancement/**/*.ts",

View File

@@ -74,7 +74,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [
"apps/angular/permissions/**/*.ts", "apps/angular/permissions/**/*.ts",

View File

@@ -74,7 +74,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [
"apps/angular/pipe-easy/**/*.ts", "apps/angular/pipe-easy/**/*.ts",

View File

@@ -74,7 +74,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [
"apps/angular/pipe-hard/**/*.ts", "apps/angular/pipe-hard/**/*.ts",

View File

@@ -74,7 +74,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [
"apps/angular/pipe-intermediate/**/*.ts", "apps/angular/pipe-intermediate/**/*.ts",

View File

@@ -75,7 +75,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [
"apps/angular/projection/**/*.ts", "apps/angular/projection/**/*.ts",

View File

@@ -68,7 +68,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -68,7 +68,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -75,7 +75,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [
"apps/ngrx/effect-selector/**/*.ts", "apps/ngrx/effect-selector/**/*.ts",

View File

@@ -75,7 +75,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [
"apps/ngrx/notification/**/*.ts", "apps/ngrx/notification/**/*.ts",

View File

@@ -72,7 +72,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -72,7 +72,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -72,7 +72,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -72,7 +72,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -68,7 +68,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -68,7 +68,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -69,7 +69,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [
"apps/rxjs/pipe-bug/**/*.ts", "apps/rxjs/pipe-bug/**/*.ts",

View File

@@ -68,7 +68,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -68,7 +68,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -82,7 +82,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -82,7 +82,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -68,7 +68,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -71,7 +71,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -68,7 +68,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -68,7 +68,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -69,7 +69,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -71,7 +71,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -68,7 +68,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -33,11 +33,12 @@
"glob": "executors.json", "glob": "executors.json",
"output": "." "output": "."
} }
] ],
"updateBuildableProjectDepsInPackageJson": true
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": ["libs/cli/**/*.ts", "libs/cli/package.json"] "lintFilePatterns": ["libs/cli/**/*.ts", "libs/cli/package.json"]

View File

@@ -10,7 +10,7 @@ import {
Tree, Tree,
updateJson, updateJson,
} from '@nx/devkit'; } from '@nx/devkit';
import { Linter } from '@nx/linter'; import { Linter } from '@nx/eslint';
import { join } from 'path'; import { join } from 'path';
import { getProjectDir } from '../../utils/normalize'; import { getProjectDir } from '../../utils/normalize';
import { Schema } from './schema'; import { Schema } from './schema';

View File

@@ -33,11 +33,12 @@
"glob": "executors.json", "glob": "executors.json",
"output": "." "output": "."
} }
] ],
"updateBuildableProjectDepsInPackageJson": true
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -10,7 +10,8 @@
"executor": "@nx/angular:ng-packagr-lite", "executor": "@nx/angular:ng-packagr-lite",
"outputs": ["{workspaceRoot}/dist/{projectRoot}"], "outputs": ["{workspaceRoot}/dist/{projectRoot}"],
"options": { "options": {
"project": "libs/decoupling/brain/ng-package.json" "project": "libs/decoupling/brain/ng-package.json",
"updateBuildableProjectDepsInPackageJson": true
}, },
"configurations": { "configurations": {
"production": { "production": {
@@ -37,7 +38,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -10,7 +10,8 @@
"executor": "@nx/angular:ng-packagr-lite", "executor": "@nx/angular:ng-packagr-lite",
"outputs": ["{workspaceRoot}/dist/{projectRoot}"], "outputs": ["{workspaceRoot}/dist/{projectRoot}"],
"options": { "options": {
"project": "libs/decoupling/core/ng-package.json" "project": "libs/decoupling/core/ng-package.json",
"updateBuildableProjectDepsInPackageJson": true
}, },
"configurations": { "configurations": {
"production": { "production": {
@@ -37,7 +38,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -10,7 +10,8 @@
"executor": "@nx/angular:ng-packagr-lite", "executor": "@nx/angular:ng-packagr-lite",
"outputs": ["{workspaceRoot}/dist/{projectRoot}"], "outputs": ["{workspaceRoot}/dist/{projectRoot}"],
"options": { "options": {
"project": "libs/decoupling/helmet/ng-package.json" "project": "libs/decoupling/helmet/ng-package.json",
"updateBuildableProjectDepsInPackageJson": true
}, },
"configurations": { "configurations": {
"production": { "production": {
@@ -37,7 +38,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -10,7 +10,8 @@
"executor": "@nx/angular:ng-packagr-lite", "executor": "@nx/angular:ng-packagr-lite",
"outputs": ["{workspaceRoot}/dist/{projectRoot}"], "outputs": ["{workspaceRoot}/dist/{projectRoot}"],
"options": { "options": {
"project": "libs/fake-utils/ng-package.json" "project": "libs/fake-utils/ng-package.json",
"updateBuildableProjectDepsInPackageJson": true
}, },
"configurations": { "configurations": {
"production": { "production": {
@@ -23,7 +24,7 @@
"defaultConfiguration": "production" "defaultConfiguration": "production"
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -21,7 +21,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -21,7 +21,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -10,7 +10,8 @@
"executor": "@nx/angular:ng-packagr-lite", "executor": "@nx/angular:ng-packagr-lite",
"outputs": ["{workspaceRoot}/dist/{projectRoot}"], "outputs": ["{workspaceRoot}/dist/{projectRoot}"],
"options": { "options": {
"project": "libs/module-to-standalone/core/providers/ng-package.json" "project": "libs/module-to-standalone/core/providers/ng-package.json",
"updateBuildableProjectDepsInPackageJson": true
}, },
"configurations": { "configurations": {
"production": { "production": {
@@ -37,7 +38,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -21,7 +21,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -21,7 +21,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -21,7 +21,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -21,7 +21,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -10,7 +10,8 @@
"executor": "@nx/angular:ng-packagr-lite", "executor": "@nx/angular:ng-packagr-lite",
"outputs": ["{workspaceRoot}/dist/{projectRoot}"], "outputs": ["{workspaceRoot}/dist/{projectRoot}"],
"options": { "options": {
"project": "libs/module-to-standalone/user/contact/ng-package.json" "project": "libs/module-to-standalone/user/contact/ng-package.json",
"updateBuildableProjectDepsInPackageJson": true
}, },
"configurations": { "configurations": {
"production": { "production": {
@@ -37,7 +38,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -10,7 +10,8 @@
"executor": "@nx/angular:ng-packagr-lite", "executor": "@nx/angular:ng-packagr-lite",
"outputs": ["{workspaceRoot}/dist/{projectRoot}"], "outputs": ["{workspaceRoot}/dist/{projectRoot}"],
"options": { "options": {
"project": "libs/module-to-standalone/user/home/ng-package.json" "project": "libs/module-to-standalone/user/home/ng-package.json",
"updateBuildableProjectDepsInPackageJson": true
}, },
"configurations": { "configurations": {
"production": { "production": {
@@ -37,7 +38,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -10,7 +10,8 @@
"executor": "@nx/angular:ng-packagr-lite", "executor": "@nx/angular:ng-packagr-lite",
"outputs": ["{workspaceRoot}/dist/{projectRoot}"], "outputs": ["{workspaceRoot}/dist/{projectRoot}"],
"options": { "options": {
"project": "libs/module-to-standalone/user/shell/ng-package.json" "project": "libs/module-to-standalone/user/shell/ng-package.json",
"updateBuildableProjectDepsInPackageJson": true
}, },
"configurations": { "configurations": {
"production": { "production": {
@@ -37,7 +38,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -14,7 +14,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [
"libs/ngrx-notification/backend/**/*.ts", "libs/ngrx-notification/backend/**/*.ts",

View File

@@ -14,7 +14,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [
"libs/ngrx-notification/model/**/*.ts", "libs/ngrx-notification/model/**/*.ts",

View File

@@ -10,7 +10,8 @@
"executor": "@nx/angular:ng-packagr-lite", "executor": "@nx/angular:ng-packagr-lite",
"outputs": ["{workspaceRoot}/dist/{projectRoot}"], "outputs": ["{workspaceRoot}/dist/{projectRoot}"],
"options": { "options": {
"project": "libs/shared/directives/ng-package.json" "project": "libs/shared/directives/ng-package.json",
"updateBuildableProjectDepsInPackageJson": true
}, },
"configurations": { "configurations": {
"production": { "production": {
@@ -37,7 +38,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -9,7 +9,8 @@
"executor": "@nx/angular:package", "executor": "@nx/angular:package",
"outputs": ["{workspaceRoot}/dist/{projectRoot}"], "outputs": ["{workspaceRoot}/dist/{projectRoot}"],
"options": { "options": {
"project": "libs/shared/ngrx-callstate-store/ng-package.json" "project": "libs/shared/ngrx-callstate-store/ng-package.json",
"updateBuildableProjectDepsInPackageJson": true
}, },
"configurations": { "configurations": {
"production": { "production": {
@@ -30,7 +31,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [
"libs/shared/ngrx-callstate-store/**/*.ts", "libs/shared/ngrx-callstate-store/**/*.ts",

View File

@@ -14,7 +14,7 @@
} }
}, },
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -7,7 +7,7 @@
"projectType": "library", "projectType": "library",
"targets": { "targets": {
"lint": { "lint": {
"executor": "@nx/linter:eslint", "executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [

View File

@@ -2,41 +2,107 @@
"migrations": [ "migrations": [
{ {
"cli": "nx", "cli": "nx",
"version": "16.5.0-beta.2", "version": "16.6.0-beta.6",
"description": "Add test-setup.ts to ignored files in production input", "description": "Prefix outputs with {workspaceRoot}/{projectRoot} if needed",
"implementation": "./src/migrations/update-16-5-0/add-test-setup-to-inputs-ignore", "implementation": "./src/migrations/update-15-0-0/prefix-outputs",
"package": "@nx/jest", "package": "nx",
"name": "add-test-setup-to-inputs-ignore" "name": "16.6.0-prefix-outputs"
}, },
{ {
"cli": "nx", "cli": "nx",
"version": "16.4.0-beta.6", "version": "16.8.0-beta.3",
"requires": { "description": "Escape $ in env variables",
"@angular-eslint/eslint-plugin-template": ">=16.0.0" "implementation": "./src/migrations/update-16-8-0/escape-dollar-sign-env-variables",
}, "package": "nx",
"description": "Remove the 'accessibility-' prefix from '@angular-eslint/eslint-plugin-template' rules.", "name": "16.8.0-escape-dollar-sign-env"
"factory": "./src/migrations/update-16-4-0/rename-angular-eslint-accesibility-rules", },
{
"cli": "nx",
"version": "17.0.0-beta.1",
"description": "Updates the default cache directory to .nx/cache",
"implementation": "./src/migrations/update-17-0-0/move-cache-directory",
"package": "nx",
"name": "17.0.0-move-cache-directory"
},
{
"cli": "nx",
"version": "17.0.0-beta.3",
"description": "Use minimal config for tasksRunnerOptions",
"implementation": "./src/migrations/update-17-0-0/use-minimal-config-for-tasks-runner-options",
"package": "nx",
"name": "17.0.0-use-minimal-config-for-tasks-runner-options"
},
{
"version": "17.0.0-rc.1",
"description": "Migration for v17.0.0-rc.1",
"implementation": "./src/migrations/update-17-0-0/rm-default-collection-npm-scope",
"package": "nx",
"name": "rm-default-collection-npm-scope"
},
{
"cli": "nx",
"version": "16.6.0-beta.0",
"description": "Explicitly set 'updateBuildableProjectDepsInPackageJson' to 'true' in targets that rely on that value as the default.",
"factory": "./src/migrations/update-16-6-0/explicitly-set-projects-to-update-buildable-deps",
"package": "@nx/js",
"name": "explicitly-set-projects-to-update-buildable-deps"
},
{
"cli": "nx",
"version": "16.8.2-beta.0",
"description": "Remove invalid options (strict, noInterop) for ES6 type modules.",
"factory": "./src/migrations/update-16-8-2/update-swcrc",
"package": "@nx/js",
"name": "16-8-2-update-swcrc"
},
{
"cli": "nx",
"version": "16.9.0-beta.1",
"description": "Replace imports of Module Federation utils frm @nx/devkit to @nx/webpack",
"implementation": "./src/migrations/update-16-9-0/migrate-mf-util-usage",
"package": "@nx/devkit",
"name": "update-16-9-0-migrate-mf-usage-to-webpack"
},
{
"cli": "nx",
"version": "16.6.0-beta.0",
"description": "Explicitly set 'updateBuildableProjectDepsInPackageJson' to 'true' in targets that rely on that value as the default.",
"factory": "./src/migrations/update-16-6-0/explicitly-set-projects-to-update-buildable-deps",
"package": "@nx/angular", "package": "@nx/angular",
"name": "rename-angular-eslint-accesibility-rules" "name": "explicitly-set-projects-to-update-buildable-deps"
}, },
{ {
"cli": "nx", "cli": "nx",
"version": "16.4.0-beta.11", "version": "16.7.0-beta.6",
"requires": { "requires": {
"@angular/core": ">=16.1.0" "@angular/core": ">=16.2.0"
}, },
"description": "Update the @angular/cli package version to ~16.1.0.", "description": "Update the @angular/cli package version to ~16.2.0.",
"factory": "./src/migrations/update-16-4-0/update-angular-cli", "factory": "./src/migrations/update-16-7-0/update-angular-cli",
"package": "@nx/angular", "package": "@nx/angular",
"name": "update-angular-cli-version-16-1-0" "name": "update-angular-cli-version-16-2-0"
}, },
{ {
"cli": "nx", "cli": "nx",
"version": "16.4.0-beta.10", "version": "16.8.0-beta.4",
"description": "Remove tsconfig.e2e.json and add settings to project tsconfig.json. tsConfigs executor option is now deprecated. The project level tsconfig.json file should be used instead.", "description": "Update to Cypress v13. Most noteable change is video recording is off by default. This migration will only update if the workspace is already on Cypress v12. https://docs.cypress.io/guides/references/migration-guide#Migrating-to-Cypress-130",
"implementation": "./src/migrations/update-16-4-0/tsconfig-sourcemaps", "implementation": "./src/migrations/update-16-8-0/cypress-13",
"package": "@nx/cypress", "package": "@nx/cypress",
"name": "update-16-3-0-remove-old-tsconfigs" "name": "update-16-8-0-cypress-13"
},
{
"version": "16.8.0",
"description": "update-16-8-0-add-ignored-files",
"implementation": "./src/migrations/update-16-8-0-add-ignored-files/update-16-8-0-add-ignored-files",
"package": "@nx/eslint",
"name": "update-16-8-0-add-ignored-files"
},
{
"version": "17.0.0-beta.7",
"description": "update-17-0-0-rename-to-eslint",
"implementation": "./src/migrations/update-17-0-0-rename-to-eslint/update-17-0-0-rename-to-eslint",
"package": "@nx/eslint",
"name": "update-17-0-0-rename-to-eslint"
} }
] ]
} }

30
nx.json
View File

@@ -1,40 +1,30 @@
{ {
"$schema": "./node_modules/nx/schemas/nx-schema.json", "$schema": "./node_modules/nx/schemas/nx-schema.json",
"npmScope": "angular-challenges",
"tasksRunnerOptions": {
"default": {
"runner": "nx/tasks-runners/default",
"options": {
"cacheableOperations": [
"build",
"lint",
"test",
"e2e",
"component-test"
]
}
}
},
"targetDefaults": { "targetDefaults": {
"build": { "build": {
"dependsOn": ["^build"], "dependsOn": ["^build"],
"inputs": ["production", "^production"] "inputs": ["production", "^production"],
"cache": true
}, },
"test": { "test": {
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"] "inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"],
"cache": true
}, },
"e2e": { "e2e": {
"inputs": ["default", "^production"] "inputs": ["default", "^production"],
"cache": true
}, },
"lint": { "lint": {
"inputs": [ "inputs": [
"default", "default",
"{workspaceRoot}/.eslintrc.json", "{workspaceRoot}/.eslintrc.json",
"{workspaceRoot}/tools/eslint-rules/**/*" "{workspaceRoot}/tools/eslint-rules/**/*"
] ],
"cache": true
}, },
"component-test": { "component-test": {
"inputs": ["default", "^production"] "inputs": ["default", "^production"],
"cache": true
} }
}, },
"namedInputs": { "namedInputs": {

9410
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -13,16 +13,16 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "16.1.4", "@angular/animations": "~16.2.0",
"@angular/cdk": "16.1.4", "@angular/cdk": "~16.2.0",
"@angular/common": "16.1.4", "@angular/common": "~16.2.0",
"@angular/compiler": "16.1.4", "@angular/compiler": "~16.2.0",
"@angular/core": "16.1.4", "@angular/core": "~16.2.0",
"@angular/forms": "16.1.4", "@angular/forms": "~16.2.0",
"@angular/material": "16.1.4", "@angular/material": "~16.2.0",
"@angular/platform-browser": "16.1.4", "@angular/platform-browser": "~16.2.0",
"@angular/platform-browser-dynamic": "16.1.4", "@angular/platform-browser-dynamic": "~16.2.0",
"@angular/router": "16.1.4", "@angular/router": "~16.2.0",
"@ngneat/falso": "^6.4.0", "@ngneat/falso": "^6.4.0",
"@ngrx/component": "16.0.0", "@ngrx/component": "16.0.0",
"@ngrx/component-store": "16.0.0", "@ngrx/component-store": "16.0.0",
@@ -30,11 +30,11 @@
"@ngrx/entity": "16.0.0", "@ngrx/entity": "16.0.0",
"@ngrx/router-store": "16.0.0", "@ngrx/router-store": "16.0.0",
"@ngrx/store": "16.0.0", "@ngrx/store": "16.0.0",
"@nx/angular": "16.5.1", "@nx/angular": "17.0.1",
"@rx-angular/cdk": "^1.0.0-rc.4", "@rx-angular/cdk": "^1.0.0-rc.4",
"@rx-angular/state": "^1.7.0", "@rx-angular/state": "^1.7.0",
"@rx-angular/template": "^1.0.0-rc.5", "@rx-angular/template": "^1.0.0-rc.5",
"@swc/helpers": "~0.5.0", "@swc/helpers": "0.5.3",
"primeicons": "6.0.1", "primeicons": "6.0.1",
"primeng": "16.0.2", "primeng": "16.0.2",
"rxjs": "7.8.1", "rxjs": "7.8.1",
@@ -43,32 +43,31 @@
"zone.js": "0.13.0" "zone.js": "0.13.0"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "16.1.4", "@angular-devkit/build-angular": "~16.2.0",
"@angular-devkit/core": "16.1.4", "@angular-devkit/core": "~16.2.0",
"@angular-devkit/schematics": "16.1.4", "@angular-devkit/schematics": "~16.2.0",
"@angular-eslint/eslint-plugin": "16.0.2", "@angular-eslint/eslint-plugin": "~16.0.0",
"@angular-eslint/eslint-plugin-template": "16.0.2", "@angular-eslint/eslint-plugin-template": "~16.0.0",
"@angular-eslint/template-parser": "16.0.2", "@angular-eslint/template-parser": "~16.0.0",
"@angular/cli": "~16.1.0", "@angular/cli": "~16.2.0",
"@angular/compiler-cli": "16.1.4", "@angular/compiler-cli": "~16.2.0",
"@angular/language-service": "16.1.4", "@angular/language-service": "~16.2.0",
"@commitlint/cli": "^17.2.0", "@commitlint/cli": "^17.2.0",
"@commitlint/config-conventional": "^17.2.0", "@commitlint/config-conventional": "^17.2.0",
"@cypress/webpack-dev-server": "^2.0.0", "@cypress/webpack-dev-server": "^2.0.0",
"@hirez_io/observer-spy": "^2.2.0", "@hirez_io/observer-spy": "^2.2.0",
"@ngrx/schematics": "16.0.0", "@ngrx/schematics": "16.0.0",
"@nx/cypress": "16.5.1", "@nx/cypress": "17.0.1",
"@nx/devkit": "16.5.1", "@nx/devkit": "17.0.1",
"@nx/eslint-plugin": "16.5.1", "@nx/eslint-plugin": "17.0.1",
"@nx/jest": "16.5.1", "@nx/jest": "17.0.1",
"@nx/js": "16.5.1", "@nx/js": "17.0.1",
"@nx/linter": "16.5.1", "@nx/plugin": "17.0.1",
"@nx/plugin": "16.5.1", "@nx/workspace": "17.0.1",
"@nx/workspace": "16.5.1", "@schematics/angular": "~16.2.0",
"@schematics/angular": "16.1.4", "@swc-node/register": "1.6.8",
"@swc-node/register": "~1.4.2",
"@swc/cli": "~0.1.62", "@swc/cli": "~0.1.62",
"@swc/core": "~1.3.51", "@swc/core": "1.3.94",
"@testing-library/angular": "^13.3.0", "@testing-library/angular": "^13.3.0",
"@testing-library/cypress": "^9.0.0", "@testing-library/cypress": "^9.0.0",
"@testing-library/jest-dom": "^5.16.5", "@testing-library/jest-dom": "^5.16.5",
@@ -78,10 +77,10 @@
"@typescript-eslint/eslint-plugin": "5.62.0", "@typescript-eslint/eslint-plugin": "5.62.0",
"@typescript-eslint/parser": "5.62.0", "@typescript-eslint/parser": "5.62.0",
"all-contributors-cli": "^6.26.1", "all-contributors-cli": "^6.26.1",
"cypress": "12.17.1", "cypress": "^13.0.0",
"eslint": "~8.15.0", "eslint": "8.46.0",
"eslint-config-prettier": "8.1.0", "eslint-config-prettier": "9.0.0",
"eslint-plugin-cypress": "^2.10.3", "eslint-plugin-cypress": "2.15.1",
"html-webpack-plugin": "^5.5.0", "html-webpack-plugin": "^5.5.0",
"husky": "^8.0.2", "husky": "^8.0.2",
"jest": "29.5.0", "jest": "29.5.0",
@@ -89,8 +88,8 @@
"jest-preset-angular": "13.1.1", "jest-preset-angular": "13.1.1",
"jsonc-eslint-parser": "^2.1.0", "jsonc-eslint-parser": "^2.1.0",
"lint-staged": "^13.0.3", "lint-staged": "^13.0.3",
"ng-packagr": "16.1.0", "ng-packagr": "16.2.3",
"nx": "16.5.1", "nx": "17.0.1",
"postcss": "^8.4.5", "postcss": "^8.4.5",
"postcss-import": "~14.1.0", "postcss-import": "~14.1.0",
"postcss-preset-env": "~7.5.0", "postcss-preset-env": "~7.5.0",
@@ -99,7 +98,8 @@
"testing-library-selector": "^0.2.1", "testing-library-selector": "^0.2.1",
"ts-jest": "29.1.0", "ts-jest": "29.1.0",
"ts-node": "10.9.1", "ts-node": "10.9.1",
"typescript": "5.1.6" "typescript": "5.1.6",
"@nx/eslint": "17.0.1"
}, },
"lint-staged": { "lint-staged": {
"*.{ts,json,md}": [ "*.{ts,json,md}": [