Skip to content

Commit 69a829b

Browse files
committed
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/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.
1 parent 9b236dc commit 69a829b

File tree

1 file changed

+26
-126
lines changed

1 file changed

+26
-126
lines changed

nx.json

Lines changed: 26 additions & 126 deletions
Original file line numberDiff line numberDiff line change
@@ -1,98 +1,27 @@
11
{
22
"$schema": "./node_modules/nx/schemas/nx-schema.json",
3-
"tasksRunnerOptions": {
4-
"default": {
5-
"options": {
6-
"canTrackAnalytics": true,
7-
"showUsageWarnings": true
8-
}
9-
}
10-
},
3+
"tasksRunnerOptions": { "default": { "options": { "canTrackAnalytics": true, "showUsageWarnings": true } } },
114
"defaultProject": "jetstream",
125
"generators": {
13-
"@nrwl/nest": {
14-
"application": {
15-
"linter": "eslint"
16-
}
17-
},
18-
"@nx/web:application": {
19-
"style": "css",
20-
"linter": "eslint",
21-
"unitTestRunner": "jest",
22-
"e2eTestRunner": "none"
23-
},
24-
"@nx/web:library": {
25-
"style": "css",
26-
"linter": "eslint",
27-
"unitTestRunner": "jest"
28-
},
29-
"@nx/workspace": {
30-
"library": {
31-
"linter": "eslint"
32-
}
33-
},
34-
"@nx/web": {
35-
"application": {
36-
"linter": "eslint"
37-
}
38-
},
39-
"@nx/node": {
40-
"application": {
41-
"linter": "eslint"
42-
},
43-
"library": {
44-
"linter": "eslint"
45-
}
46-
},
47-
"@nx/express": {
48-
"application": {
49-
"linter": "eslint"
50-
},
51-
"library": {
52-
"linter": "eslint"
53-
}
54-
},
55-
"@nx/plugin": {
56-
"plugin": {
57-
"linter": "eslint"
58-
}
59-
},
6+
"@nrwl/nest": { "application": { "linter": "eslint" } },
7+
"@nx/web:application": { "style": "css", "linter": "eslint", "unitTestRunner": "jest", "e2eTestRunner": "none" },
8+
"@nx/web:library": { "style": "css", "linter": "eslint", "unitTestRunner": "jest" },
9+
"@nx/workspace": { "library": { "linter": "eslint" } },
10+
"@nx/web": { "application": { "linter": "eslint" } },
11+
"@nx/node": { "application": { "linter": "eslint" }, "library": { "linter": "eslint" } },
12+
"@nx/express": { "application": { "linter": "eslint" }, "library": { "linter": "eslint" } },
13+
"@nx/plugin": { "plugin": { "linter": "eslint" } },
6014
"@nx/react": {
61-
"application": {
62-
"babel": true,
63-
"style": "@emotion/styled",
64-
"linter": "eslint",
65-
"bundler": "vite"
66-
},
67-
"library": {
68-
"style": "@emotion/styled",
69-
"linter": "eslint",
70-
"unitTestRunner": "jest"
71-
},
72-
"storybook-configuration": {
73-
"linter": "eslint"
74-
},
75-
"component": {
76-
"style": "@emotion/styled"
77-
}
15+
"application": { "babel": true, "style": "@emotion/styled", "linter": "eslint", "bundler": "vite" },
16+
"library": { "style": "@emotion/styled", "linter": "eslint", "unitTestRunner": "jest" },
17+
"storybook-configuration": { "linter": "eslint" },
18+
"component": { "style": "@emotion/styled" }
7819
},
79-
"@nx/next": {
80-
"application": {
81-
"style": "scss",
82-
"linter": "eslint"
83-
}
84-
}
20+
"@nx/next": { "application": { "style": "scss", "linter": "eslint" } }
8521
},
8622
"targetDefaults": {
87-
"build": {
88-
"dependsOn": ["^build"],
89-
"inputs": ["production", "^production"],
90-
"cache": true
91-
},
92-
"e2e": {
93-
"inputs": ["default", "^production"],
94-
"cache": true
95-
},
23+
"build": { "dependsOn": ["^build"], "inputs": ["production", "^production"], "cache": true },
24+
"e2e": { "inputs": ["default", "^production"], "cache": true },
9625
"build-storybook": {
9726
"inputs": [
9827
"default",
@@ -102,40 +31,20 @@
10231
"{projectRoot}/tsconfig.storybook.json"
10332
]
10433
},
105-
"e2e-ci": {
106-
"cache": true
107-
},
34+
"e2e-ci": { "cache": true },
10835
"@nx/jest:jest": {
10936
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"],
11037
"cache": true,
111-
"options": {
112-
"passWithNoTests": true
113-
},
114-
"configurations": {
115-
"ci": {
116-
"ci": true,
117-
"codeCoverage": true
118-
}
119-
}
38+
"options": { "passWithNoTests": true },
39+
"configurations": { "ci": { "ci": true, "codeCoverage": true } }
12040
},
12141
"@nx/eslint:lint": {
12242
"cache": true,
12343
"inputs": ["default", "{workspaceRoot}/.eslintrc.json", "{workspaceRoot}/tools/eslint-rules/**/*"]
12444
},
125-
"@nx/vite:test": {
126-
"cache": true,
127-
"inputs": ["default", "^production"]
128-
},
129-
"@nx/vite:build": {
130-
"cache": true,
131-
"dependsOn": ["^build"],
132-
"inputs": ["production", "^production"]
133-
},
134-
"@nx/js:tsc": {
135-
"cache": true,
136-
"dependsOn": ["^build"],
137-
"inputs": ["production", "^production"]
138-
}
45+
"@nx/vite:test": { "cache": true, "inputs": ["default", "^production"] },
46+
"@nx/vite:build": { "cache": true, "dependsOn": ["^build"], "inputs": ["production", "^production"] },
47+
"@nx/js:tsc": { "cache": true, "dependsOn": ["^build"], "inputs": ["production", "^production"] }
13948
},
14049
"namedInputs": {
14150
"default": ["{projectRoot}/**/*", "sharedGlobals"],
@@ -162,20 +71,11 @@
16271
"plugins": [
16372
{
16473
"plugin": "@nx/next/plugin",
165-
"options": {
166-
"buildTargetName": "build",
167-
"devTargetName": "dev",
168-
"startTargetName": "start",
169-
"serveStaticTargetName": "serve-static"
170-
}
74+
"options": { "buildTargetName": "build", "devTargetName": "dev", "startTargetName": "start", "serveStaticTargetName": "serve-static" }
17175
},
172-
{
173-
"plugin": "@nx/eslint/plugin",
174-
"options": {
175-
"targetName": "lint"
176-
}
177-
}
76+
{ "plugin": "@nx/eslint/plugin", "options": { "targetName": "lint" } }
17877
],
17978
"defaultBase": "main",
180-
"useLegacyCache": true
79+
"useLegacyCache": true,
80+
"nxCloudId": "67422b8f695a61db2104d71d"
18181
}

0 commit comments

Comments
 (0)