技术改造 - vite
在开发过程中,为了更快的开发体验,迁移到 Vite
eslint 与 prettier 配置
commit/pr
改造过程部分列举
json
{
"name": "ruoyi",
"type": "module",
"version": "3.2.0",
"description": "模板项目",
"author": "wudi",
"repository": {
"type": "git",
"url": "http://39.108.189.115:81/general/frontend/demo-ui.git"
},
"engines": {
"node": ">=18.20.3"
},
"scripts": {
"dev": "vue-cli-service serve",
"test": "vue-cli-service build --mode test",
"build:prod": "vue-cli-service build",
"lint": "eslint --ext .js,.vue src",
"dev": "vite",
"test": "vite build --mode test",
"build:prod": "vite build",
"preview": "vite preview --port 8889",
"lint": "eslint ./src/**/*.{vue,js}",
"lint:fix": "eslint ./src/**/*.{vue,js} --fix",
"format": "prettier --check \"./src/**/*.{vue,js}\"",
"format:fail": "prettier --check --write \"./src/**/*.{vue,js}\""
},
"dependencies": {
"@mgcloud/lib-base": "1.1.0",
"@mgcloud/pc-base-ui": "0.0.10",
"@vueuse/core": "10.10.0",
"axios": "0.24.0",
"core-js": "3.25.3",
"echarts": "5.5.0",
"element-ui": "2.15.14",
"moment": "2.29.1",
"normalize.css": "7.0.0",
"nprogress": "0.2.0",
"number-precision": "1.6.0",
"path-to-regexp": "2.4.0",
"sortablejs": "1.10.2",
"vue": "2.7.16",
"vue-router": "3.6.5",
"vuex": "3.6.2"
},
"devDependencies": {
"@vue/cli-plugin-babel": "4.4.4",
"@vue/cli-plugin-eslint": "4.4.4",
"@vue/cli-plugin-unit-jest": "4.4.4",
"@vue/cli-service": "4.4.4",
"autoprefixer": "9.5.1",
"babel-eslint": "10.1.0",
"babel-jest": "^26.6.1",
"babel-plugin-dynamic-import-node": "2.3.3",
"eslint": "6.7.2",
"eslint-plugin-vue": "6.2.2",
"html-webpack-plugin": "3.2.0",
"husky": "1.3.1",
"lint-staged": "8.1.5",
"sass": "1.27.0",
"sass-loader": "^10.1.1",
"script-ext-html-webpack-plugin": "2.1.3",
"script-loader": "0.7.2",
"svg-sprite-loader": "4.1.3",
"vue-template-compiler": "2.6.14"
"@cdlab996/eslint-config-vue2": "0.0.13",
"@cdlab996/prettier-config": "0.0.13",
"@unocss/eslint-plugin": "0.60.3",
"@vitejs/plugin-vue2": "2.3.1",
"@vitejs/plugin-vue2-jsx": "1.1.1",
"eslint": "8.57.0",
"fast-glob": "3.3.2",
"prettier": "3.3.1",
"rollup-plugin-visualizer": "5.12.0",
"sass": "1.32.13",
"unocss": "0.60.3",
"vite": "5.2.11",
"vite-plugin-svg-icons": "2.0.1"
}
}