From 861a074b411f756d368091cf14bfd30bec42d843 Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Tue, 12 Sep 2023 19:31:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8C=85=E8=87=AA=E5=8A=A8=E5=8E=8B?= =?UTF-8?q?=E7=BC=A9=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 231 +++++++++++++++++++++++++------------------------- vue.config.js | 29 ++++++- 2 files changed, 143 insertions(+), 117 deletions(-) diff --git a/package.json b/package.json index d496e719a..d7bf6ee17 100644 --- a/package.json +++ b/package.json @@ -1,120 +1,121 @@ { - "name": "epmet-oper-gov", - "version": "1.0.0", - "private": true, - "scripts": { - "dev": "node --max_old_space_size=4096 node_modules/@vue/cli-service/bin/vue-cli-service.js serve", - "serve": "vue-cli-service serve", - "build": "vue-cli-service build", - "build:sit": "vue-cli-service build --mode production.sit", - "build:uat": "vue-cli-service build --mode production.uat", - "build:preview": "vue-cli-service build --mode preview", - "build:prod": "vue-cli-service build --mode production", - "build:shibei_prod": "vue-cli-service build --mode shibei_production", - "lint": "vue-cli-service lint", - "et": "node_modules/.bin/et", - "et:init": "node_modules/.bin/et -i", - "et:list": "gulp themes" + "name": "epmet-oper-gov", + "version": "1.0.0", + "private": true, + "scripts": { + "dev": "node --max_old_space_size=4096 node_modules/@vue/cli-service/bin/vue-cli-service.js serve", + "serve": "vue-cli-service serve", + "build": "vue-cli-service build", + "build:sit": "vue-cli-service build --mode production.sit", + "build:uat": "vue-cli-service build --mode production.uat", + "build:preview": "vue-cli-service build --mode preview", + "build:prod": "vue-cli-service build --mode production", + "build:shibei_prod": "vue-cli-service build --mode shibei_production", + "lint": "vue-cli-service lint", + "et": "node_modules/.bin/et", + "et:init": "node_modules/.bin/et -i", + "et:list": "gulp themes" + }, + "dependencies": { + "@antv/l7": "2.9.14", + "@antv/l7-draw": "3.0.5", + "@antv/l7-maps": "2.9.14", + "@riophae/vue-treeselect": "^0.4.0", + "@tinymce/tinymce-vue": "^3.2.8", + "async-validator": "^4.2.5", + "axios": "^0.19.0", + "babel-eslint": "^8.0.1", + "babel-plugin-component": "^1.1.1", + "css-loader": "^5.0.0", + "echarts": "^5.2.2", + "echarts-gl": "^2.0.9", + "element-theme": "2.0.1", + "element-ui": "2.13.2", + "file-saver": "^2.0.5", + "gulp-autoprefixer": "^6.1.0", + "gulp-clean-css": "^4.2.0", + "gulp-load-plugins": "^2.0.0", + "gulp-rename": "^1.4.0", + "gulp-sass": "^4.0.2", + "js-cookie": "^2.2.0", + "jsencrypt": "^3.0.3", + "lodash": "^4.17.15", + "mint-ui": "^2.2.13", + "node-sass": "^4.12.0", + "ol": "7.2.2", + "portfinder": "^1.0.21", + "proj4": "^2.8.0", + "qs": "^6.7.0", + "quill": "^1.3.6", + "screenfull": "^4.2.1", + "sortablejs": "^1.12.0", + "svg-sprite-loader": "^4.1.6", + "throttle-debounce": "^3.0.1", + "turf": "^3.0.14", + "v-distpicker": "^1.2.2", + "vue": "^2.6.11", + "vue-baidu-map": "^0.21.22", + "vue-i18n": "^8.12.0", + "vue-quill-editor": "^3.0.6", + "vue-router": "^3.0.7", + "vuex": "^3.1.1", + "xlsx": "^0.17.1" + }, + "devDependencies": { + "@antv/f2": "^3.8.10-beta.1", + "@tinymce/tinymce-vue": "3.2.8", + "@vue/cli-plugin-babel": "^3.10.0", + "@vue/cli-plugin-eslint": "^3.10.0", + "@vue/cli-service": "^3.10.0", + "@vue/eslint-config-standard": "^4.0.0", + "cross-env": "^7.0.3", + "dai-js": "^0.0.12", + "element-theme-chalk": "^2.13.0", + "filemanager-webpack-plugin": "^2.0.5", + "natives": "^1.1.6", + "ol": "^7.2.2", + "sass-loader": "^7.3.1", + "script-loader": "^0.7.2", + "style-loader": "^3.3.3", + "tinymce": "5.8.2", + "vue-template-compiler": "^2.6.11" + }, + "eslintConfig": { + "root": true, + "env": { + "node": true }, - "dependencies": { - "@antv/l7": "2.9.14", - "@antv/l7-draw": "3.0.5", - "@antv/l7-maps": "2.9.14", - "@riophae/vue-treeselect": "^0.4.0", - "@tinymce/tinymce-vue": "^3.2.8", - "async-validator": "^4.2.5", - "axios": "^0.19.0", - "babel-eslint": "^8.0.1", - "babel-plugin-component": "^1.1.1", - "css-loader": "^5.0.0", - "echarts": "^5.2.2", - "echarts-gl": "^2.0.9", - "element-theme": "2.0.1", - "element-ui": "2.13.2", - "file-saver": "^2.0.5", - "gulp-autoprefixer": "^6.1.0", - "gulp-clean-css": "^4.2.0", - "gulp-load-plugins": "^2.0.0", - "gulp-rename": "^1.4.0", - "gulp-sass": "^4.0.2", - "js-cookie": "^2.2.0", - "jsencrypt": "^3.0.3", - "lodash": "^4.17.15", - "mint-ui": "^2.2.13", - "node-sass": "^4.12.0", - "ol": "7.2.2", - "portfinder": "^1.0.21", - "proj4": "^2.8.0", - "qs": "^6.7.0", - "quill": "^1.3.6", - "screenfull": "^4.2.1", - "sortablejs": "^1.12.0", - "svg-sprite-loader": "^4.1.6", - "throttle-debounce": "^3.0.1", - "turf": "^3.0.14", - "v-distpicker": "^1.2.2", - "vue": "^2.6.11", - "vue-baidu-map": "^0.21.22", - "vue-i18n": "^8.12.0", - "vue-quill-editor": "^3.0.6", - "vue-router": "^3.0.7", - "vuex": "^3.1.1", - "xlsx": "^0.17.1" - }, - "devDependencies": { - "@antv/f2": "^3.8.10-beta.1", - "@tinymce/tinymce-vue": "3.2.8", - "@vue/cli-plugin-babel": "^3.10.0", - "@vue/cli-plugin-eslint": "^3.10.0", - "@vue/cli-service": "^3.10.0", - "@vue/eslint-config-standard": "^4.0.0", - "cross-env": "^7.0.3", - "dai-js": "^0.0.12", - "element-theme-chalk": "^2.13.0", - "natives": "^1.1.6", - "ol": "^7.2.2", - "sass-loader": "^7.3.1", - "script-loader": "^0.7.2", - "style-loader": "^3.3.3", - "tinymce": "5.8.2", - "vue-template-compiler": "^2.6.11" - }, - "eslintConfig": { - "root": true, - "env": { - "node": true - }, - "extends": [ - "plugin:vue/essential", - "@vue/standard" - ], - "rules": {}, - "parserOptions": { - "parser": "babel-eslint" - } - }, - "postcss": { - "plugins": { - "autoprefixer": {} - } - }, - "engines": { - "node": ">= 8.11.1", - "npm": ">= 5.6.0" - }, - "browserslist": [ - "> 1%", - "last 2 versions", - "not ie <= 10" + "extends": [ + "plugin:vue/essential", + "@vue/standard" ], - "element-theme": { - "config": "./src/element-ui/theme-variables.scss", - "out": "./src/element-ui/theme", - "minimize": true, - "browsers": [ - "> 1%", - "last 2 versions", - "not ie <= 10" - ] + "rules": {}, + "parserOptions": { + "parser": "babel-eslint" + } + }, + "postcss": { + "plugins": { + "autoprefixer": {} } + }, + "engines": { + "node": ">= 8.11.1", + "npm": ">= 5.6.0" + }, + "browserslist": [ + "> 1%", + "last 2 versions", + "not ie <= 10" + ], + "element-theme": { + "config": "./src/element-ui/theme-variables.scss", + "out": "./src/element-ui/theme", + "minimize": true, + "browsers": [ + "> 1%", + "last 2 versions", + "not ie <= 10" + ] + } } diff --git a/vue.config.js b/vue.config.js index 19263c578..53c8cc608 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,7 +1,19 @@ +/* + * @Author: mk 2403457699@qq.com + * @Date: 2023-08-28 19:45:33 + * @LastEditors: mk 2403457699@qq.com + * @LastEditTime: 2023-09-12 19:24:04 + * @Description: 介绍一下改动了什么 + * + * + */ /** * 配置参考: https://cli.vuejs.org/zh/config/ */ const IS_PROD = ['production', 'test'].includes(process.env.NODE_ENV) +const FileManagerPlugin = require('filemanager-webpack-plugin') + + module.exports = { baseUrl: process.env.NODE_ENV === 'production' ? '' : '/epmet-work-pc', css: { @@ -56,6 +68,19 @@ module.exports = { '@v': '@/views', '@m': '@/img' } - } - } + }, + plugins: [ + new FileManagerPlugin({ + onEnd: { + delete: [ + './epmet-work-pc.zip', + ], + archive: [ + { source: './epmet-work-pc', destination: './epmet-work-pc.zip' }, + ] + } + }) + ], + }, + }