From 1d586f0e5ec7dd47e8f8a19026f4ecfc8ed2920e Mon Sep 17 00:00:00 2001 From: Dharmesh Date: Tue, 5 Nov 2024 20:24:22 +0530 Subject: [PATCH] feat(nx-cloud): setup nx workspace (#462) 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/64fde86e9ef0668418b84bea/workspaces/672a30de5dd6176980bcbdbf **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 | 86 ++++++++++++--------------------------------------------- 1 file changed, 17 insertions(+), 69 deletions(-) diff --git a/nx.json b/nx.json index 0468dba4..cf9451d9 100644 --- a/nx.json +++ b/nx.json @@ -2,45 +2,18 @@ "$schema": "./node_modules/nx/schemas/nx-schema.json", "neverConnectToCloud": true, "targetDefaults": { - "build": { - "dependsOn": ["^build"], - "inputs": ["production", "^production"], - "cache": true - }, - "e2e": { - "inputs": ["default", "^production"], - "cache": true - }, - "@nx/eslint:lint": { - "inputs": ["default", "{workspaceRoot}/.eslintrc.json", "{workspaceRoot}/.eslintignore"], - "cache": true - }, - "package": { - "cache": true - }, + "build": { "dependsOn": ["^build"], "inputs": ["production", "^production"], "cache": true }, + "e2e": { "inputs": ["default", "^production"], "cache": true }, + "@nx/eslint:lint": { "inputs": ["default", "{workspaceRoot}/.eslintrc.json", "{workspaceRoot}/.eslintignore"], "cache": true }, + "package": { "cache": true }, "@nx/jest:jest": { "cache": true, "inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"], - "options": { - "passWithNoTests": true - }, - "configurations": { - "ci": { - "ci": true, - "codeCoverage": true - } - } - }, - "@nx/js:tsc": { - "cache": true, - "dependsOn": ["^build"], - "inputs": ["production", "^production"] + "options": { "passWithNoTests": true }, + "configurations": { "ci": { "ci": true, "codeCoverage": true } } }, - "@nx/js:swc": { - "cache": true, - "dependsOn": ["^build"], - "inputs": ["production", "^production"] - } + "@nx/js:tsc": { "cache": true, "dependsOn": ["^build"], "inputs": ["production", "^production"] }, + "@nx/js:swc": { "cache": true, "dependsOn": ["^build"], "inputs": ["production", "^production"] } }, "namedInputs": { "default": ["{projectRoot}/**/*", "sharedGlobals"], @@ -56,34 +29,15 @@ }, "generators": { "@nx/react": { - "application": { - "babel": true, - "style": "scss", - "linter": "eslint", - "bundler": "webpack" - }, - "component": { - "style": "scss" - }, - "library": { - "style": "scss", - "linter": "eslint", - "unitTestRunner": "jest" - } + "application": { "babel": true, "style": "scss", "linter": "eslint", "bundler": "webpack" }, + "component": { "style": "scss" }, + "library": { "style": "scss", "linter": "eslint", "unitTestRunner": "jest" } }, - "@nx/web:application": { - "style": "css", - "linter": "eslint", - "unitTestRunner": "jest", - "e2eTestRunner": "cypress" - } + "@nx/web:application": { "style": "css", "linter": "eslint", "unitTestRunner": "jest", "e2eTestRunner": "cypress" } }, "useInferencePlugins": false, "release": { - "git": { - "commitMessage": "chore(release): release ${version}", - "push": true - }, + "git": { "commitMessage": "chore(release): release ${version}", "push": true }, "projects": [ "core-common", "core-extension", @@ -111,14 +65,8 @@ "firebase-storage", "vision" ], - "changelog": { - "workspaceChangelog": { - "file": false, - "createRelease": "github" - } - }, - "version": { - "preVersionCommand": "npx nx run-many --targets=lint,test,build" - } - } + "changelog": { "workspaceChangelog": { "file": false, "createRelease": "github" } }, + "version": { "preVersionCommand": "npx nx run-many --targets=lint,test,build" } + }, + "nxCloudId": "672a30de5dd6176980bcbdbf" }