Skip to content

Commit dd223e5

Browse files
committed
install nx
1 parent 1168b26 commit dd223e5

File tree

5 files changed

+1097
-375
lines changed

5 files changed

+1097
-375
lines changed

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,12 @@ dist/
1414
/*.html
1515
# generated output files
1616
/output/
17+
18+
19+
20+
.nx/cache
21+
.nx/workspace-data
22+
.cursor/rules/nx-rules.mdc
23+
.github/instructions/nx.instructions.md
24+
vite.config.*.timestamp*
25+
vitest.config.*.timestamp*

eslint.config.mjs

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,22 @@ import unusedImports from "eslint-plugin-unused-imports";
66

77
export default [
88
{
9-
ignores: [
10-
"dist/",
11-
"node_modules/",
12-
"*.d.ts",
13-
"node_modules/",
14-
"**/build/**/",
15-
"packages/theme/dist/",
16-
"tmp/",
17-
"*.min.js",
18-
"coverage/",
19-
"**/.docusaurus/",
20-
"**/dist/",
21-
"**/build/",
22-
"**/node_modules/",
23-
]
9+
"ignores": [
10+
"dist/",
11+
"node_modules/",
12+
"*.d.ts",
13+
"**/build/**/",
14+
"packages/theme/dist/",
15+
"tmp/",
16+
"*.min.js",
17+
"coverage/",
18+
"**/.docusaurus/",
19+
"**/dist/",
20+
"**/build/",
21+
"**/node_modules/",
22+
"**/vite.config.*.timestamp*",
23+
"**/vitest.config.*.timestamp*"
24+
]
2425
},
2526
{
2627
files: ["**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}"],

nx.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"$schema": "./node_modules/nx/schemas/nx-schema.json",
3+
"targetDefaults": {
4+
"build": {
5+
"dependsOn": [
6+
"^build"
7+
],
8+
"outputs": [
9+
"{projectRoot}/build"
10+
],
11+
"cache": true
12+
},
13+
"test": {
14+
"dependsOn": [
15+
"^test"
16+
],
17+
"cache": true
18+
}
19+
},
20+
"plugins": [
21+
{
22+
"plugin": "@nx/eslint/plugin",
23+
"options": {
24+
"targetName": "lint"
25+
}
26+
},
27+
{
28+
"plugin": "@nx/vite/plugin",
29+
"options": {
30+
"buildTargetName": "build",
31+
"testTargetName": "test",
32+
"serveTargetName": "serve",
33+
"devTargetName": "dev",
34+
"previewTargetName": "preview",
35+
"serveStaticTargetName": "serve-static",
36+
"typecheckTargetName": "typecheck",
37+
"buildDepsTargetName": "build-deps",
38+
"watchDepsTargetName": "watch-deps"
39+
}
40+
}
41+
],
42+
"nxCloudId": "6857fccbb755d4191ce6fbe4"
43+
}

package.json

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@
9494
"stop:portal": "lsof -ti:3000 | xargs kill -9 2>/dev/null || true",
9595
"stop:unimarc": "lsof -ti:3006 | xargs kill -9 2>/dev/null || true",
9696
"swizzle": "docusaurus swizzle",
97-
"test": "vitest",
98-
"test:ui": "vitest --ui",
99-
"test:watch": "vitest --watch",
97+
"test": "nx test",
98+
"test:ui": "nx test --ui",
99+
"test:watch": "nx test --watch",
100100
"typecheck": "tsc --noEmit",
101101
"validate:isbdm-links": "node scripts/validate-isbdm-links.js",
102102
"validate:navigation": "node scripts/validate-navigation-urls.js",
@@ -123,8 +123,6 @@
123123
"prepare": "husky"
124124
},
125125
"dependencies": {
126-
"@ifla/preset-ifla": "workspace:*",
127-
"@ifla/theme": "workspace:*",
128126
"@anthropic-ai/sdk": "^0.52.0",
129127
"@docusaurus/core": "3.8.1",
130128
"@docusaurus/faster": "^3.8.1",
@@ -135,6 +133,8 @@
135133
"@docusaurus/theme-common": "^3.8.1",
136134
"@docusaurus/theme-mermaid": "^3.8.1",
137135
"@easyops-cn/docusaurus-search-local": "^0.49.2",
136+
"@ifla/preset-ifla": "workspace:*",
137+
"@ifla/theme": "workspace:*",
138138
"@mdx-js/react": "^3.1.0",
139139
"@types/glob": "^8.1.0",
140140
"@types/jsonld": "^1.5.15",
@@ -211,6 +211,9 @@
211211
"@docusaurus/tsconfig": "3.8.1",
212212
"@docusaurus/types": "3.8.1",
213213
"@modelcontextprotocol/inspector": "0.13.0",
214+
"@nx/eslint": "21.2.1",
215+
"@nx/vite": "21.2.1",
216+
"@nx/web": "21.2.1",
214217
"@testing-library/dom": "^10.4.0",
215218
"@testing-library/jest-dom": "^6.6.3",
216219
"@testing-library/react": "^16.3.0",
@@ -229,6 +232,7 @@
229232
"@vitejs/plugin-react": "^4.5.1",
230233
"@vitest/browser": "^3.2.2",
231234
"@vitest/coverage-v8": "^3.2.2",
235+
"@vitest/ui": "^3.0.0",
232236
"acorn": "^8.15.0",
233237
"axe-core": "^4.10.3",
234238
"chalk": "^5.4.1",
@@ -239,8 +243,6 @@
239243
"dotenv": "^16.5.0",
240244
"esbuild": "^0.19.4",
241245
"esbuild-sass-plugin": "^3.2.0",
242-
"postcss": "^8.5.5",
243-
"postcss-modules": "^6.0.1",
244246
"eslint": "^9.29.0",
245247
"eslint-plugin-mdx": "^3.4.2",
246248
"eslint-plugin-react": "^7.37.5",
@@ -251,9 +253,13 @@
251253
"http-server": "^14.1.1",
252254
"husky": "^9.1.7",
253255
"jest-axe": "^10.0.0",
256+
"jiti": "2.4.2",
254257
"lint-staged": "^16.1.2",
255258
"npm-run-all": "^4.1.5",
259+
"nx": "21.2.1",
256260
"playwright": "^1.52.0",
261+
"postcss": "^8.5.5",
262+
"postcss-modules": "^6.0.1",
257263
"prop-types": "^15.8.1",
258264
"puppeteer": "^24.10.0",
259265
"react": "^19.1.0",

0 commit comments

Comments
 (0)