Skip to content

Commit

Permalink
feat(nx-cloud): setup nx cloud workspace
Browse files Browse the repository at this point in the history
    
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/67422b77695a61db2104d71b/workspaces/67422b8f695a61db2104d71d

**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.
  • Loading branch information
paustint committed Nov 23, 2024
1 parent 9b236dc commit 69a829b
Showing 1 changed file with 26 additions and 126 deletions.
152 changes: 26 additions & 126 deletions nx.json
Original file line number Diff line number Diff line change
@@ -1,98 +1,27 @@
{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"tasksRunnerOptions": {
"default": {
"options": {
"canTrackAnalytics": true,
"showUsageWarnings": true
}
}
},
"tasksRunnerOptions": { "default": { "options": { "canTrackAnalytics": true, "showUsageWarnings": true } } },
"defaultProject": "jetstream",
"generators": {
"@nrwl/nest": {
"application": {
"linter": "eslint"
}
},
"@nx/web:application": {
"style": "css",
"linter": "eslint",
"unitTestRunner": "jest",
"e2eTestRunner": "none"
},
"@nx/web:library": {
"style": "css",
"linter": "eslint",
"unitTestRunner": "jest"
},
"@nx/workspace": {
"library": {
"linter": "eslint"
}
},
"@nx/web": {
"application": {
"linter": "eslint"
}
},
"@nx/node": {
"application": {
"linter": "eslint"
},
"library": {
"linter": "eslint"
}
},
"@nx/express": {
"application": {
"linter": "eslint"
},
"library": {
"linter": "eslint"
}
},
"@nx/plugin": {
"plugin": {
"linter": "eslint"
}
},
"@nrwl/nest": { "application": { "linter": "eslint" } },
"@nx/web:application": { "style": "css", "linter": "eslint", "unitTestRunner": "jest", "e2eTestRunner": "none" },
"@nx/web:library": { "style": "css", "linter": "eslint", "unitTestRunner": "jest" },
"@nx/workspace": { "library": { "linter": "eslint" } },
"@nx/web": { "application": { "linter": "eslint" } },
"@nx/node": { "application": { "linter": "eslint" }, "library": { "linter": "eslint" } },
"@nx/express": { "application": { "linter": "eslint" }, "library": { "linter": "eslint" } },
"@nx/plugin": { "plugin": { "linter": "eslint" } },
"@nx/react": {
"application": {
"babel": true,
"style": "@emotion/styled",
"linter": "eslint",
"bundler": "vite"
},
"library": {
"style": "@emotion/styled",
"linter": "eslint",
"unitTestRunner": "jest"
},
"storybook-configuration": {
"linter": "eslint"
},
"component": {
"style": "@emotion/styled"
}
"application": { "babel": true, "style": "@emotion/styled", "linter": "eslint", "bundler": "vite" },
"library": { "style": "@emotion/styled", "linter": "eslint", "unitTestRunner": "jest" },
"storybook-configuration": { "linter": "eslint" },
"component": { "style": "@emotion/styled" }
},
"@nx/next": {
"application": {
"style": "scss",
"linter": "eslint"
}
}
"@nx/next": { "application": { "style": "scss", "linter": "eslint" } }
},
"targetDefaults": {
"build": {
"dependsOn": ["^build"],
"inputs": ["production", "^production"],
"cache": true
},
"e2e": {
"inputs": ["default", "^production"],
"cache": true
},
"build": { "dependsOn": ["^build"], "inputs": ["production", "^production"], "cache": true },
"e2e": { "inputs": ["default", "^production"], "cache": true },
"build-storybook": {
"inputs": [
"default",
Expand All @@ -102,40 +31,20 @@
"{projectRoot}/tsconfig.storybook.json"
]
},
"e2e-ci": {
"cache": true
},
"e2e-ci": { "cache": true },
"@nx/jest:jest": {
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"],
"cache": true,
"options": {
"passWithNoTests": true
},
"configurations": {
"ci": {
"ci": true,
"codeCoverage": true
}
}
"options": { "passWithNoTests": true },
"configurations": { "ci": { "ci": true, "codeCoverage": true } }
},
"@nx/eslint:lint": {
"cache": true,
"inputs": ["default", "{workspaceRoot}/.eslintrc.json", "{workspaceRoot}/tools/eslint-rules/**/*"]
},
"@nx/vite:test": {
"cache": true,
"inputs": ["default", "^production"]
},
"@nx/vite:build": {
"cache": true,
"dependsOn": ["^build"],
"inputs": ["production", "^production"]
},
"@nx/js:tsc": {
"cache": true,
"dependsOn": ["^build"],
"inputs": ["production", "^production"]
}
"@nx/vite:test": { "cache": true, "inputs": ["default", "^production"] },
"@nx/vite:build": { "cache": true, "dependsOn": ["^build"], "inputs": ["production", "^production"] },
"@nx/js:tsc": { "cache": true, "dependsOn": ["^build"], "inputs": ["production", "^production"] }
},
"namedInputs": {
"default": ["{projectRoot}/**/*", "sharedGlobals"],
Expand All @@ -162,20 +71,11 @@
"plugins": [
{
"plugin": "@nx/next/plugin",
"options": {
"buildTargetName": "build",
"devTargetName": "dev",
"startTargetName": "start",
"serveStaticTargetName": "serve-static"
}
"options": { "buildTargetName": "build", "devTargetName": "dev", "startTargetName": "start", "serveStaticTargetName": "serve-static" }
},
{
"plugin": "@nx/eslint/plugin",
"options": {
"targetName": "lint"
}
}
{ "plugin": "@nx/eslint/plugin", "options": { "targetName": "lint" } }
],
"defaultBase": "main",
"useLegacyCache": true
"useLegacyCache": true,
"nxCloudId": "67422b8f695a61db2104d71d"
}

0 comments on commit 69a829b

Please sign in to comment.