Commit 24a3f90dc3c183dacea0e9f3f688ee0a88de0986

Authored by Vben
1 parent 159d900d

chore: typo

README.md
@@ -132,8 +132,8 @@ If these plugins are helpful to you, you can give a star support @@ -132,8 +132,8 @@ If these plugins are helpful to you, you can give a star support
132 - [vite-plugin-mock](https://github.com/anncwb/vite-plugin-mock) - Used for local and development environment data mock 132 - [vite-plugin-mock](https://github.com/anncwb/vite-plugin-mock) - Used for local and development environment data mock
133 - [vite-plugin-html](https://github.com/anncwb/vite-plugin-html) - Used for html template conversion and compression 133 - [vite-plugin-html](https://github.com/anncwb/vite-plugin-html) - Used for html template conversion and compression
134 - [vite-plugin-style-import](https://github.com/anncwb/vite-plugin-style-import) - Used for component library style introduction on demand 134 - [vite-plugin-style-import](https://github.com/anncwb/vite-plugin-style-import) - Used for component library style introduction on demand
135 -- [vite-plugin-theme](https://github.com/anncwb/vite-plugin-theme) - Used to pack compressed image resources  
136 -- [vite-plugin-imagemin](https://github.com/anncwb/vite-plugin-imagemin) - Used for online switching of theme colors and other color-related configurations 135 +- [vite-plugin-theme](https://github.com/anncwb/vite-plugin-theme) - Used for online switching of theme colors and other color-related configurations
  136 +- [vite-plugin-imagemin](https://github.com/anncwb/vite-plugin-imagemin) - Used to pack compressed image resources
137 - [vite-plugin-compression](https://github.com/anncwb/vite-plugin-compression) - Used to pack input .gz|.brotil files 137 - [vite-plugin-compression](https://github.com/anncwb/vite-plugin-compression) - Used to pack input .gz|.brotil files
138 - [vite-plugin-svg-icons](https://github.com/anncwb/vite-plugin-svg-icons) - Used to quickly generate svg sprite 138 - [vite-plugin-svg-icons](https://github.com/anncwb/vite-plugin-svg-icons) - Used to quickly generate svg sprite
139 139
README.zh-CN.md
@@ -132,8 +132,8 @@ yarn build @@ -132,8 +132,8 @@ yarn build
132 - [vite-plugin-mock](https://github.com/anncwb/vite-plugin-mock) - 用于本地及开发环境数据 mock 132 - [vite-plugin-mock](https://github.com/anncwb/vite-plugin-mock) - 用于本地及开发环境数据 mock
133 - [vite-plugin-html](https://github.com/anncwb/vite-plugin-html) - 用于 html 模版转换及压缩 133 - [vite-plugin-html](https://github.com/anncwb/vite-plugin-html) - 用于 html 模版转换及压缩
134 - [vite-plugin-style-import](https://github.com/anncwb/vite-plugin-style-import) - 用于组件库样式按需引入 134 - [vite-plugin-style-import](https://github.com/anncwb/vite-plugin-style-import) - 用于组件库样式按需引入
135 -- [vite-plugin-theme](https://github.com/anncwb/vite-plugin-theme) - 用于打包压缩图片资源  
136 -- [vite-plugin-imagemin](https://github.com/anncwb/vite-plugin-imagemin) - 用于在线切换主题色等颜色相关配置 135 +- [vite-plugin-theme](https://github.com/anncwb/vite-plugin-theme) - 用于在线切换主题色等颜色相关配置
  136 +- [vite-plugin-imagemin](https://github.com/anncwb/vite-plugin-imagemin) - 用于打包压缩图片资源
137 - [vite-plugin-compression](https://github.com/anncwb/vite-plugin-compression) - 用于打包输入.gz|.brotil 文件 137 - [vite-plugin-compression](https://github.com/anncwb/vite-plugin-compression) - 用于打包输入.gz|.brotil 文件
138 - [vite-plugin-svg-icons](https://github.com/anncwb/vite-plugin-svg-icons) - 用于快速生成 svg 雪碧图 138 - [vite-plugin-svg-icons](https://github.com/anncwb/vite-plugin-svg-icons) - 用于快速生成 svg 雪碧图
139 139
build/gen/generateIconJson.ts renamed to build/generate/icon/index.ts
@@ -2,7 +2,7 @@ import path from 'path'; @@ -2,7 +2,7 @@ import path from 'path';
2 import fs from 'fs-extra'; 2 import fs from 'fs-extra';
3 import inquirer from 'inquirer'; 3 import inquirer from 'inquirer';
4 import chalk from 'chalk'; 4 import chalk from 'chalk';
5 -import pkg from '../../package.json'; 5 +import pkg from '../../../package.json';
6 6
7 async function generateIcon() { 7 async function generateIcon() {
8 const dir = path.resolve(process.cwd(), 'node_modules/@iconify/json'); 8 const dir = path.resolve(process.cwd(), 'node_modules/@iconify/json');
package.json
@@ -27,7 +27,7 @@ @@ -27,7 +27,7 @@
27 "test:br": "http-server dist --cors --brotli -c-1", 27 "test:br": "http-server dist --cors --brotli -c-1",
28 "reinstall": "rimraf yarn.lock && rimraf package.lock.json && rimraf node_modules && npm run bootstrap", 28 "reinstall": "rimraf yarn.lock && rimraf package.lock.json && rimraf node_modules && npm run bootstrap",
29 "install:husky": "is-ci || husky install", 29 "install:husky": "is-ci || husky install",
30 - "gen:icon": "esno ./build/gen/generateIconJson.ts", 30 + "gen:icon": "esno ./build/generate/icon/index.ts",
31 "postinstall": "npm run install:husky" 31 "postinstall": "npm run install:husky"
32 }, 32 },
33 "dependencies": { 33 "dependencies": {
@@ -57,7 +57,7 @@ @@ -57,7 +57,7 @@
57 "devDependencies": { 57 "devDependencies": {
58 "@commitlint/cli": "^12.0.1", 58 "@commitlint/cli": "^12.0.1",
59 "@commitlint/config-conventional": "^12.0.1", 59 "@commitlint/config-conventional": "^12.0.1",
60 - "@iconify/json": "^1.1.320", 60 + "@iconify/json": "^1.1.321",
61 "@purge-icons/generated": "^0.7.0", 61 "@purge-icons/generated": "^0.7.0",
62 "@types/crypto-js": "^4.0.1", 62 "@types/crypto-js": "^4.0.1",
63 "@types/fs-extra": "^9.0.8", 63 "@types/fs-extra": "^9.0.8",
@@ -65,6 +65,7 @@ @@ -65,6 +65,7 @@
65 "@types/inquirer": "^7.3.1", 65 "@types/inquirer": "^7.3.1",
66 "@types/lodash-es": "^4.17.4", 66 "@types/lodash-es": "^4.17.4",
67 "@types/mockjs": "^1.0.3", 67 "@types/mockjs": "^1.0.3",
  68 + "@types/node": "^14.14.35",
68 "@types/nprogress": "^0.2.0", 69 "@types/nprogress": "^0.2.0",
69 "@types/qrcode": "^1.4.0", 70 "@types/qrcode": "^1.4.0",
70 "@types/qs": "^6.9.6", 71 "@types/qs": "^6.9.6",
@@ -114,10 +115,10 @@ @@ -114,10 +115,10 @@
114 "vite-plugin-mock": "^2.3.0", 115 "vite-plugin-mock": "^2.3.0",
115 "vite-plugin-purge-icons": "^0.7.0", 116 "vite-plugin-purge-icons": "^0.7.0",
116 "vite-plugin-pwa": "^0.5.6", 117 "vite-plugin-pwa": "^0.5.6",
117 - "vite-plugin-style-import": "^0.8.1", 118 + "vite-plugin-style-import": "^0.8.3",
118 "vite-plugin-svg-icons": "^0.4.0", 119 "vite-plugin-svg-icons": "^0.4.0",
119 "vite-plugin-theme": "^0.5.0", 120 "vite-plugin-theme": "^0.5.0",
120 - "vite-plugin-windicss": "0.9.7", 121 + "vite-plugin-windicss": "0.9.11",
121 "vue-eslint-parser": "^7.6.0", 122 "vue-eslint-parser": "^7.6.0",
122 "yargs": "^16.2.0" 123 "yargs": "^16.2.0"
123 }, 124 },
types/global.d.ts
@@ -70,7 +70,9 @@ declare interface WheelEvent { @@ -70,7 +70,9 @@ declare interface WheelEvent {
70 path?: EventTarget[]; 70 path?: EventTarget[];
71 } 71 }
72 72
73 -type ImportMetaEnv = ViteEnv; 73 +interface ImportMetaEnv extends ViteEnv {
  74 + __: unknown;
  75 +}
74 76
75 declare interface ViteEnv { 77 declare interface ViteEnv {
76 VITE_PORT: number; 78 VITE_PORT: number;
@@ -85,4 +87,5 @@ declare interface ViteEnv { @@ -85,4 +87,5 @@ declare interface ViteEnv {
85 VITE_BUILD_COMPRESS: 'gzip' | 'brotli' | 'none'; 87 VITE_BUILD_COMPRESS: 'gzip' | 'brotli' | 'none';
86 VITE_LEGACY: boolean; 88 VITE_LEGACY: boolean;
87 VITE_USE_IMAGEMIN: boolean; 89 VITE_USE_IMAGEMIN: boolean;
  90 + VITE_GENERATE_UI: string;
88 } 91 }
yarn.lock
@@ -1121,10 +1121,10 @@ @@ -1121,10 +1121,10 @@
1121 dependencies: 1121 dependencies:
1122 cross-fetch "^3.0.6" 1122 cross-fetch "^3.0.6"
1123 1123
1124 -"@iconify/json@^1.1.320":  
1125 - version "1.1.320"  
1126 - resolved "https://registry.npmjs.org/@iconify/json/-/json-1.1.320.tgz#2f3685f8f3394bc1e6c734621a62551e85cad63e"  
1127 - integrity sha512-cQpdMwjnGsKHCkabowCQ01figNBSwZ3UQxRLDD9gVlEpLuccpE2aWmRYPhbp7ofvZEyhffFn/zX9tPeoCAZnNQ== 1124 +"@iconify/json@^1.1.321":
  1125 + version "1.1.321"
  1126 + resolved "https://registry.npmjs.org/@iconify/json/-/json-1.1.321.tgz#266c93b9192004b5c6ebd26094aaf6a64aa3dadb"
  1127 + integrity sha512-Z72vJVwgtQ9FrM3dQ2EWkVlRgsg0eSugLhBUpXjj6Mt45gS358HmLT45kg9x2tNwFOJ4fzcVol2fO/J5ryYP0w==
1128 1128
1129 "@intlify/core-base@9.0.0": 1129 "@intlify/core-base@9.0.0":
1130 version "9.0.0" 1130 version "9.0.0"
@@ -1698,7 +1698,7 @@ @@ -1698,7 +1698,7 @@
1698 resolved "https://registry.npmjs.org/@types/mockjs/-/mockjs-1.0.3.tgz#bd8ee3c7cbbd9a18788ab677b9e4f97c8d0bb0bf" 1698 resolved "https://registry.npmjs.org/@types/mockjs/-/mockjs-1.0.3.tgz#bd8ee3c7cbbd9a18788ab677b9e4f97c8d0bb0bf"
1699 integrity sha512-OlwyyyoY81P8f7FU0zILUPxqQQ3/W+CwbqI6dWvOxaH8w948fAl1+hOG9C9ZgJcwzG+aloJcsastY4c4p91R1Q== 1699 integrity sha512-OlwyyyoY81P8f7FU0zILUPxqQQ3/W+CwbqI6dWvOxaH8w948fAl1+hOG9C9ZgJcwzG+aloJcsastY4c4p91R1Q==
1700 1700
1701 -"@types/node@*", "@types/node@^14.14.32": 1701 +"@types/node@*", "@types/node@^14.14.32", "@types/node@^14.14.35":
1702 version "14.14.35" 1702 version "14.14.35"
1703 resolved "https://registry.npmjs.org/@types/node/-/node-14.14.35.tgz#42c953a4e2b18ab931f72477e7012172f4ffa313" 1703 resolved "https://registry.npmjs.org/@types/node/-/node-14.14.35.tgz#42c953a4e2b18ab931f72477e7012172f4ffa313"
1704 integrity sha512-Lt+wj8NVPx0zUmUwumiVXapmaLUcAk3yPuHCFVXras9k5VT9TdhJqKqGVUQCD60OTMCl0qxJ57OiTL0Mic3Iag== 1704 integrity sha512-Lt+wj8NVPx0zUmUwumiVXapmaLUcAk3yPuHCFVXras9k5VT9TdhJqKqGVUQCD60OTMCl0qxJ57OiTL0Mic3Iag==
@@ -2091,10 +2091,10 @@ @@ -2091,10 +2091,10 @@
2091 dependencies: 2091 dependencies:
2092 vue-demi latest 2092 vue-demi latest
2093 2093
2094 -"@windicss/plugin-utils@0.9.7":  
2095 - version "0.9.7"  
2096 - resolved "https://registry.npmjs.org/@windicss/plugin-utils/-/plugin-utils-0.9.7.tgz#ffc70d9a0eb130a3fc691291becdcdab6ae55b36"  
2097 - integrity sha512-tyKcMTXENd7AYV1Z3DbZUq/x8/UM3bGeg327lHKrsklds6F4MKZRVwtG2ya5h5taeKmcLHK+qvIvknwhwKNxrA== 2094 +"@windicss/plugin-utils@0.9.11":
  2095 + version "0.9.11"
  2096 + resolved "https://registry.npmjs.org/@windicss/plugin-utils/-/plugin-utils-0.9.11.tgz#9b8951ff1495e1deb8a094098a343eb8babb9b3b"
  2097 + integrity sha512-gGLe3/Ud63fcpj1FTq+0/feP/UM34j9W+iSyBtpPnmfLx8mi2a9g9vhZrojqL9X9IYY+ZhHczZ8Fn9qcHdzWVw==
2098 dependencies: 2098 dependencies:
2099 debug "^4.3.2" 2099 debug "^4.3.2"
2100 fast-glob "^3.2.5" 2100 fast-glob "^3.2.5"
@@ -11295,10 +11295,10 @@ vite-plugin-pwa@^0.5.6: @@ -11295,10 +11295,10 @@ vite-plugin-pwa@^0.5.6:
11295 pretty-bytes "^5.6.0" 11295 pretty-bytes "^5.6.0"
11296 workbox-build "^6.1.1" 11296 workbox-build "^6.1.1"
11297 11297
11298 -vite-plugin-style-import@^0.8.1:  
11299 - version "0.8.1"  
11300 - resolved "https://registry.npmjs.org/vite-plugin-style-import/-/vite-plugin-style-import-0.8.1.tgz#e098c633cba3abef9b5a156aaf47f001567ebbb9"  
11301 - integrity sha512-qZg73SA2+tbuEk7b0VjubjceUKVzHB6NwDYd3R9Hd6At4+sJ/85UIlTkzxSWHNgkTQh4sIOMQi1olXjkSF7tjg== 11298 +vite-plugin-style-import@^0.8.3:
  11299 + version "0.8.3"
  11300 + resolved "https://registry.npmjs.org/vite-plugin-style-import/-/vite-plugin-style-import-0.8.3.tgz#6c9120f76cba103497c4631fd942ac1d6baa2694"
  11301 + integrity sha512-CAb/c6ZKYBCT9+oMv2GpbcDKDv4gq7lL0q8deRW0aIQaRbx5L/MdZCIKtbJiifVzTUzPb5qwrWTcnBc12uMioQ==
11302 dependencies: 11302 dependencies:
11303 "@rollup/pluginutils" "^4.1.0" 11303 "@rollup/pluginutils" "^4.1.0"
11304 change-case "^4.1.2" 11304 change-case "^4.1.2"
@@ -11348,12 +11348,12 @@ vite-plugin-theme@^0.5.0: @@ -11348,12 +11348,12 @@ vite-plugin-theme@^0.5.0:
11348 tinycolor2 "^1.4.2" 11348 tinycolor2 "^1.4.2"
11349 ts-jest "^26.5.3" 11349 ts-jest "^26.5.3"
11350 11350
11351 -vite-plugin-windicss@0.9.7:  
11352 - version "0.9.7"  
11353 - resolved "https://registry.npmjs.org/vite-plugin-windicss/-/vite-plugin-windicss-0.9.7.tgz#27840f480c786f920f0130b3058604c97c2d8a69"  
11354 - integrity sha512-chk7vlV2VyofE5FlxEIhsHajPDInnW44QljY+vHvnd/r90pBEJF6dS9+fpJoS5+jrCVWTCX6t1BL4rZOkIv69A== 11351 +vite-plugin-windicss@0.9.11:
  11352 + version "0.9.11"
  11353 + resolved "https://registry.npmjs.org/vite-plugin-windicss/-/vite-plugin-windicss-0.9.11.tgz#46809a7d30d5531f9f3568949cd00646a3178f5b"
  11354 + integrity sha512-wcF2VmglWqvtsi8Zq4kTVVU9jPiiAfdyy91TnlgaJYlgRaBZcwb7QSJ9p5SeOWIyl6RpzjlK2JFWa0djrVmG8w==
11355 dependencies: 11355 dependencies:
11356 - "@windicss/plugin-utils" "0.9.7" 11356 + "@windicss/plugin-utils" "0.9.11"
11357 debug "^4.3.2" 11357 debug "^4.3.2"
11358 windicss "^2.5.4" 11358 windicss "^2.5.4"
11359 11359