From d53870450f452880182ff265273f6fbe51dab422 Mon Sep 17 00:00:00 2001 From: beeman Date: Fri, 21 Jun 2024 23:25:19 +0200 Subject: [PATCH] feat(nx-cloud): setup nx cloud workspace 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/64f9f6349ef06684181b88d5/workspaces/6675efbd481cbf16cc3fdd5a **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. --- .gitignore | 3 ++- nx.json | 37 +++++++------------------------------ 2 files changed, 9 insertions(+), 31 deletions(-) diff --git a/.gitignore b/.gitignore index f5da755..10d400f 100644 --- a/.gitignore +++ b/.gitignore @@ -44,4 +44,5 @@ libs/anchor/target/.rustc_info.json !libs/anchor/target/idl/*.json !libs/anchor/target/types/*.ts test-ledger -.yarn \ No newline at end of file +.yarn +nx-cloud.env diff --git a/nx.json b/nx.json index a56788d..723afd6 100644 --- a/nx.json +++ b/nx.json @@ -1,44 +1,21 @@ { "$schema": "./node_modules/nx/schemas/nx-schema.json", - "workspaceLayout": { - "projectNameAndRootFormat": "as-provided" - }, + "workspaceLayout": { "projectNameAndRootFormat": "as-provided" }, "targetDefaults": { - "build": { - "dependsOn": ["^build"], - "cache": true - }, - "e2e": { - "cache": true - }, + "build": { "dependsOn": ["^build"], "cache": true }, + "e2e": { "cache": true }, "@nx/jest:jest": { "cache": true, "inputs": ["default", "^default", "{workspaceRoot}/jest.preset.js"], - "options": { - "passWithNoTests": true - }, - "configurations": { - "ci": { - "ci": true, - "codeCoverage": true - } - } + "options": { "passWithNoTests": true }, + "configurations": { "ci": { "ci": true, "codeCoverage": true } } }, "@nx/eslint:lint": { "inputs": ["default", "{workspaceRoot}/.eslintrc.json", "{workspaceRoot}/.eslintignore"], "cache": true } }, - "generators": { - "@nx/react": { - "application": { - "babel": true - }, - "library": { - "unitTestRunner": "none" - } - } - }, - "nxCloudAccessToken": "NWI4MDc3OTctOTgyZi00ZjhhLWI2NmMtMDM0N2NmNTc5OGZlfHJlYWQtd3JpdGU=", + "generators": { "@nx/react": { "application": { "babel": true }, "library": { "unitTestRunner": "none" } } }, + "nxCloudAccessToken": "MDZiODc0MDgtZjk3Zi00YmQyLTllNTktNWE1NjAzOGRiZWRmfHJlYWQ=", "useInferencePlugins": false }