feat(web): support classic Rsbuild dev and build
Merge pull request #5232 from QuantumNous/feat/classic-rsbuild-dev-workflow
Showing
| ... | ... | @@ -4,6 +4,7 @@ |
| "private": true, | ||
| "type": "module", | ||
| "dependencies": { | ||
| "@douyinfe/semi-illustrations": "^2.69.1", | ||
| "@douyinfe/semi-icons": "^2.63.1", | ||
| "@douyinfe/semi-ui": "^2.69.1", | ||
| "@lobehub/icons": "catalog:", | ||
| ... | ... | @@ -14,6 +15,7 @@ |
| "clsx": "catalog:", | ||
| "dayjs": "catalog:", | ||
| "history": "^5.3.0", | ||
| "highlight.js": "^11.11.1", | ||
| "i18next": "^23.16.8", | ||
| "i18next-browser-languagedetector": "^7.2.0", | ||
| "katex": "^0.16.22", | ||
| ... | ... | @@ -21,8 +23,8 @@ |
| "marked": "^4.1.1", | ||
| "mermaid": "^11.6.0", | ||
| "qrcode.react": "catalog:", | ||
| "react": "^18.2.0", | ||
| "react-dom": "^18.2.0", | ||
| "react": "^19.2.6", | ||
| "react-dom": "^19.2.6", | ||
| "react-dropzone": "^14.2.3", | ||
| "react-fireworks": "^1.0.4", | ||
| "react-i18next": "^13.0.0", | ||
| ... | ... | @@ -42,13 +44,13 @@ |
| "use-debounce": "^10.0.4" | ||
| }, | ||
| "scripts": { | ||
| "dev": "vite", | ||
| "build": "vite build", | ||
| "dev": "rsbuild dev", | ||
| "build": "rsbuild build", | ||
| "lint": "prettier . --check", | ||
| "lint:fix": "prettier . --write", | ||
| "eslint": "bunx eslint \"**/*.{js,jsx}\" --cache", | ||
| "eslint:fix": "bunx eslint \"**/*.{js,jsx}\" --fix --cache", | ||
| "preview": "vite preview", | ||
| "preview": "rsbuild preview", | ||
| "i18n:extract": "bunx i18next-cli extract", | ||
| "i18n:status": "bunx i18next-cli status", | ||
| "i18n:sync": "bunx i18next-cli sync", | ||
| ... | ... | @@ -73,20 +75,19 @@ |
| ] | ||
| }, | ||
| "devDependencies": { | ||
| "@douyinfe/vite-plugin-semi": "^2.74.0-alpha.6", | ||
| "@rsbuild/core": "^2.0.7", | ||
| "@rsbuild/plugin-react": "^2.0.0", | ||
| "@so1ve/prettier-config": "^3.1.0", | ||
| "@vitejs/plugin-react": "^4.2.1", | ||
| "autoprefixer": "^10.4.21", | ||
| "code-inspector-plugin": "^1.3.3", | ||
| "eslint": "8.57.0", | ||
| "eslint-plugin-header": "^3.1.1", | ||
| "eslint-plugin-react-hooks": "^5.2.0", | ||
| "i18next-cli": "^1.10.3", | ||
| "postcss": "^8.5.3", | ||
| "prop-types": "^15.8.1", | ||
| "prettier": "catalog:", | ||
| "tailwindcss": "^3", | ||
| "typescript": "4.4.2", | ||
| "vite": "^5.2.0" | ||
| "typescript": "4.4.2" | ||
| }, | ||
| "prettier": { | ||
| "singleQuote": true, | ||
| ... | ... |
web/classic/rsbuild.config.ts
0 → 100644
web/classic/vite.config.js
deleted
100644 → 0
Please
register
or
sign in
to comment