mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-01-23 11:36:38 +08:00
Refactor: UmiJs -> Vite (#12410)
### What problem does this PR solve? Refactor: UmiJs -> Vite+React ### Type of change - [x] Refactoring --------- Co-authored-by: Liu An <asiro@qq.com>
This commit is contained in:
@ -1,15 +1,16 @@
|
||||
{
|
||||
"version": "1.0.0",
|
||||
"private": true,
|
||||
"description": "RAGFlow Web Frontend migrated to Vite",
|
||||
"author": "bill",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"build": "umi build",
|
||||
"build": "vite build --mode production",
|
||||
"build-storybook": "storybook build",
|
||||
"dev": "cross-env UMI_DEV_SERVER_COMPRESS=none umi dev",
|
||||
"postinstall": "umi setup",
|
||||
"lint": "umi lint --eslint-only",
|
||||
"dev": "vite",
|
||||
"lint": "eslint src --ext .ts,.tsx --report-unused-disable-directives --max-warnings 0",
|
||||
"prepare": "cd .. && husky web/.husky",
|
||||
"setup": "umi setup",
|
||||
"start": "npm run dev",
|
||||
"preview": "vite preview",
|
||||
"storybook": "storybook dev -p 6006",
|
||||
"test": "jest --no-cache --coverage"
|
||||
},
|
||||
@ -18,6 +19,9 @@
|
||||
"prettier --write --ignore-unknown"
|
||||
]
|
||||
},
|
||||
"overrides": {
|
||||
"@radix-ui/react-dismissable-layer": "1.1.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ant-design/icons": "^5.2.6",
|
||||
"@ant-design/pro-components": "^2.6.46",
|
||||
@ -27,6 +31,7 @@
|
||||
"@hookform/resolvers": "^3.9.1",
|
||||
"@js-preview/excel": "^1.7.14",
|
||||
"@lexical/react": "^0.23.1",
|
||||
"@mdx-js/rollup": "^3.1.1",
|
||||
"@monaco-editor/react": "^4.6.0",
|
||||
"@radix-ui/react-accordion": "^1.2.3",
|
||||
"@radix-ui/react-alert-dialog": "^1.1.4",
|
||||
@ -60,6 +65,7 @@
|
||||
"@tanstack/react-table": "^8.20.5",
|
||||
"@types/papaparse": "^5.5.1",
|
||||
"@uiw/react-markdown-preview": "^5.1.3",
|
||||
"@welldone-software/why-did-you-render": "^8.0.3",
|
||||
"@xyflow/react": "^12.3.6",
|
||||
"ahooks": "^3.7.10",
|
||||
"ajv": "^8.17.1",
|
||||
@ -105,6 +111,7 @@
|
||||
"react-pdf-highlighter": "^6.1.0",
|
||||
"react-photo-view": "^1.2.7",
|
||||
"react-resizable-panels": "^3.0.6",
|
||||
"react-router": "^7.10.1",
|
||||
"react-string-replace": "^1.1.1",
|
||||
"react-syntax-highlighter": "^15.5.0",
|
||||
"react18-json-view": "^0.2.8",
|
||||
@ -117,7 +124,6 @@
|
||||
"tailwind-merge": "^2.5.4",
|
||||
"tailwind-scrollbar": "^3.1.0",
|
||||
"tailwindcss-animate": "^1.0.7",
|
||||
"umi": "^4.0.90",
|
||||
"umi-request": "^1.4.0",
|
||||
"unist-util-visit-parents": "^6.0.1",
|
||||
"uuid": "^9.0.1",
|
||||
@ -127,7 +133,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@hookform/devtools": "^4.4.0",
|
||||
"@react-dev-inspector/umi4-plugin": "^2.0.1",
|
||||
"@react-router/dev": "^7.10.1",
|
||||
"@redux-devtools/extension": "^3.3.0",
|
||||
"@storybook/addon-docs": "^9.1.4",
|
||||
"@storybook/addon-onboarding": "^9.1.4",
|
||||
@ -148,18 +154,19 @@
|
||||
"@types/testing-library__jest-dom": "^6.0.0",
|
||||
"@types/uuid": "^9.0.8",
|
||||
"@types/webpack-env": "^1.18.4",
|
||||
"@umijs/lint": "^4.1.1",
|
||||
"@umijs/plugins": "^4.1.0",
|
||||
"@welldone-software/why-did-you-render": "^8.0.3",
|
||||
"@vitejs/plugin-react": "^5.1.2",
|
||||
"autoprefixer": "^10.4.21",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-plugin-check-file": "^2.8.0",
|
||||
"eslint-plugin-react-hooks": "^4.6.0",
|
||||
"eslint-plugin-react-refresh": "^0.4.5",
|
||||
"eslint-plugin-storybook": "^9.1.4",
|
||||
"eslint-webpack-plugin": "^4.1.0",
|
||||
"html-loader": "^5.1.0",
|
||||
"husky": "^9.0.11",
|
||||
"jest": "^29.7.0",
|
||||
"jest-environment-jsdom": "^29.7.0",
|
||||
"less": "^4.4.2",
|
||||
"lint-staged": "^15.2.7",
|
||||
"postcss": "^8.5.6",
|
||||
"postcss-loader": "^8.2.0",
|
||||
@ -172,13 +179,13 @@
|
||||
"tailwindcss": "^3",
|
||||
"terser-webpack-plugin": "^5.3.11",
|
||||
"ts-node": "^10.9.2",
|
||||
"typescript": "^5.0.3",
|
||||
"umi-plugin-icons": "^0.1.1"
|
||||
"typescript": "^5.9.3",
|
||||
"vite": "^7.2.7",
|
||||
"vite-plugin-html": "^3.2.2",
|
||||
"vite-plugin-static-copy": "^3.1.4",
|
||||
"vite-svg-loader": "^5.1.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18.20.4"
|
||||
},
|
||||
"overrides": {
|
||||
"@radix-ui/react-dismissable-layer": "1.1.4"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user