mirror of
https://github.com/yangjian102621/geekai.git
synced 2026-02-19 12:54:28 +08:00
This commit includes the necessary changes to migrate the web application's frontend build system from vue-cli to Vite. Key changes include: - Installed Vite and @vitejs/plugin-vue. - Removed vue-cli dependencies. - Created vite.config.js with configurations for aliases, proxy, and dev server, based on the previous vue.config.js. - Moved public/index.html to web/index.html and updated it for Vite. - Updated package.json scripts to use Vite commands. Note: Due to persistent Node.js environment issues, I could not test the application after these changes. Manual testing and potential debugging will be required to ensure everything works as expected.
83 lines
2.0 KiB
JSON
83 lines
2.0 KiB
JSON
{
|
|
"name": "geekai-web",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vite build",
|
|
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore"
|
|
},
|
|
"dependencies": {
|
|
"@better-scroll/core": "^2.5.1",
|
|
"@better-scroll/mouse-wheel": "^2.5.1",
|
|
"@better-scroll/observe-dom": "^2.5.1",
|
|
"@better-scroll/pull-up": "^2.5.1",
|
|
"@better-scroll/scroll-bar": "^2.5.1",
|
|
"@element-plus/icons-vue": "^2.3.1",
|
|
"animate.css": "^4.1.1",
|
|
"axios": "^0.27.2",
|
|
"clipboard": "^2.0.11",
|
|
"compressorjs": "^1.2.1",
|
|
"core-js": "^3.8.3",
|
|
"echarts": "^5.5.0",
|
|
"element-plus": "^2.4.0",
|
|
"good-storage": "^1.1.1",
|
|
"highlight.js": "^11.7.0",
|
|
"json-bigint": "^1.0.0",
|
|
"lodash": "^4.17.21",
|
|
"markdown-it": "^13.0.1",
|
|
"markdown-it-emoji": "^2.0.0",
|
|
"markdown-it-mathjax3": "^4.3.2",
|
|
"marked": "^15.0.11",
|
|
"markmap-common": "^0.16.0",
|
|
"markmap-lib": "^0.16.1",
|
|
"markmap-toolbar": "^0.17.0",
|
|
"markmap-view": "^0.16.0",
|
|
"md-editor-v3": "^2.2.1",
|
|
"memfs": "^4.9.3",
|
|
"pinia": "^2.1.4",
|
|
"qrcode": "^1.5.3",
|
|
"qs": "^6.11.1",
|
|
"sortablejs": "^1.15.0",
|
|
"three": "^0.128.0",
|
|
"vant": "^4.5.0",
|
|
"vue": "^3.2.13",
|
|
"vue-router": "^4.0.15",
|
|
"vue-waterfall-plugin-next": "^2.6.5"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "7.18.6",
|
|
"@babel/eslint-parser": "^7.12.16",
|
|
"@vitejs/plugin-vue": "^5.2.4",
|
|
"autoprefixer": "^10.4.20",
|
|
"eslint": "^7.32.0",
|
|
"eslint-plugin-vue": "^8.0.3",
|
|
"postcss": "^8.4.49",
|
|
"stylus": "^0.58.1",
|
|
"stylus-loader": "^7.0.0",
|
|
"tailwindcss": "^3.4.17",
|
|
"vite": "^6.3.5",
|
|
"webpack": "^5.90.3"
|
|
},
|
|
"eslintConfig": {
|
|
"root": true,
|
|
"env": {
|
|
"node": true
|
|
},
|
|
"extends": [
|
|
"plugin:vue/vue3-essential",
|
|
"eslint:recommended"
|
|
],
|
|
"parserOptions": {
|
|
"parser": "@babel/eslint-parser"
|
|
},
|
|
"rules": {}
|
|
},
|
|
"browserslist": [
|
|
"> 1%",
|
|
"last 2 versions",
|
|
"not dead",
|
|
"not ie 11"
|
|
]
|
|
}
|