From 3b17714a9e8fd04632bc246e4226e90b85111bd8 Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Wed, 16 Oct 2024 16:17:08 +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/670fcaceb56d70b74ae45903/workspaces/670fcae292f509d0a4f1d01c **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 | 72 +++++++++++---------------------------------------------- 1 file changed, 14 insertions(+), 58 deletions(-) diff --git a/nx.json b/nx.json index 1e4416f8..edd4a561 100644 --- a/nx.json +++ b/nx.json @@ -1,42 +1,17 @@ { "$schema": "./node_modules/nx/schemas/nx-schema.json", "targetDefaults": { - "build": { - "dependsOn": ["^build"], - "inputs": ["production", "^production"], - "cache": true - }, + "build": { "dependsOn": ["^build"], "inputs": ["production", "^production"], "cache": true }, "@nx/jest:jest": { "cache": true, "inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"], - "options": { - "passWithNoTests": true - }, - "configurations": { - "ci": { - "ci": true, - "codeCoverage": true - } - } - }, - "@nx/eslint:lint": { - "inputs": ["default", "{workspaceRoot}/.eslintrc.json"], - "cache": true - }, - "@nx/js:tsc": { - "cache": true, - "dependsOn": ["^build"], - "inputs": ["production", "^production"] - }, - "@nx/vite:build": { - "cache": true, - "dependsOn": ["^build"], - "inputs": ["production", "^production"] + "options": { "passWithNoTests": true }, + "configurations": { "ci": { "ci": true, "codeCoverage": true } } }, - "@nx/vite:test": { - "cache": true, - "inputs": ["default", "^production"] - } + "@nx/eslint:lint": { "inputs": ["default", "{workspaceRoot}/.eslintrc.json"], "cache": true }, + "@nx/js:tsc": { "cache": true, "dependsOn": ["^build"], "inputs": ["production", "^production"] }, + "@nx/vite:build": { "cache": true, "dependsOn": ["^build"], "inputs": ["production", "^production"] }, + "@nx/vite:test": { "cache": true, "inputs": ["default", "^production"] } }, "namedInputs": { "default": ["{projectRoot}/**/*", "sharedGlobals"], @@ -51,32 +26,18 @@ "sharedGlobals": ["{workspaceRoot}/babel.config.json"] }, "generators": { - "@nx/web:application": { - "style": "css", - "linter": "eslint", - "unitTestRunner": "vitest", - "e2eTestRunner": "none" - }, - "@nx/web:library": { - "style": "css", - "linter": "eslint", - "unitTestRunner": "vitest" - } + "@nx/web:application": { "style": "css", "linter": "eslint", "unitTestRunner": "vitest", "e2eTestRunner": "none" }, + "@nx/web:library": { "style": "css", "linter": "eslint", "unitTestRunner": "vitest" } }, "defaultBase": "master", "plugins": [ { "plugin": "@nx/eslint/plugin", - "options": { - "targetName": "lint", - "extensions": ["ts", "tsx", "js", "jsx", "html", "vue"] - } + "options": { "targetName": "lint", "extensions": ["ts", "tsx", "js", "jsx", "html", "vue"] } }, { "plugin": "@nx/jest/plugin", - "options": { - "targetName": "test" - }, + "options": { "targetName": "test" }, "include": [ "apps/fetcher/**/*", "apps/fxc-front/**/*", @@ -91,12 +52,7 @@ "libs/windy-sounding/**/*" ] }, - { - "plugin": "@nx/jest/plugin", - "options": { - "targetName": "benchmark" - }, - "include": ["apps/run/**/*"] - } - ] + { "plugin": "@nx/jest/plugin", "options": { "targetName": "benchmark" }, "include": ["apps/run/**/*"] } + ], + "nxCloudId": "670fcae292f509d0a4f1d01c" }