Skip to content

Commit 8fa0eaf

Browse files
chore: migrate nx to latest
1 parent 7ef5867 commit 8fa0eaf

File tree

14 files changed

+8980
-5839
lines changed

14 files changed

+8980
-5839
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,5 @@ Thumbs.db
4444
vite.config.*.timestamp*
4545
vitest.config.*.timestamp*
4646
test-output
47+
.cursor/rules/nx-rules.mdc
48+
.github/instructions/nx.instructions.md

eslint.config.cjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ module.exports = [
55
...nx.configs['flat/typescript'],
66
...nx.configs['flat/javascript'],
77
{
8-
ignores: ['**/dist'],
8+
ignores: [
9+
'**/dist',
10+
'**/vite.config.*.timestamp*',
11+
'**/vitest.config.*.timestamp*',
12+
],
913
},
1014
{
1115
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],

nx.json

Lines changed: 38 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,21 @@
1717
{
1818
"plugin": "@nx/js/typescript",
1919
"options": {
20-
"typecheck": { "targetName": "typecheck" },
21-
"build": { "targetName": "build", "configName": "tsconfig.lib.json" }
20+
"typecheck": {
21+
"targetName": "typecheck"
22+
},
23+
"build": {
24+
"targetName": "build",
25+
"configName": "tsconfig.lib.json"
26+
}
27+
}
28+
},
29+
{
30+
"plugin": "@nx/eslint/plugin",
31+
"options": {
32+
"targetName": "lint"
2233
}
2334
},
24-
{ "plugin": "@nx/eslint/plugin", "options": { "targetName": "lint" } },
2535
{
2636
"plugin": "@nx/webpack/plugin",
2737
"options": {
@@ -30,7 +40,12 @@
3040
"previewTargetName": "preview"
3141
}
3242
},
33-
{ "plugin": "@nx/playwright/plugin", "options": { "targetName": "e2e" } },
43+
{
44+
"plugin": "@nx/playwright/plugin",
45+
"options": {
46+
"targetName": "e2e"
47+
}
48+
},
3449
{
3550
"plugin": "@nx/rsbuild",
3651
"options": {
@@ -43,10 +58,19 @@
4358
}
4459
],
4560
"targetDefaults": {
46-
"@nx/vite:test": { "cache": true, "inputs": ["default", "^production"] },
47-
"e2e-ci--**/*": { "dependsOn": ["^build"] }
61+
"@nx/vite:test": {
62+
"cache": true,
63+
"inputs": ["default", "^production"]
64+
},
65+
"e2e-ci--**/*": {
66+
"dependsOn": ["^build"]
67+
}
68+
},
69+
"release": {
70+
"version": {
71+
"preVersionCommand": "npx nx run-many -t build"
72+
}
4873
},
49-
"release": { "version": { "preVersionCommand": "npx nx run-many -t build" } },
5074
"generators": {
5175
"@nx/react": {
5276
"application": {
@@ -55,8 +79,13 @@
5579
"linter": "eslint",
5680
"bundler": "webpack"
5781
},
58-
"component": { "style": "css" },
59-
"library": { "style": "css", "linter": "eslint" }
82+
"component": {
83+
"style": "css"
84+
},
85+
"library": {
86+
"style": "css",
87+
"linter": "eslint"
88+
}
6089
}
6190
}
6291
}

0 commit comments

Comments
 (0)