- Replace CRA with Vite as the build tool - Rename index.tsx to main.tsx (Vite convention) - Add vite.config.ts, tsconfig.app.json, tsconfig.node.json - Move index.html from public/ to project root - Replace yarn.lock with package-lock.json - Remove CRA-specific files (reportWebVitals, setupTests, react-app-env.d.ts) - Update package.json, tsconfig.json, .gitignore, and README.md - Adjust all source files for Vite compatibility
54 lines
1.4 KiB
JSON
54 lines
1.4 KiB
JSON
{
|
|
"name": "nimg",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc -b && vite build",
|
|
"lint": "eslint .",
|
|
"format": "biome check --write .",
|
|
"format:check": "biome check .",
|
|
"preview": "vite preview"
|
|
},
|
|
"dependencies": {
|
|
"@orrisroot/react-html-parser": "^3.0.0",
|
|
"@types/async-lock": "^1.4.2",
|
|
"@types/lokijs": "^1.5.14",
|
|
"@types/react": "^19.2.15",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@types/react-router-dom": "^5.3.3",
|
|
"@types/react-router-hash-link": "^2.4.9",
|
|
"async-lock": "^1.4.1",
|
|
"ky": "^2.0.2",
|
|
"lokijs": "^1.5.12",
|
|
"moment": "^2.30.1",
|
|
"rc-tree": "^5.13.1",
|
|
"react": "^19.2.6",
|
|
"react-cookie": "^8.1.2",
|
|
"react-dom": "^19.2.6",
|
|
"react-ga4": "^3.0.1",
|
|
"react-helmet-async": "^3.0.0",
|
|
"react-overlays": "^5.2.1",
|
|
"react-router-dom": "^7.15.1",
|
|
"react-router-hash-link": "^2.4.3",
|
|
"react-spinner-material": "^1.4.0",
|
|
"split-string": "^6.1.0",
|
|
"xregexp": "^5.1.2",
|
|
"yet-another-react-lightbox": "^3.32.0"
|
|
},
|
|
"devDependencies": {
|
|
"@biomejs/biome": "^2.4.15",
|
|
"@eslint/js": "^10.0.1",
|
|
"@types/node": "^24.12.4",
|
|
"@vitejs/plugin-react": "^6.0.2",
|
|
"eslint": "^10.4.0",
|
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
"globals": "^17.6.0",
|
|
"typescript": "~6.0.3",
|
|
"typescript-eslint": "^8.59.4",
|
|
"vite": "^8.0.14"
|
|
}
|
|
}
|