Skip to content

Commit c43ef91

Browse files
nperez0111claude
andcommitted
chore: optimize nx configuration
Disable nx analytics and improve cache configuration for build:site, test, and e2e targets. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 1b79fb3 commit c43ef91

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

nx.json

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,26 +24,34 @@
2424
"build:site": {
2525
"cache": true,
2626
"dependsOn": ["^build"],
27-
"inputs": ["{workspaceRoot}/examples/**/*", "{projectRoot}/**/*"],
27+
"inputs": [
28+
"{workspaceRoot}/examples/**/*",
29+
"{projectRoot}/**/*",
30+
"!{projectRoot}/sqlite.db",
31+
"!{projectRoot}/.env*",
32+
"!{projectRoot}/validate-links.mjs",
33+
"!{projectRoot}/coverage/**/*"
34+
],
2835
"outputs": [
29-
"{projectRoot}/dist",
3036
"{projectRoot}/.next",
37+
"!{projectRoot}/.next/cache",
3138
"{projectRoot}/.source",
3239
"{projectRoot}/content/examples",
3340
"{projectRoot}/components/example/generated"
3441
]
3542
},
3643
"test": {
3744
"cache": true,
38-
"dependsOn": ["^test"]
45+
"dependsOn": ["build", "^build"]
3946
},
4047
"lint": {
4148
"cache": true,
4249
"dependsOn": []
4350
},
4451
"e2e": {
4552
"cache": true,
46-
"dependsOn": ["^e2e"]
53+
"dependsOn": ["build", "^build"]
4754
}
48-
}
55+
},
56+
"analytics": false
4957
}

0 commit comments

Comments
 (0)