build(ui): enahnce cross-platform dx

This commit is contained in:
ReaJason
2025-02-26 20:20:49 +08:00
parent e10673ab38
commit 881587dccf
4 changed files with 78 additions and 67 deletions
+15 -11
View File
@@ -4,25 +4,29 @@
"private": true,
"type": "module",
"scripts": {
"typecheck": "tsc --noEmit",
"typecheck": "tsc -b --noEmit",
"dev": "vite --port=3001",
"build": "tsc -b && vite build --mode production && bash copy-build.sh",
"serve": "vite preview",
"check": "bunx @biomejs/biome check ./ --write",
"start": "vite"
"build": "tsc -b && vite build --mode production && bun run copy-build.js",
"build:analyze": "vite build --mode production --outDir dist/analyze && npx vite-bundle-visualizer",
"preview": "vite preview",
"clean": "rimraf dist",
"lint": "bunx @biomejs/biome check ./",
"lint:fix": "bunx @biomejs/biome check ./ --write"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@tanstack/router-plugin": "^1.111.3",
"@tanstack/router-plugin": "^1.111.7",
"@types/node": "^22.13.5",
"@types/react": "^19.0.10",
"@types/react-dom": "^19.0.4",
"@vitejs/plugin-react": "^4.3.4",
"@types/react-copy-to-clipboard": "^5.0.7",
"@types/react-dom": "^19.0.4",
"@types/react-syntax-highlighter": "^15.5.13",
"@vitejs/plugin-react": "^4.3.4",
"rimraf": "^6.0.1",
"tailwindcss": "^4.0.8",
"typescript": "^5.7.3",
"vite": "^6.1.1"
"vite": "^6.2.0",
"vite-bundle-visualizer": "^1.2.1"
},
"dependencies": {
"@hookform/resolvers": "^4.1.2",
@@ -39,8 +43,8 @@
"@radix-ui/react-tooltip": "^1.1.8",
"@tailwindcss/vite": "^4.0.8",
"@tanstack/react-query": "^5.66.9",
"@tanstack/react-router": "^1.111.3",
"@tanstack/router-devtools": "^1.111.3",
"@tanstack/react-router": "^1.111.7",
"@tanstack/router-devtools": "^1.111.7",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"i18next": "^24.2.2",