Files
nrwl--nx/nx.json
T
2026-07-13 12:38:36 +08:00

530 lines
14 KiB
JSON

{
"$schema": "packages/nx/schemas/nx-schema.json",
"namedInputs": {
"default": ["{projectRoot}/**/*", "sharedGlobals"],
"production": [
"default",
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
"!{projectRoot}/tsconfig.spec.json",
"!{projectRoot}/jest.config.[jt]s",
"!{projectRoot}/eslint.config.@(js|cjs|mjs|ts|cts|mts)",
"!{projectRoot}/.storybook/**/*",
"!{projectRoot}/**/*.stories.@(js|jsx|ts|tsx|mdx)",
"!{projectRoot}/tsconfig.storybook.json",
"!{projectRoot}/src/test-setup.[jt]s"
],
"sharedGlobals": [
"{workspaceRoot}/babel.config.json",
"{workspaceRoot}/.nx/workflows/agents.yaml",
"{workspaceRoot}/.github/workflows/ci.yml"
],
"copyReadme": [
"{projectRoot}/README.md",
"{projectRoot}/readme-template.md",
"{workspaceRoot}/scripts/copy-readme.js",
"{workspaceRoot}/scripts/readme-fragments/**/*",
"{workspaceRoot}/.prettierignore"
],
"native": [
"{projectRoot}/**/*.rs",
"{projectRoot}/**/Cargo.*",
"{projectRoot}/src/native/dts-header.d.ts",
"{workspaceRoot}/Cargo.toml",
"{workspaceRoot}/Cargo.lock",
"{workspaceRoot}/clippy.toml",
"{workspaceRoot}/.cargo/config.toml",
{
"runtime": "node -p '`${process.platform}_${process.arch}`'"
},
{
"runtime": "rustc --version"
},
{
"externalDependencies": ["npm:@monodon/rust", "npm:@napi-rs/cli"]
}
],
"e2eInputs": [
"default",
"{workspaceRoot}/scripts/patched-jest-resolver.js",
"{workspaceRoot}/jest.preset.js",
"{workspaceRoot}/e2e/jest.preset.e2e.js",
"{workspaceRoot}/.verdaccio/config.yml",
"{workspaceRoot}/scripts/local-registry/**/*",
"{workspaceRoot}/scripts/nx-release.ts",
{
"env": "SELECTED_CLI"
},
{
"env": "SELECTED_PM"
},
{
"env": "NX_E2E_CI_CACHE_KEY"
},
{
"env": "CI"
},
{
"env": "NX_E2E_RUN_E2E"
},
{
"dependentTasksOutputFiles": "**/*.d.ts",
"transitive": true
},
{
"json": "{workspaceRoot}/tsconfig.json",
"fields": ["compilerOptions", "extends", "files", "include"]
}
]
},
"release": {
"projects": ["packages/*", "packages/nx/native-packages/*"],
"releaseTag": {
"pattern": "{version}"
},
"changelog": {
"workspaceChangelog": {
"createRelease": "github",
"file": false
},
"git": {
"commit": false,
"stageChanges": false,
"tag": false
}
},
"version": {
"git": {
"commit": false,
"stageChanges": false,
"tag": false
},
"currentVersionResolver": "registry",
"preserveLocalDependencyProtocols": true,
"preserveMatchingDependencyRanges": false,
"manifestRootsToUpdate": ["{projectRoot}"],
"versionActionsOptions": {
"skipLockFileUpdate": true
}
}
},
"targetDefaults": {
"cleanup-tsconfig": {
"executor": "nx:run-commands",
"options": {
"command": "node ./scripts/cleanup-tsconfig-files.js dist/packages/{projectName}"
}
},
"build": {
"dependsOn": ["^build", "typecheck", "build-base"],
"inputs": ["production", "^production"],
"cache": true
},
"@nx/esbuild:esbuild": {
"cache": true,
"dependsOn": ["^build", "typecheck", "build-base"],
"inputs": [
"production",
"^production",
{
"json": "{workspaceRoot}/tsconfig.json",
"fields": ["extends", "files", "include"]
}
]
},
"build-native": {
"inputs": ["native"],
"cache": true
},
"build-base": {
"dependsOn": ["^build-base", "build-native", "copy-assets"],
"cache": true
},
"test-native": {
"inputs": ["native", "{projectRoot}/**/*.snap"],
"executor": "@monodon/rust:test",
"options": {},
"cache": true
},
"test": {
"dependsOn": ["test-native", "build-native", "^build-native"],
"options": {
"args": ["--passWithNoTests", "--detectOpenHandles", "--forceExit"],
"env": {
"NODE_OPTIONS": "--experimental-vm-modules"
}
}
},
"lint": {
"dependsOn": ["build-native", "^build-native", "build"],
"inputs": [
"...",
{
"dependentTasksOutputFiles": "**/*.{js,json,md}"
}
],
"options": {
"max-warnings": 5
}
},
"e2e": {
"cache": true,
"inputs": ["e2eInputs", "^production"]
},
"e2e-local": {
"cache": true,
"inputs": ["e2eInputs", "^production"],
"dependsOn": [
"@nx/nx-source:populate-local-registry-storage",
"@nx/nx-source:local-registry"
]
},
"e2e-ci": {
"inputs": ["e2eInputs", "^production"]
},
"e2e-macos-local": {
"cache": true,
"inputs": ["e2eInputs", "^production"],
"dependsOn": [
"@nx/nx-source:populate-local-registry-storage",
"@nx/nx-source:local-registry"
]
},
"e2e-macos-ci": {
"inputs": ["e2eInputs", "^production"]
},
"e2e-ci--**/**": {
"inputs": ["e2eInputs", "^production"],
"dependsOn": [
"@nx/nx-source:populate-local-registry-storage",
"@nx/nx-source:local-registry"
],
"options": {
"args": ["--forceExit"]
}
},
"e2e-macos-ci--**/*": {
"inputs": ["e2eInputs", "^production"],
"dependsOn": [
"@nx/nx-source:populate-local-registry-storage",
"@nx/nx-source:local-registry"
]
},
"e2e-base": {
"inputs": ["default", "^production"]
},
"build-storybook": {
"inputs": [
"default",
"^production",
"{workspaceRoot}/.storybook/**/*",
"{projectRoot}/.storybook/**/*",
"{projectRoot}/tsconfig.storybook.json"
],
"cache": true
},
"build-ng": {
"cache": true
},
"sitemap": {
"cache": true
},
"copy-docs": {
"cache": true
}
},
"plugins": [
"./tools/workspace-plugin/src/plugins/copy-assets-plugin.ts",
"@monodon/rust",
{
"plugin": "@nx/vite/plugin",
"include": [
"packages/angular-rspack-compiler/**",
"packages/angular-rspack/**"
]
},
{
"plugin": "@nx/vite/plugin",
"include": ["astro-docs/**"]
},
{
"plugin": "@nx/js/typescript",
"exclude": ["examples/angular-rspack/**/*", "nx-dev/**/*", "e2e/**/*"],
"options": {
"typecheck": true,
"build": {
"targetName": "build-base"
},
"compiler": "tsgo"
}
},
{
"plugin": "@nx/js/typescript",
"include": ["e2e/**/*", "nx-dev/ui-fence/**/*"],
"options": {
"typecheck": true,
"build": false,
"compiler": "tsgo"
}
},
{
"plugin": "@nx/playwright/plugin",
"options": {
"targetName": "pw-e2e",
"ciTargetName": "e2e-ci"
}
},
{
"plugin": "@nx/eslint/plugin",
"exclude": ["packages/**/__fixtures__/**/*"],
"options": {
"targetName": "lint"
}
},
{
"plugin": "@nx/jest/plugin",
"exclude": [
"e2e/**/*",
"packages/**/__fixtures__/**/*",
"jest.config.ts"
],
"options": {
"targetName": "test"
}
},
{
"plugin": "@nx/webpack/plugin",
"options": {
"serveTargetName": "serve-base",
"buildTargetName": "build-client"
}
},
{
"plugin": "@nx/jest/plugin",
"include": ["e2e/**/*"],
"exclude": ["e2e/detox/**/*", "e2e/react-native/**/*", "e2e/expo/**/*"],
"options": {
"targetName": "e2e-local",
"ciTargetName": "e2e-ci"
}
},
{
"plugin": "@nx/jest/plugin",
"include": ["e2e/detox/**/*", "e2e/react-native/**/*", "e2e/expo/**/*"],
"options": {
"targetName": "e2e-macos-local",
"ciTargetName": "e2e-macos-ci"
}
},
{
"plugin": "@nx/next/plugin",
"options": {
"startTargetName": "next:start",
"buildTargetName": "next:build",
"devTargetName": "dev",
"serveStaticTargetName": "serve-static"
}
},
{
"plugin": "@nx/gradle",
"options": {
"targetNamePrefix": "gradle:",
"ciTestTargetName": "test-ci"
},
"exclude": ["packages/react-native/src/generators/application/files/**/*"]
},
{
"plugin": "@nx/dotnet",
"options": {
"build": {
"targetName": "build:dotnet"
},
"test": {
"targetName": "test-native"
}
}
},
{
"plugin": "@nx/storybook/plugin",
"options": {
"serveStorybookTargetName": "serve:storybook",
"buildStorybookTargetName": "build:storybook",
"testStorybookTargetName": "test-storybook",
"staticStorybookTargetName": "static:storybook"
}
},
{
"plugin": "@nx/rspack/plugin",
"include": ["examples/angular-rspack/**"],
"options": {
"buildTargetName": "build",
"serveTargetName": "serve",
"previewTargetName": "preview",
"buildDepsTargetName": "build-deps",
"watchDepsTargetName": "watch-deps"
}
},
{
"plugin": "@nx/vitest",
"options": {
"testTargetName": "test"
},
"include": [
"packages/angular-rspack-compiler/**",
"packages/angular-rspack/**"
]
},
{
"plugin": "@nx/vitest",
"options": {
"testTargetName": "vite:test"
},
"include": ["astro-docs/**"]
}
],
"nxCloudId": "62d013ea0852fe0a2df74438",
"nxCloudUrl": "https://staging.nx.app",
"parallel": 1,
"bust": 3237,
"defaultBase": "master",
"sync": {
"applyChanges": true
},
"conformance": {
"rules": [
{
"rule": "./tools/workspace-plugin/dist/src/conformance-rules/project-package-json",
"projects": [
"!.",
"!create-nx-*",
"!cypress",
"!detox",
"!devkit",
"!esbuild",
"!eslint-plugin",
"!eslint",
"!expo",
"!express",
"!jest",
"!js",
"!module-federation",
"!nest",
"!next",
"!node",
"!nuxt",
"!packages/nx/**",
"!plugin",
"!react-native",
"!react",
"!rollup",
"!rsbuild",
"!rspack",
"!storybook",
"!vue",
"!web",
"!webpack",
"!workspace"
]
},
{
"rule": "./tools/workspace-plugin/dist/src/conformance-rules/migration-groups",
"options": {
"versionRange": ">= 19.8",
"groups": [
["angular-eslint"],
[
"@angular-eslint/eslint-plugin",
"@angular-eslint/eslint-plugin-template",
"@angular-eslint/template-parser",
"@angular-eslint/utils",
"@angular-eslint/schematics",
"@angular-eslint/test-utils",
"@angular-eslint/builder",
"@angular-eslint/bundled-angular-compiler"
],
[
"typescript-eslint",
"@typescript-eslint/eslint-plugin",
"@typescript-eslint/parser",
"@typescript-eslint/utils",
"@typescript-eslint/rule-tester",
"@typescript-eslint/scope-manager",
"@typescript-eslint/typescript-estree"
],
[
"@storybook/addon-onboarding",
"@storybook/addon-themes",
"@storybook/angular",
"@storybook/builder-webpack5",
"@storybook/core-webpack",
"@storybook/html",
"@storybook/html-vite",
"@storybook/nextjs",
"@storybook/preact",
"@storybook/preact-vite",
"@storybook/react",
"@storybook/react-vite",
"@storybook/react-webpack5",
"@storybook/server",
"@storybook/server-webpack5",
"@storybook/svelte",
"@storybook/svelte-vite",
"@storybook/sveltekit",
"@storybook/vue3",
"@storybook/vue3-vite",
"@storybook/web-components",
"@storybook/web-components-vite"
]
]
}
},
{
"rule": "./tools/workspace-plugin/dist/src/conformance-rules/no-ignored-tracked-files"
},
{
"rule": "./tools/workspace-plugin/dist/src/conformance-rules/codeblock-language"
},
{
"rule": "./tools/workspace-plugin/dist/src/conformance-rules/relative-image-imports"
},
{
"rule": "./tools/workspace-plugin/dist/src/conformance-rules/types-versions-exports-sync"
},
{
"rule": "./tools/workspace-plugin/dist/src/conformance-rules/env-vars-documented",
"options": {
"ignore": [
"NX_ANALYTICS_SESSION_ID",
"NX_FORKED_TASK_EXECUTOR",
"NX_RUN_COMMANDS_DIRECTLY",
"NX_DAEMON_PROCESS",
"NX_IPC_CHANNEL_ID",
"NX_PSEUDO_TERMINAL_EXEC_ARGV",
"NX_GENERATE_DOCS_PROCESS",
"NX_RELEASE_INTERNAL_SUPPRESS_FILTER_LOG",
"NX_WORKSPACE_ROOT_PATH",
"NX_IMPORT_SOURCE",
"NX_IMPORT_DESTINATION",
"NX_PROJECT_GRAPH_CACHE_DIRECTORY",
"NX_CONSOLE",
"NX_DEBUG_TELEMETRY",
"NX_TUI_INLINE_MODE",
"NX_TUI_SKIP_CAPABILITY_CHECK",
"NX_SKIP_CHECK_REMOTE",
"NX_CLI_SET",
"NX_WORKSPACE_ROOT",
"NX_TERMINAL_OUTPUT_PATH",
"NX_TERMINAL_CAPTURE_STDERR",
"NX_VERSION",
"NX_STREAM_OUTPUT",
"NX_PREFIX_OUTPUT",
"NX_INFER_ALL_PACKAGE_JSONS",
"NX_AI_FILES_USE_LOCAL",
"NX_WINDOWS_PTY_SUPPORT"
]
}
}
]
},
"analytics": true
}