From 768711d2b85fcc828875217e824037455e90d706 Mon Sep 17 00:00:00 2001 From: Yann Thibodeau Date: Tue, 15 Oct 2024 21:48:24 -0400 Subject: [PATCH] feat(nx-cloud): setup nx cloud workspace (#94) This commit set up Nx Cloud for your Nx workspace enabling distributed caching and GitHub integration for fast CI and improved Developer Experience. You can access your Nx Cloud workspace by going to https://cloud.nx.app/orgs/61d312fe6b72bd00054227d4/workspaces/670f1a9222b1a18844d39578 **Note:** This commit attempts to maintain formatting of the nx.json, however you may need to correct formatting by running an nx format command and committing the changes. --- nx.json | 31 +++++++------------------------ 1 file changed, 7 insertions(+), 24 deletions(-) diff --git a/nx.json b/nx.json index 5d5972b..a9332c7 100644 --- a/nx.json +++ b/nx.json @@ -5,24 +5,17 @@ "runner": "nx-cloud", "options": { "cacheableOperations": ["build", "lint", "test", "e2e"], - "accessToken": "MjQ2ZjUxOTUtYWEyOS00M2I4LTg0NmUtOWZiYzY1OWFkMTUyfHJlYWQtd3JpdGU=" + "accessToken": "Y2FjNGUxZWQtYzgxNS00NjJhLTg0NTQtMTcyYTIxNzliZDVmfHJlYWQtd3JpdGU=" } } }, - "workspaceLayout": { - "projectNameAndRootFormat": "as-provided" - }, + "workspaceLayout": { "projectNameAndRootFormat": "as-provided" }, "targetDefaults": { - "build": { - "dependsOn": ["^build"], - "inputs": ["production", "^production"] - }, + "build": { "dependsOn": ["^build"], "inputs": ["production", "^production"] }, "lint": { "inputs": ["default", "{workspaceRoot}/.eslintrc.json", "{workspaceRoot}/.eslintignore", "{workspaceRoot}/eslint.config.js"] }, - "test": { - "inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"] - } + "test": { "inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"] } }, "namedInputs": { "default": ["{projectRoot}/**/*", "sharedGlobals"], @@ -40,19 +33,9 @@ }, "generators": { "@nx/react": { - "application": { - "style": "css", - "linter": "eslint", - "bundler": "rspack", - "babel": true - }, - "component": { - "style": "css" - }, - "library": { - "style": "css", - "linter": "eslint" - } + "application": { "style": "css", "linter": "eslint", "bundler": "rspack", "babel": true }, + "component": { "style": "css" }, + "library": { "style": "css", "linter": "eslint" } } } }