From 43dc649fe041cbb6cdd904e939571b17d5bac7af Mon Sep 17 00:00:00 2001 From: XAVIERMP <110884154+XavierMP14@users.noreply.github.com> Date: Fri, 5 Sep 2025 06:41:44 -0600 Subject: [PATCH] feat(nx-cloud): setup nx cloud workspace This commit sets up Nx Cloud for your Nx workspace, enabling distributed caching and the Nx Cloud GitHub integration for fast CI and improved developer experience. You can access your Nx Cloud workspace by going to https://cloud.nx.app/orgs/68bada77c566ce8fa0e9ced8/workspaces/68bada86c566ce8fa0e9cedb **Note:** This commit attempts to maintain formatting of the nx.json file, however you may need to correct formatting by running an nx format command and committing the changes. --- nx.json | 138 +++++++++++++------------------------------------------- 1 file changed, 32 insertions(+), 106 deletions(-) diff --git a/nx.json b/nx.json index eb7571c80b550..3058fd459f8ff 100644 --- a/nx.json +++ b/nx.json @@ -21,15 +21,9 @@ "native": [ "{projectRoot}/**/*.rs", "{projectRoot}/**/Cargo.*", - { - "runtime": "node -p '`${process.platform}_${process.arch}`'" - }, - { - "runtime": "rustc --version" - }, - { - "externalDependencies": ["npm:@monodon/rust", "npm:@napi-rs/cli"] - } + { "runtime": "node -p '`${process.platform}_${process.arch}`'" }, + { "runtime": "rustc --version" }, + { "externalDependencies": ["npm:@monodon/rust", "npm:@napi-rs/cli"] } ], "e2eInputs": [ "default", @@ -37,49 +31,26 @@ "{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" - } + { "env": "SELECTED_CLI" }, + { "env": "SELECTED_PM" }, + { "env": "NX_E2E_CI_CACHE_KEY" }, + { "env": "CI" }, + { "env": "NX_E2E_RUN_E2E" } ] }, "release": { "projects": ["packages/*", "packages/nx/native-packages/*"], "releaseTagPattern": "{version}", "changelog": { - "workspaceChangelog": { - "createRelease": "github", - "file": false - }, - "git": { - "commit": false, - "stageChanges": false, - "tag": false - } + "workspaceChangelog": { "createRelease": "github", "file": false }, + "git": { "commit": false, "stageChanges": false, "tag": false } }, "version": { - "git": { - "commit": false, - "stageChanges": false, - "tag": false - }, + "git": { "commit": false, "stageChanges": false, "tag": false }, "currentVersionResolver": "registry", "preserveLocalDependencyProtocols": false, "manifestRootsToUpdate": ["dist/packages/{projectName}"], - "versionActionsOptions": { - "skipLockFileUpdate": true - } + "versionActionsOptions": { "skipLockFileUpdate": true } } }, "targetDefaults": { @@ -90,9 +61,7 @@ } }, "nx-release-publish": { - "options": { - "packageRoot": "dist/packages/{projectName}" - } + "options": { "packageRoot": "dist/packages/{projectName}" } }, "build": { "dependsOn": [ @@ -105,10 +74,7 @@ "inputs": ["production", "^production"], "cache": true }, - "build-native": { - "inputs": ["native"], - "cache": true - }, + "build-native": { "inputs": ["native"], "cache": true }, "build-base": { "dependsOn": ["^build-base", "build-native"], "inputs": ["production", "^production"], @@ -127,13 +93,8 @@ "args": ["--passWithNoTests", "--detectOpenHandles", "--forceExit"] } }, - "lint": { - "dependsOn": ["build-native", "^build-native"] - }, - "e2e": { - "cache": true, - "inputs": ["e2eInputs", "^production"] - }, + "lint": { "dependsOn": ["build-native", "^build-native"] }, + "e2e": { "cache": true, "inputs": ["e2eInputs", "^production"] }, "e2e-local": { "cache": true, "inputs": ["e2eInputs", "^production"], @@ -142,9 +103,7 @@ "@nx/nx-source:local-registry" ] }, - "e2e-ci": { - "inputs": ["e2eInputs", "^production"] - }, + "e2e-ci": { "inputs": ["e2eInputs", "^production"] }, "e2e-macos-local": { "cache": true, "inputs": ["e2eInputs", "^production"], @@ -153,9 +112,7 @@ "@nx/nx-source:local-registry" ] }, - "e2e-macos-ci": { - "inputs": ["e2eInputs", "^production"] - }, + "e2e-macos-ci": { "inputs": ["e2eInputs", "^production"] }, "e2e-ci--**/**": { "inputs": ["e2eInputs", "^production"], "dependsOn": [ @@ -170,9 +127,7 @@ "@nx/nx-source:local-registry" ] }, - "e2e-base": { - "inputs": ["default", "^production"] - }, + "e2e-base": { "inputs": ["default", "^production"] }, "build-storybook": { "inputs": [ "default", @@ -183,15 +138,9 @@ ], "cache": true }, - "build-ng": { - "cache": true - }, - "sitemap": { - "cache": true - }, - "copy-docs": { - "cache": true - }, + "build-ng": { "cache": true }, + "sitemap": { "cache": true }, + "copy-docs": { "cache": true }, "legacy-post-build": { "dependsOn": ["build-base"], "cache": true, @@ -207,33 +156,21 @@ "packages/angular-rspack-compiler/**", "packages/angular-rspack/**" ], - "options": { - "testTargetName": "test" - } + "options": { "testTargetName": "test" } }, { "plugin": "@nx/js/typescript", "exclude": ["examples/angular-rspack/**/*"], - "options": { - "typecheck": true, - "build": { - "targetName": "build-base" - } - } + "options": { "typecheck": true, "build": { "targetName": "build-base" } } }, { "plugin": "@nx/playwright/plugin", - "options": { - "targetName": "pw-e2e", - "ciTargetName": "e2e-ci" - } + "options": { "targetName": "pw-e2e", "ciTargetName": "e2e-ci" } }, { "plugin": "@nx/eslint/plugin", "exclude": ["packages/**/__fixtures__/**/*"], - "options": { - "targetName": "lint" - } + "options": { "targetName": "lint" } }, { "plugin": "@nx/jest/plugin", @@ -242,9 +179,7 @@ "packages/**/__fixtures__/**/*", "jest.config.ts" ], - "options": { - "targetName": "test" - } + "options": { "targetName": "test" } }, { "plugin": "@nx/webpack/plugin", @@ -257,10 +192,7 @@ "plugin": "@nx/jest/plugin", "include": ["e2e/**/*"], "exclude": ["e2e/detox/**/*", "e2e/react-native/**/*", "e2e/expo/**/*"], - "options": { - "targetName": "e2e-local", - "ciTargetName": "e2e-ci" - } + "options": { "targetName": "e2e-local", "ciTargetName": "e2e-ci" } }, { "plugin": "@nx/jest/plugin", @@ -301,29 +233,23 @@ } } ], - "nxCloudId": "62d013ea0852fe0a2df74438", + "nxCloudId": "68bada86c566ce8fa0e9cedb", "nxCloudUrl": "https://staging.nx.app", "parallel": 1, "bust": 1, "defaultBase": "master", - "sync": { - "applyChanges": true - }, + "sync": { "applyChanges": true }, "conformance": { "rules": [ { "rule": "./tools/workspace-plugin/src/conformance-rules/blog-description", "projects": ["docs"], - "options": { - "mdGlobPattern": "{blog,shared}/**/!(sitemap).md" - } + "options": { "mdGlobPattern": "{blog,shared}/**/!(sitemap).md" } }, { "rule": "./tools/workspace-plugin/src/conformance-rules/blog-cover-image", "projects": ["docs"], - "options": { - "mdGlobPattern": "blog/**/!(sitemap).md" - } + "options": { "mdGlobPattern": "blog/**/!(sitemap).md" } }, { "rule": "./tools/workspace-plugin/src/conformance-rules/project-package-json",