3870bceb6d
* feat: prepare project for cozy-ui migration Build Configuration - Add Stylus support via @rsbuild/plugin-stylus - Add SVGR support via @rsbuild/plugin-svgr - Update rsbuild.config.ts with custom configuration - Add historyApiFallback for SPA routing ESLint Configuration - Create .eslintrc.json with react-app configuration - Remove eslintConfig from package.json CSS to Stylus Migration Convert all 5 CSS files to Stylus (.styl) format: - src/App.css to src/App.styl - src/index.css to src/index.styl - src/components/Calendar/Calendar.css to src/components/Calendar/Calendar.styl - src/components/Calendar/CustomCalendar.css to src/components/Calendar/CustomCalendar.styl - src/components/Menubar/Menubar.css to src/components/Menubar/Menubar.styl - Update all imports from .css to .styl - Preserve all styling rules and values MUI Styling Cleanup - Replace all MUI sx props with standard style props across 15+ components - Convert MUI spacing units (mr: 2 to marginRight: 16px) - Convert MUI shorthand props (p: 2 to padding: 16px, mb: 1 to marginBottom: 8px) - Remove MUI-specific syntax (&.Mui-checked selectors) - Maintain exact visual appearance FullCalendar Fixes - Comment out problematic CSS rule in CustomCalendar.styl - Fix display issues with timegrid slot labels Files Modified - Config: rsbuild.config.ts, .eslintrc.json, package.json - Styling: 5 CSS to Stylus conversions, 15+ component sx to style updates - Components: All components using MUI sx props updated Development Workflow - Continue using existing development commands - Stylus files are now the source of truth for styling - MUI components work with standard style props - ESLint uses familiar react-app rules Dependencies Added - @rsbuild/plugin-stylus - @rsbuild/plugin-svgr
91 lines
2.6 KiB
JSON
91 lines
2.6 KiB
JSON
{
|
|
"name": "front",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"dependencies": {
|
|
"@emotion/react": "^11.14.0",
|
|
"@emotion/styled": "^11.14.1",
|
|
"@fullcalendar/core": "^6.1.17",
|
|
"@fullcalendar/daygrid": "^6.1.17",
|
|
"@fullcalendar/interaction": "^6.1.17",
|
|
"@fullcalendar/list": "^6.1.17",
|
|
"@fullcalendar/react": "^6.1.17",
|
|
"@fullcalendar/timegrid": "^6.1.17",
|
|
"@mui/icons-material": "^7.1.2",
|
|
"@mui/material": "^7.1.2",
|
|
"@reduxjs/toolkit": "^2.8.2",
|
|
"@types/node": "^16.18.126",
|
|
"@types/react": "^19.1.8",
|
|
"@types/react-dom": "^19.1.6",
|
|
"i18next": "^23.7.9",
|
|
"ical.js": "^2.2.0",
|
|
"ky": "^1.8.1",
|
|
"openid-client": "^6.5.3",
|
|
"react": "^19.1.0",
|
|
"react-calendar": "^6.0.0",
|
|
"react-dom": "^19.1.0",
|
|
"react-i18next": "^13.5.0",
|
|
"react-redux": "^9.2.0",
|
|
"react-router-dom": "^6.23.1",
|
|
"redux-first-history": "^5.2.0",
|
|
"ts-node": "^10.9.2",
|
|
"web-vitals": "^2.1.4"
|
|
},
|
|
"scripts": {
|
|
"start": "PORT=5000 rsbuild dev",
|
|
"build": "rsbuild build",
|
|
"preview": "rsbuild preview",
|
|
"test": "jest",
|
|
"lint": "eslint src --ext .js,.jsx,.ts,.tsx",
|
|
"jest-preview": "jest-preview"
|
|
},
|
|
"browserslist": {
|
|
"production": [
|
|
">0.2%",
|
|
"not dead",
|
|
"not op_mini all"
|
|
],
|
|
"development": [
|
|
"last 1 chrome version",
|
|
"last 1 firefox version",
|
|
"last 1 safari version"
|
|
]
|
|
},
|
|
"engines": {
|
|
"node": "24.x"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/eslint-parser": "^7.28.4",
|
|
"@babel/preset-env": "^7.28.0",
|
|
"@babel/preset-react": "^7.27.1",
|
|
"@rsbuild/core": "^1.5.2",
|
|
"@rsbuild/plugin-react": "^1.3.3",
|
|
"@rsbuild/plugin-stylus": "^1.2.0",
|
|
"@rsbuild/plugin-svgr": "^1.2.0",
|
|
"@testing-library/dom": "^10.4.0",
|
|
"@testing-library/jest-dom": "^6.6.3",
|
|
"@testing-library/react": "^16.3.0",
|
|
"@testing-library/user-event": "^13.5.0",
|
|
"@types/jest": "^30.0.0",
|
|
"@typescript-eslint/eslint-plugin": "^8.44.1",
|
|
"@typescript-eslint/parser": "^8.44.1",
|
|
"babel-jest": "^30.0.4",
|
|
"eslint": "^8.57.1",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"eslint-config-react-app": "^7.0.1",
|
|
"eslint-plugin-import": "^2.32.0",
|
|
"eslint-plugin-jest": "^29.0.1",
|
|
"eslint-plugin-promise": "^7.2.1",
|
|
"eslint-plugin-react": "^7.37.5",
|
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
"history": "^5.3.0",
|
|
"i18next-resources-for-ts": "1.4.0",
|
|
"jest": "^30.0.4",
|
|
"jest-environment-jsdom": "^30.0.4",
|
|
"jest-preview": "^0.3.1",
|
|
"prettier": "^3.6.2",
|
|
"ts-jest": "^29.4.0",
|
|
"typescript": "^4.9.5"
|
|
}
|
|
}
|