mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-11-06 23:47:52 +08:00
- vite 8、@vitejs/plugin-vue 6、vitest 5、happy-dom 21、@vue/test-utils 2.5、 typescript ~6.0.3、vue-tsc 3.3、unocss 66.11、unplugin-auto-import 21、 unplugin-vue-components 32、sass-embedded 1.105、playwright 1.64.1、storybook 10.6 - vite.config:去掉 defineModel 开关;Sass 改用 @use;esbuild.drop 换成 rolldown 的 dropConsole;__dirname 换成 import.meta.dirname;两处 alias 改为 resolve.tsconfigPaths - 删除 plugin-vue-jsx:三个 SFC 的 JSX 改写为 h() - 删除 preset-attributify:模板里的属性式工具类全部改回 class (含 space-y-*、text-*、line、i-carbon-* 等,不止 5 处 flex="~") - 删除 vite-plugin-pwa:改为静态 manifest.webmanifest + 自毁 sw.js(4.1 删除) - tsconfig:moduleResolution Bundler、去掉 baseUrl 与 JSX 配置, app 的 types 只留 vitest/globals - Storybook 10:addon-links + addon-docs,stories 改从 @storybook/vue3-vite 导入类型 - @intlify/unplugin-vue-i18n 0.11 -> 11.2.7(Vite 8 下旧版产物被 vite-json 再次解析而失败); 新版只产出 AST 文案,故打开 __INTLIFY_JIT_COMPILATION__,hasKey 识别 AST 叶子
70 lines
2.1 KiB
JSON
70 lines
2.1 KiB
JSON
{
|
|
"name": "ab-webui",
|
|
"type": "module",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"packageManager": "pnpm@12.14.0",
|
|
"scripts": {
|
|
"prepare": "cd .. && husky install ./webui/.husky",
|
|
"test:build": "vue-tsc --noEmit",
|
|
"build": "vite build",
|
|
"dev": "vite",
|
|
"format": "prettier --write .",
|
|
"format:check": "prettier --check .",
|
|
"lint": "eslint .",
|
|
"lint:fix": "eslint . --fix",
|
|
"preview": "vite preview",
|
|
"test": "vitest",
|
|
"test:e2e": "playwright test",
|
|
"test:e2e:chromium": "playwright test --project=chromium-desktop",
|
|
"test:e2e:webkit": "playwright test --project=webkit-mobile",
|
|
"test:e2e:typecheck": "tsc --noEmit -p tsconfig.e2e.json",
|
|
"storybook": "storybook dev -p 6006",
|
|
"build-storybook": "storybook build"
|
|
},
|
|
"dependencies": {
|
|
"@headlessui/vue": "^1.7.23",
|
|
"@vueuse/core": "^10.11.1",
|
|
"axios": "^1.7.9",
|
|
"naive-ui": "^2.44.1",
|
|
"pinia": "^2.2.2",
|
|
"vue": "^3.5.8",
|
|
"vue-i18n": "^9.14.2",
|
|
"vue-inline-svg": "^3.1.4",
|
|
"vue-router": "^4.4.5",
|
|
"vuedraggable": "^4.1.0"
|
|
},
|
|
"devDependencies": {
|
|
"@antfu/eslint-config": "^0.38.6",
|
|
"@autobangumi/plugin-ui": "workspace:*",
|
|
"@icon-park/vue-next": "^1.4.2",
|
|
"@iconify-json/simple-icons": "1.2.89",
|
|
"@intlify/unplugin-vue-i18n": "^11.2.7",
|
|
"@playwright/test": "1.64.1",
|
|
"@storybook/addon-docs": "^10.6.2",
|
|
"@storybook/addon-links": "^10.6.2",
|
|
"@storybook/vue3-vite": "^10.6.2",
|
|
"@types/node": "^24",
|
|
"@unocss/preset-rem-to-px": "^66.11.0",
|
|
"@unocss/reset": "^66.11.0",
|
|
"@vitejs/plugin-vue": "^6.0.10",
|
|
"@vue/test-utils": "^2.5.1",
|
|
"eslint": "^8.57.1",
|
|
"eslint-config-prettier": "^8.10.0",
|
|
"eslint-plugin-storybook": "^10.6.2",
|
|
"happy-dom": "^21.0.3",
|
|
"husky": "^8.0.3",
|
|
"prettier": "^2.8.8",
|
|
"sass-embedded": "^1.105.2",
|
|
"storybook": "^10.6.2",
|
|
"typescript": "~6.0.3",
|
|
"unocss": "^66.11.0",
|
|
"unplugin-auto-import": "^21.1.0",
|
|
"unplugin-vue-components": "^32.1.0",
|
|
"unplugin-vue-router": "^0.6.4",
|
|
"vite": "^8.3.4",
|
|
"vitest": "^5.0.5",
|
|
"vue-tsc": "^3.3.13"
|
|
}
|
|
}
|