chore: 项目所有依赖升级到最新
This commit is contained in:
parent
8180b2d15f
commit
84a5fc1256
|
|
@ -1,7 +1,7 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
root: true,
|
root: true,
|
||||||
plugins: ['stylelint-order'],
|
plugins: ['stylelint-order'],
|
||||||
extends: ['stylelint-config-standard', 'stylelint-config-prettier'],
|
extends: ['stylelint-config-standard'],
|
||||||
customSyntax: 'postcss-html',
|
customSyntax: 'postcss-html',
|
||||||
rules: {
|
rules: {
|
||||||
'function-no-unknown': null,
|
'function-no-unknown': null,
|
||||||
|
|
|
||||||
|
|
@ -3,14 +3,13 @@ import vue from '@vitejs/plugin-vue';
|
||||||
import vueJsx from '@vitejs/plugin-vue-jsx';
|
import vueJsx from '@vitejs/plugin-vue-jsx';
|
||||||
import purgeIcons from 'vite-plugin-purge-icons';
|
import purgeIcons from 'vite-plugin-purge-icons';
|
||||||
import windiCSS from 'vite-plugin-windicss';
|
import windiCSS from 'vite-plugin-windicss';
|
||||||
import VitePluginCertificate from 'vite-plugin-mkcert';
|
|
||||||
import { configHtmlPlugin } from './html';
|
import { configHtmlPlugin } from './html';
|
||||||
import { configMockPlugin } from './mock';
|
import { configMockPlugin } from './mock';
|
||||||
import { configCompressPlugin } from './compress';
|
import { configCompressPlugin } from './compress';
|
||||||
import { configVisualizerConfig } from './visualizer';
|
import { configVisualizerConfig } from './visualizer';
|
||||||
import { configSvgIconsPlugin } from './svgSprite';
|
import { configSvgIconsPlugin } from './svgSprite';
|
||||||
|
|
||||||
export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) {
|
export async function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) {
|
||||||
const { VITE_USE_MOCK, VITE_BUILD_COMPRESS, VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE } = viteEnv;
|
const { VITE_USE_MOCK, VITE_BUILD_COMPRESS, VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE } = viteEnv;
|
||||||
|
|
||||||
const vitePlugins: (PluginOption | PluginOption[])[] = [
|
const vitePlugins: (PluginOption | PluginOption[])[] = [
|
||||||
|
|
@ -18,11 +17,6 @@ export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) {
|
||||||
vue(),
|
vue(),
|
||||||
// have to
|
// have to
|
||||||
vueJsx(),
|
vueJsx(),
|
||||||
// support name
|
|
||||||
//vueSetupExtend(),
|
|
||||||
VitePluginCertificate({
|
|
||||||
source: 'coding',
|
|
||||||
}),
|
|
||||||
];
|
];
|
||||||
|
|
||||||
// vite-plugin-windicss
|
// vite-plugin-windicss
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
|
|
||||||
import { createSvgIconsPlugin } from 'vite-plugin-svg-icons';
|
import { createSvgIconsPlugin } from 'vite-plugin-svg-icons';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
import type { PluginOption } from 'vite';
|
||||||
|
|
||||||
export function configSvgIconsPlugin(isBuild: boolean) {
|
export function configSvgIconsPlugin(isBuild: boolean) {
|
||||||
const svgIconsPlugin = createSvgIconsPlugin({
|
const svgIconsPlugin = createSvgIconsPlugin({
|
||||||
|
|
@ -13,5 +14,5 @@ export function configSvgIconsPlugin(isBuild: boolean) {
|
||||||
// default
|
// default
|
||||||
symbolId: 'icon-[dir]-[name]',
|
symbolId: 'icon-[dir]-[name]',
|
||||||
});
|
});
|
||||||
return svgIconsPlugin;
|
return svgIconsPlugin as PluginOption;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
154
package.json
154
package.json
|
|
@ -72,117 +72,113 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ant-design/colors": "^6.0.0",
|
"@ant-design/colors": "^7.0.0",
|
||||||
"@ant-design/icons-vue": "^6.1.0",
|
"@ant-design/icons-vue": "^6.1.0",
|
||||||
"@iconify/iconify": "^2.2.1",
|
"@iconify/iconify": "^3.1.0",
|
||||||
"@logicflow/core": "^1.1.13",
|
"@logicflow/core": "^1.2.1",
|
||||||
"@logicflow/extension": "^1.1.13",
|
"@logicflow/extension": "^1.2.1",
|
||||||
"@vue/runtime-core": "^3.2.33",
|
"@vue/runtime-core": "^3.2.47",
|
||||||
"@vue/shared": "^3.2.33",
|
"@vue/shared": "^3.2.47",
|
||||||
"@vueuse/core": "^8.3.0",
|
"@vueuse/core": "^9.13.0",
|
||||||
"@vueuse/shared": "^8.3.0",
|
"@vueuse/shared": "^9.13.0",
|
||||||
"@zxcvbn-ts/core": "^2.0.1",
|
"@zxcvbn-ts/core": "^2.2.1",
|
||||||
"ant-design-vue": "^3.2.0",
|
"ant-design-vue": "^3.2.16",
|
||||||
"axios": "^0.26.1",
|
"axios": "^1.3.4",
|
||||||
"codemirror": "^5.65.3",
|
"codemirror": "^5.65.12",
|
||||||
"cropperjs": "^1.5.12",
|
"cropperjs": "^1.5.13",
|
||||||
"crypto-js": "^4.1.1",
|
"crypto-js": "^4.1.1",
|
||||||
"dayjs": "^1.11.1",
|
"dayjs": "^1.11.7",
|
||||||
"echarts": "^5.3.2",
|
"echarts": "^5.4.2",
|
||||||
"exceljs": "^4.3.0",
|
"exceljs": "^4.3.0",
|
||||||
"intro.js": "^5.1.0",
|
"intro.js": "^7.0.1",
|
||||||
"lodash-es": "^4.17.21",
|
"lodash-es": "^4.17.21",
|
||||||
"mockjs": "^1.1.0",
|
"mockjs": "^1.1.0",
|
||||||
"nprogress": "^0.2.0",
|
"nprogress": "^0.2.0",
|
||||||
"path-to-regexp": "^6.2.0",
|
"path-to-regexp": "^6.2.1",
|
||||||
"pinia": "2.0.12",
|
"pinia": "2.0.33",
|
||||||
"print-js": "^1.6.0",
|
"print-js": "^1.6.0",
|
||||||
"qrcode": "^1.5.0",
|
"qrcode": "^1.5.1",
|
||||||
"qs": "^6.10.3",
|
"qs": "^6.11.1",
|
||||||
"resize-observer-polyfill": "^1.5.1",
|
"resize-observer-polyfill": "^1.5.1",
|
||||||
"showdown": "^2.1.0",
|
"showdown": "^2.1.0",
|
||||||
"sortablejs": "^1.15.0",
|
"sortablejs": "^1.15.0",
|
||||||
"tinymce": "^5.10.7",
|
"tinymce": "^5.10.7",
|
||||||
"vditor": "^3.8.13",
|
"vditor": "^3.9.1",
|
||||||
"vue": "^3.2.47",
|
"vue": "^3.2.47",
|
||||||
"vue-i18n": "^9.1.9",
|
"vue-i18n": "^9.2.2",
|
||||||
"vue-json-pretty": "^2.0.6",
|
"vue-json-pretty": "^2.2.4",
|
||||||
"vue-router": "^4.0.14",
|
"vue-router": "^4.1.6",
|
||||||
"vue-types": "^4.1.1",
|
"vue-types": "^5.0.2",
|
||||||
"vuedraggable": "^4.1.0",
|
"vuedraggable": "^4.1.0",
|
||||||
"vxe-table": "^4.3.9",
|
"vxe-table": "^4.3.11",
|
||||||
"vxe-table-plugin-export-xlsx": "^3.0.4",
|
"vxe-table-plugin-export-xlsx": "^3.0.4",
|
||||||
"xe-utils": "^3.5.7",
|
"xe-utils": "^3.5.7",
|
||||||
"xlsx": "^0.18.5"
|
"xlsx": "^0.18.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@commitlint/cli": "^16.2.3",
|
"@commitlint/cli": "^17.5.1",
|
||||||
"@commitlint/config-conventional": "^16.2.1",
|
"@commitlint/config-conventional": "^17.4.4",
|
||||||
"@iconify/json": "^2.1.30",
|
"@iconify/json": "^2.2.43",
|
||||||
"@purge-icons/generated": "^0.8.1",
|
"@purge-icons/generated": "^0.9.0",
|
||||||
"@types/codemirror": "^5.60.5",
|
"@types/codemirror": "^5.60.7",
|
||||||
"@types/crypto-js": "^4.1.1",
|
"@types/crypto-js": "^4.1.1",
|
||||||
"@types/fs-extra": "^9.0.13",
|
"@types/fs-extra": "^11.0.1",
|
||||||
"@types/inquirer": "^8.2.1",
|
"@types/inquirer": "^8.2.6",
|
||||||
"@types/intro.js": "^3.0.2",
|
"@types/intro.js": "^5.1.1",
|
||||||
"@types/lodash-es": "^4.17.6",
|
"@types/lodash-es": "^4.17.7",
|
||||||
"@types/mockjs": "^1.0.6",
|
"@types/mockjs": "^1.0.7",
|
||||||
"@types/node": "^17.0.25",
|
"@types/node": "^18.15.11",
|
||||||
"@types/nprogress": "^0.2.0",
|
"@types/nprogress": "^0.2.0",
|
||||||
"@types/qrcode": "^1.4.2",
|
"@types/qrcode": "^1.5.0",
|
||||||
"@types/qs": "^6.9.7",
|
"@types/qs": "^6.9.7",
|
||||||
"@types/showdown": "^1.9.4",
|
"@types/showdown": "^2.0.0",
|
||||||
"@types/sortablejs": "^1.10.7",
|
"@types/sortablejs": "^1.15.1",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.20.0",
|
"@typescript-eslint/eslint-plugin": "^5.57.0",
|
||||||
"@typescript-eslint/parser": "^5.20.0",
|
"@typescript-eslint/parser": "^5.57.0",
|
||||||
"@vitejs/plugin-vue": "^2.3.1",
|
"@vitejs/plugin-vue": "^4.1.0",
|
||||||
"@vitejs/plugin-vue-jsx": "^1.3.10",
|
"@vitejs/plugin-vue-jsx": "^3.0.1",
|
||||||
"@vue/compiler-sfc": "^3.2.33",
|
"@vue/compiler-sfc": "^3.2.47",
|
||||||
"@vue/test-utils": "^2.0.0-rc.21",
|
"@vue/test-utils": "^2.3.2",
|
||||||
"autoprefixer": "^10.4.4",
|
"autoprefixer": "^10.4.14",
|
||||||
"conventional-changelog-cli": "^2.2.2",
|
"conventional-changelog-cli": "^2.2.2",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"cz-git": "^1.3.9",
|
"cz-git": "^1.6.1",
|
||||||
"czg": "^1.3.9",
|
"czg": "^1.6.1",
|
||||||
"dotenv": "^16.0.0",
|
"dotenv": "^16.0.3",
|
||||||
"eslint": "^8.13.0",
|
"eslint": "^8.37.0",
|
||||||
"eslint-config-prettier": "^8.5.0",
|
"eslint-config-prettier": "^8.8.0",
|
||||||
"eslint-plugin-prettier": "^4.0.0",
|
"eslint-plugin-prettier": "^4.2.1",
|
||||||
"eslint-plugin-vue": "^8.6.0",
|
"eslint-plugin-vue": "^9.10.0",
|
||||||
"esno": "^0.14.1",
|
"esno": "^0.16.3",
|
||||||
"fs-extra": "^10.1.0",
|
"fs-extra": "^11.1.1",
|
||||||
"husky": "^7.0.4",
|
"husky": "^8.0.3",
|
||||||
"inquirer": "^8.2.2",
|
"inquirer": "^9.1.5",
|
||||||
"less": "^4.1.2",
|
"less": "^4.1.3",
|
||||||
"lint-staged": "12.3.7",
|
"lint-staged": "13.2.0",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"picocolors": "^1.0.0",
|
"picocolors": "^1.0.0",
|
||||||
"postcss": "^8.4.12",
|
"postcss": "^8.4.21",
|
||||||
"postcss-html": "^1.4.1",
|
"postcss-html": "^1.5.0",
|
||||||
"postcss-less": "^6.0.0",
|
"postcss-less": "^6.0.0",
|
||||||
"prettier": "^2.6.2",
|
"prettier": "^2.8.7",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^4.4.1",
|
||||||
"rollup": "^2.70.2",
|
"rollup-plugin-visualizer": "^5.9.0",
|
||||||
"rollup-plugin-visualizer": "^5.6.0",
|
"sass": "^1.60.0",
|
||||||
"sass": "^1.57.1",
|
"stylelint": "^15.4.0",
|
||||||
"stylelint": "^14.7.1",
|
"stylelint-config-recommended": "^11.0.0",
|
||||||
"stylelint-config-prettier": "^9.0.3",
|
|
||||||
"stylelint-config-recommended": "^7.0.0",
|
|
||||||
"stylelint-config-recommended-vue": "^1.4.0",
|
"stylelint-config-recommended-vue": "^1.4.0",
|
||||||
"stylelint-config-standard": "^25.0.0",
|
"stylelint-config-standard": "^32.0.0",
|
||||||
"stylelint-order": "^5.0.0",
|
"stylelint-order": "^6.0.3",
|
||||||
"ts-node": "^10.7.0",
|
"typescript": "^5.0.3",
|
||||||
"typescript": "^4.6.3",
|
|
||||||
"vite": "^4.3.0-beta.1",
|
"vite": "^4.3.0-beta.1",
|
||||||
"vite-plugin-compression": "^0.5.1",
|
"vite-plugin-compression": "^0.5.1",
|
||||||
"vite-plugin-html": "^3.2.0",
|
"vite-plugin-html": "^3.2.0",
|
||||||
"vite-plugin-mkcert": "^1.6.0",
|
|
||||||
"vite-plugin-mock": "^2.9.6",
|
"vite-plugin-mock": "^2.9.6",
|
||||||
"vite-plugin-purge-icons": "^0.8.1",
|
"vite-plugin-purge-icons": "^0.9.2",
|
||||||
"vite-plugin-svg-icons": "^2.0.1",
|
"vite-plugin-svg-icons": "^2.0.1",
|
||||||
"vite-plugin-windicss": "^1.8.4",
|
"vite-plugin-windicss": "^1.8.10",
|
||||||
"vue-eslint-parser": "^8.3.0",
|
"vue-eslint-parser": "^9.1.1",
|
||||||
"vue-tsc": "^1.0.9"
|
"vue-tsc": "^1.2.0"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@8.1.0",
|
"packageManager": "pnpm@8.1.0",
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|
|
||||||
2496
pnpm-lock.yaml
2496
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
|
|
@ -10,27 +10,27 @@
|
||||||
"stop": "npx pm2 stop ecosystem.config.js"
|
"stop": "npx pm2 stop ecosystem.config.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"fs-extra": "^10.0.1",
|
"fs-extra": "^11.1.1",
|
||||||
"koa": "^2.13.4",
|
"koa": "^2.14.1",
|
||||||
"koa-body": "^4.2.0",
|
"koa-body": "^6.0.1",
|
||||||
"koa-bodyparser": "^4.3.0",
|
"koa-bodyparser": "^4.4.0",
|
||||||
"koa-route": "^3.2.0",
|
"koa-route": "^3.2.0",
|
||||||
"koa-router": "^10.1.1",
|
"koa-router": "^12.0.0",
|
||||||
"koa-static": "^5.0.0",
|
"koa-static": "^5.0.0",
|
||||||
"koa-websocket": "^6.0.0",
|
"koa-websocket": "^7.0.0",
|
||||||
"koa2-cors": "^2.0.6"
|
"koa2-cors": "^2.0.6"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/koa": "^2.13.4",
|
"@types/koa": "^2.13.6",
|
||||||
"@types/koa-bodyparser": "^5.0.2",
|
"@types/koa-bodyparser": "^5.0.2",
|
||||||
"@types/koa-router": "^7.4.4",
|
"@types/koa-router": "^7.4.4",
|
||||||
"@types/node": "^17.0.21",
|
"@types/node": "^18.15.11",
|
||||||
"nodemon": "^2.0.15",
|
"nodemon": "^2.0.22",
|
||||||
"pm2": "^5.2.0",
|
"pm2": "^5.3.0",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^4.4.1",
|
||||||
"ts-node": "^10.7.0",
|
"ts-node": "^10.9.1",
|
||||||
"tsconfig-paths": "^3.14.0",
|
"tsconfig-paths": "^4.2.0",
|
||||||
"tsup": "^5.12.1",
|
"tsup": "^6.7.0",
|
||||||
"typescript": "^4.6.2"
|
"typescript": "^5.0.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ const __APP_INFO__ = {
|
||||||
lastBuildTime: dayjs().format('YYYY-MM-DD HH:mm:ss'),
|
lastBuildTime: dayjs().format('YYYY-MM-DD HH:mm:ss'),
|
||||||
};
|
};
|
||||||
|
|
||||||
export default ({ command, mode }: ConfigEnv): UserConfig => {
|
export default async ({ command, mode }: ConfigEnv): Promise<UserConfig> => {
|
||||||
const root = process.cwd();
|
const root = process.cwd();
|
||||||
|
|
||||||
const env = loadEnv(mode, root);
|
const env = loadEnv(mode, root);
|
||||||
|
|
@ -53,8 +53,6 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
server: {
|
server: {
|
||||||
https: true,
|
|
||||||
// Listening on all local IPs
|
|
||||||
host: true,
|
host: true,
|
||||||
// Load proxy configuration from .env
|
// Load proxy configuration from .env
|
||||||
proxy: createProxy(VITE_PROXY),
|
proxy: createProxy(VITE_PROXY),
|
||||||
|
|
@ -95,7 +93,7 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
|
||||||
},
|
},
|
||||||
|
|
||||||
// The vite plugin used by the project. The quantity is large, so it is separately extracted and managed
|
// The vite plugin used by the project. The quantity is large, so it is separately extracted and managed
|
||||||
plugins: createVitePlugins(viteEnv, isBuild),
|
plugins: await createVitePlugins(viteEnv, isBuild),
|
||||||
|
|
||||||
optimizeDeps: {
|
optimizeDeps: {
|
||||||
// @iconify/iconify: The dependency is dynamically and virtually loaded by @purge-icons/generated, so it needs to be specified explicitly
|
// @iconify/iconify: The dependency is dynamically and virtually loaded by @purge-icons/generated, so it needs to be specified explicitly
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue