Skip to content

Commit 8fcbbb4

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/6195684a2f082e00055e3c09/workspaces/691f769b1b6c37fb36143efb **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 f9d571b commit 8fcbbb4

1 file changed

Lines changed: 15 additions & 54 deletions

File tree

nx.json

Lines changed: 15 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,16 @@
1111
]
1212
},
1313
"targetDefaults": {
14-
"e2e-ci": {
15-
"dependsOn": ["^build"]
16-
},
17-
"nx-release-publish": {
18-
"options": {
19-
"packageRoot": "packages/{projectName}"
20-
}
21-
},
14+
"e2e-ci": { "dependsOn": ["^build"] },
15+
"nx-release-publish": { "options": { "packageRoot": "packages/{projectName}" } },
2216
"docs": {
2317
"dependsOn": ["build", "^build", "^docs"],
2418
"cache": true,
2519
"outputs": ["{projectRoot}/docs"]
2620
},
27-
"serve": {
28-
"cache": false,
29-
"dependsOn": ["^build"]
30-
},
31-
"e2e": {
32-
"dependsOn": ["^build"],
33-
"cache": true
34-
},
35-
"test": {
36-
"dependsOn": ["^build"]
37-
},
21+
"serve": { "cache": false, "dependsOn": ["^build"] },
22+
"e2e": { "dependsOn": ["^build"], "cache": true },
23+
"test": { "dependsOn": ["^build"] },
3824
"build": {
3925
"dependsOn": ["^build"],
4026
"inputs": ["production", "^production"],
@@ -46,30 +32,20 @@
4632
"outputs": ["{projectRoot}/coverage"],
4733
"cache": true
4834
},
49-
"@nx/eslint:lint": {
50-
"dependsOn": ["^build", "^lint"],
51-
"cache": true
52-
},
35+
"@nx/eslint:lint": { "dependsOn": ["^build", "^lint"], "cache": true },
5336
"@nx/vite:build": {
5437
"dependsOn": ["^build"],
5538
"inputs": ["production", "^production"],
5639
"cache": true,
5740
"outputs": ["{projectRoot}/dist"]
5841
},
59-
"@nx/playwright:run": {
60-
"dependsOn": ["^build"],
61-
"cache": true
62-
},
42+
"@nx/playwright:run": { "dependsOn": ["^build"], "cache": true },
6343
"@nx/esbuild:esbuild": {
6444
"inputs": ["production", "^production"],
6545
"dependsOn": ["^build"],
6646
"cache": true
6747
},
68-
"e2e-ci--**/*": {
69-
"inputs": ["default", "^default"],
70-
"dependsOn": ["^build"],
71-
"cache": true
72-
},
48+
"e2e-ci--**/*": { "inputs": ["default", "^default"], "dependsOn": ["^build"], "cache": true },
7349
"@nx/js:tsc": {
7450
"cache": true,
7551
"dependsOn": ["^build"],
@@ -78,10 +54,7 @@
7854
}
7955
},
8056
"parallel": 1,
81-
"workspaceLayout": {
82-
"appsDir": "",
83-
"libsDir": ""
84-
},
57+
"workspaceLayout": { "appsDir": "", "libsDir": "" },
8558
"release": {
8659
"projects": ["packages/*"],
8760
"releaseTagPattern": "v{version}",
@@ -93,31 +66,18 @@
9366
}
9467
},
9568
"changelog": {
96-
"git": {
97-
"commit": true,
98-
"tag": true
99-
},
100-
"workspaceChangelog": {
101-
"createRelease": "github"
102-
},
69+
"git": { "commit": true, "tag": true },
70+
"workspaceChangelog": { "createRelease": "github" },
10371
"projectChangelogs": true
10472
}
10573
},
10674
"plugins": [
10775
{
10876
"plugin": "@nx/playwright/plugin",
109-
"options": {
110-
"ciTargetName": "e2e-ci",
111-
"targetName": "e2e"
112-
},
77+
"options": { "ciTargetName": "e2e-ci", "targetName": "e2e" },
11378
"include": ["e2e/**/**/*"]
11479
},
115-
{
116-
"plugin": "@nx/eslint/plugin",
117-
"options": {
118-
"targetName": "lint"
119-
}
120-
},
80+
{ "plugin": "@nx/eslint/plugin", "options": { "targetName": "lint" } },
12181
{
12282
"plugin": "@nx/vite/plugin",
12383
"options": {
@@ -159,5 +119,6 @@
159119
"useDaemonProcess": true,
160120
"useInferencePlugins": true,
161121
"defaultBase": "develop",
162-
"useLegacyCache": true
122+
"useLegacyCache": true,
123+
"nxCloudId": "691f769b1b6c37fb36143efb"
163124
}

0 commit comments

Comments
 (0)