feat: initialize React app with TanStack Router and Vitest for testing
- Added App component with basic structure and styling. - Included CSS for app layout and animations. - Integrated TanStack Router for routing management. - Set up Vitest for testing with a basic test case for the App component. - Added logo SVG for branding. - Configured Vite for development with React and TanStack Devtools. - Created reportWebVitals utility for performance measurement. - Established global styles in styles.css.
This commit is contained in:
31
my-app/package.json
Normal file
31
my-app/package.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"name": "my-app",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite --port 3000",
|
||||
"build": "vite build && tsc",
|
||||
"preview": "vite preview",
|
||||
"test": "vitest run"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tanstack/react-devtools": "^0.7.0",
|
||||
"@tanstack/react-router": "^1.132.0",
|
||||
"@tanstack/react-router-devtools": "^1.132.0",
|
||||
"react": "^19.2.0",
|
||||
"react-dom": "^19.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tanstack/devtools-vite": "^0.3.11",
|
||||
"@testing-library/dom": "^10.4.0",
|
||||
"@testing-library/react": "^16.2.0",
|
||||
"@types/react": "^19.2.0",
|
||||
"@types/react-dom": "^19.2.0",
|
||||
"@vitejs/plugin-react": "^5.0.4",
|
||||
"jsdom": "^27.0.0",
|
||||
"typescript": "^5.7.2",
|
||||
"vite": "^7.1.7",
|
||||
"vitest": "^3.0.5",
|
||||
"web-vitals": "^5.1.0"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user