From 120bce218a96170ef0ea3536898a2d1b1ebda256 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 | 70 ++++++++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 55 insertions(+), 15 deletions(-) diff --git a/nx.json b/nx.json index 1e4416f8..dd67d647 100644 --- a/nx.json +++ b/nx.json @@ -2,13 +2,22 @@ "$schema": "./node_modules/nx/schemas/nx-schema.json", "targetDefaults": { "build": { - "dependsOn": ["^build"], - "inputs": ["production", "^production"], + "dependsOn": [ + "^build" + ], + "inputs": [ + "production", + "^production" + ], "cache": true }, "@nx/jest:jest": { "cache": true, - "inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"], + "inputs": [ + "default", + "^production", + "{workspaceRoot}/jest.preset.js" + ], "options": { "passWithNoTests": true }, @@ -20,26 +29,45 @@ } }, "@nx/eslint:lint": { - "inputs": ["default", "{workspaceRoot}/.eslintrc.json"], + "inputs": [ + "default", + "{workspaceRoot}/.eslintrc.json" + ], "cache": true }, "@nx/js:tsc": { "cache": true, - "dependsOn": ["^build"], - "inputs": ["production", "^production"] + "dependsOn": [ + "^build" + ], + "inputs": [ + "production", + "^production" + ] }, "@nx/vite:build": { "cache": true, - "dependsOn": ["^build"], - "inputs": ["production", "^production"] + "dependsOn": [ + "^build" + ], + "inputs": [ + "production", + "^production" + ] }, "@nx/vite:test": { "cache": true, - "inputs": ["default", "^production"] + "inputs": [ + "default", + "^production" + ] } }, "namedInputs": { - "default": ["{projectRoot}/**/*", "sharedGlobals"], + "default": [ + "{projectRoot}/**/*", + "sharedGlobals" + ], "production": [ "default", "!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)", @@ -48,7 +76,9 @@ "!{projectRoot}/.eslintrc.json", "!{projectRoot}/src/test-setup.[jt]s" ], - "sharedGlobals": ["{workspaceRoot}/babel.config.json"] + "sharedGlobals": [ + "{workspaceRoot}/babel.config.json" + ] }, "generators": { "@nx/web:application": { @@ -69,7 +99,14 @@ "plugin": "@nx/eslint/plugin", "options": { "targetName": "lint", - "extensions": ["ts", "tsx", "js", "jsx", "html", "vue"] + "extensions": [ + "ts", + "tsx", + "js", + "jsx", + "html", + "vue" + ] } }, { @@ -96,7 +133,10 @@ "options": { "targetName": "benchmark" }, - "include": ["apps/run/**/*"] + "include": [ + "apps/run/**/*" + ] } - ] -} + ], + "nxCloudId": "670fcae292f509d0a4f1d01c" +} \ No newline at end of file