From 97f42b2cbc01905636117c324fcb3f5c656efc1c Mon Sep 17 00:00:00 2001 From: Petr Plenkov Date: Sun, 19 Apr 2026 14:22:24 +0200 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/69e4c8dd30008a526b4353f2/workspaces/69e4c8fd4679d3b4b2845b26 > [!TIP] > Run `npx nx generate ci-workflow` if you don't have a CI script configured yet. **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 | 77 +++++++++++++-------------------------------------------- 1 file changed, 17 insertions(+), 60 deletions(-) diff --git a/nx.json b/nx.json index b0cca239..b9bda1bb 100644 --- a/nx.json +++ b/nx.json @@ -1,10 +1,8 @@ { "$schema": "./node_modules/nx/schemas/nx-schema.json", "defaultBase": "main", - "nxCloudId": "69ab0980542defed8d2aa8f4", - "cli": { - "packageManager": "bun" - }, + "nxCloudId": "69e4c8fd4679d3b4b2845b26", + "cli": { "packageManager": "bun" }, "namedInputs": { "default": ["{projectRoot}/**/*", "sharedGlobals"], "production": [ @@ -22,49 +20,25 @@ "sharedGlobals": [] }, "pluginsConfig": { - "@nx/js": { - "analyzeSourceFiles": true, - "analyzePackageJson": true - } + "@nx/js": { "analyzeSourceFiles": true, "analyzePackageJson": true } }, "plugins": [ { "plugin": "@nx/js/typescript", "options": { - "typecheck": { - "targetName": "typecheck" - }, - "build": { - "targetName": "build", - "configName": "tsconfig.lib.json" - } + "typecheck": { "targetName": "typecheck" }, + "build": { "targetName": "build", "configName": "tsconfig.lib.json" } }, "exclude": ["packages/xmld/*"] }, - { - "plugin": "./tools/nx-tsdown/src/index.ts" - }, - { - "plugin": "./tools/nx-vitest/src/index.ts" - }, - { - "plugin": "@nx/vite/plugin", - "exclude": ["**/*"] - }, - { - "plugin": "@nx/eslint/plugin", - "options": { - "targetName": "lint" - } - }, + { "plugin": "./tools/nx-tsdown/src/index.ts" }, + { "plugin": "./tools/nx-vitest/src/index.ts" }, + { "plugin": "@nx/vite/plugin", "exclude": ["**/*"] }, + { "plugin": "@nx/eslint/plugin", "options": { "targetName": "lint" } }, { "plugin": "@nx/js/typescript", "include": ["packages/xmld/*"], - "options": { - "typecheck": { - "targetName": "typecheck" - } - } + "options": { "typecheck": { "targetName": "typecheck" } } } ], "release": { @@ -77,9 +51,7 @@ }, "changelog": { "automaticFromRef": true, - "workspaceChangelog": { - "createRelease": "github" - }, + "workspaceChangelog": { "createRelease": "github" }, "projectChangelogs": true }, "git": { @@ -88,12 +60,8 @@ } }, "targetDefaults": { - "build": { - "dependsOn": ["^build"] - }, - "_nx-release-publish": { - "dependsOn": ["build"] - }, + "build": { "dependsOn": ["^build"] }, + "_nx-release-publish": { "dependsOn": ["build"] }, "@nx/js:swc": { "cache": true, "dependsOn": ["^build"], @@ -102,15 +70,8 @@ "@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/js:tsc": { "cache": true, @@ -130,11 +91,7 @@ "{workspaceRoot}/tools/eslint-rules/**/*" ] }, - "test": { - "dependsOn": ["^build"] - } + "test": { "dependsOn": ["^build"] } }, - "tui": { - "enabled": false - } + "tui": { "enabled": false } }