Commit 4e4ce944bcab4aaab677112b7cba9d86501e416c
1 parent
b63f7d17
feat: support dev https
Showing
2 changed files
with
43 additions
and
39 deletions
Too many changes to show.
To preserve performance only 2 of 5 files are displayed.
build/vite/plugin/index.ts
1 | -import type { Plugin } from 'vite'; | ||
2 | import vue from '@vitejs/plugin-vue'; | 1 | import vue from '@vitejs/plugin-vue'; |
3 | import vueJsx from '@vitejs/plugin-vue-jsx'; | 2 | import vueJsx from '@vitejs/plugin-vue-jsx'; |
4 | import legacy from '@vitejs/plugin-legacy'; | 3 | import legacy from '@vitejs/plugin-legacy'; |
5 | import purgeIcons from 'vite-plugin-purge-icons'; | 4 | import purgeIcons from 'vite-plugin-purge-icons'; |
6 | import windiCSS from 'vite-plugin-windicss'; | 5 | import windiCSS from 'vite-plugin-windicss'; |
6 | +import VitePluginCertificate from 'vite-plugin-mkcert'; | ||
7 | import vueSetupExtend from 'vite-plugin-vue-setup-extend'; | 7 | import vueSetupExtend from 'vite-plugin-vue-setup-extend'; |
8 | import { configHtmlPlugin } from './html'; | 8 | import { configHtmlPlugin } from './html'; |
9 | import { configPwaConfig } from './pwa'; | 9 | import { configPwaConfig } from './pwa'; |
@@ -24,13 +24,16 @@ export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) { | @@ -24,13 +24,16 @@ export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) { | ||
24 | VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE, | 24 | VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE, |
25 | } = viteEnv; | 25 | } = viteEnv; |
26 | 26 | ||
27 | - const vitePlugins: (Plugin | Plugin[])[] = [ | 27 | + const vitePlugins = [ |
28 | // have to | 28 | // have to |
29 | vue(), | 29 | vue(), |
30 | // have to | 30 | // have to |
31 | vueJsx(), | 31 | vueJsx(), |
32 | // support name | 32 | // support name |
33 | vueSetupExtend(), | 33 | vueSetupExtend(), |
34 | + VitePluginCertificate({ | ||
35 | + source: 'coding', | ||
36 | + }), | ||
34 | ]; | 37 | ]; |
35 | 38 | ||
36 | // vite-plugin-windicss | 39 | // vite-plugin-windicss |
package.json
@@ -35,15 +35,15 @@ | @@ -35,15 +35,15 @@ | ||
35 | "dependencies": { | 35 | "dependencies": { |
36 | "@ant-design/colors": "^6.0.0", | 36 | "@ant-design/colors": "^6.0.0", |
37 | "@ant-design/icons-vue": "^6.0.1", | 37 | "@ant-design/icons-vue": "^6.0.1", |
38 | - "@iconify/iconify": "^2.1.0", | ||
39 | - "@logicflow/core": "^0.7.16", | ||
40 | - "@logicflow/extension": "^0.7.16", | ||
41 | - "@vue/runtime-core": "^3.2.26", | ||
42 | - "@vue/shared": "^3.2.26", | ||
43 | - "@vueuse/core": "^7.4.1", | ||
44 | - "@vueuse/shared": "^7.4.1", | 38 | + "@iconify/iconify": "^2.1.1", |
39 | + "@logicflow/core": "^1.0.7", | ||
40 | + "@logicflow/extension": "^1.0.7", | ||
41 | + "@vue/runtime-core": "^3.2.27", | ||
42 | + "@vue/shared": "^3.2.27", | ||
43 | + "@vueuse/core": "^7.5.3", | ||
44 | + "@vueuse/shared": "^7.5.3", | ||
45 | "@zxcvbn-ts/core": "^1.2.0", | 45 | "@zxcvbn-ts/core": "^1.2.0", |
46 | - "ant-design-vue": "3.0.0-beta.3", | 46 | + "ant-design-vue": "3.0.0-beta.7", |
47 | "axios": "^0.24.0", | 47 | "axios": "^0.24.0", |
48 | "codemirror": "^5.65.0", | 48 | "codemirror": "^5.65.0", |
49 | "cropperjs": "^1.5.12", | 49 | "cropperjs": "^1.5.12", |
@@ -58,93 +58,94 @@ | @@ -58,93 +58,94 @@ | ||
58 | "pinia": "2.0.9", | 58 | "pinia": "2.0.9", |
59 | "print-js": "^1.6.0", | 59 | "print-js": "^1.6.0", |
60 | "qrcode": "^1.5.0", | 60 | "qrcode": "^1.5.0", |
61 | - "qs": "^6.10.2", | 61 | + "qs": "^6.10.3", |
62 | "resize-observer-polyfill": "^1.5.1", | 62 | "resize-observer-polyfill": "^1.5.1", |
63 | "showdown": "^1.9.1", | 63 | "showdown": "^1.9.1", |
64 | "sortablejs": "^1.14.0", | 64 | "sortablejs": "^1.14.0", |
65 | "tinymce": "^5.10.2", | 65 | "tinymce": "^5.10.2", |
66 | "vditor": "^3.8.10", | 66 | "vditor": "^3.8.10", |
67 | - "vue": "^3.2.26", | 67 | + "vue": "^3.2.27", |
68 | "vue-i18n": "^9.1.9", | 68 | "vue-i18n": "^9.1.9", |
69 | "vue-json-pretty": "^1.8.2", | 69 | "vue-json-pretty": "^1.8.2", |
70 | "vue-router": "^4.0.12", | 70 | "vue-router": "^4.0.12", |
71 | "vue-types": "^4.1.1", | 71 | "vue-types": "^4.1.1", |
72 | - "xlsx": "^0.17.4" | 72 | + "xlsx": "^0.17.5" |
73 | }, | 73 | }, |
74 | "devDependencies": { | 74 | "devDependencies": { |
75 | - "@commitlint/cli": "^16.0.1", | 75 | + "@commitlint/cli": "^16.0.2", |
76 | "@commitlint/config-conventional": "^16.0.0", | 76 | "@commitlint/config-conventional": "^16.0.0", |
77 | - "@iconify/json": "^2.0.16", | 77 | + "@iconify/json": "^2.0.25", |
78 | "@purge-icons/generated": "^0.7.0", | 78 | "@purge-icons/generated": "^0.7.0", |
79 | "@types/codemirror": "^5.60.5", | 79 | "@types/codemirror": "^5.60.5", |
80 | - "@types/crypto-js": "^4.0.2", | 80 | + "@types/crypto-js": "^4.1.0", |
81 | "@types/fs-extra": "^9.0.13", | 81 | "@types/fs-extra": "^9.0.13", |
82 | "@types/inquirer": "^8.1.3", | 82 | "@types/inquirer": "^8.1.3", |
83 | "@types/intro.js": "^3.0.2", | 83 | "@types/intro.js": "^3.0.2", |
84 | - "@types/jest": "^27.0.3", | 84 | + "@types/jest": "^27.4.0", |
85 | "@types/lodash-es": "^4.17.5", | 85 | "@types/lodash-es": "^4.17.5", |
86 | - "@types/mockjs": "^1.0.4", | ||
87 | - "@types/node": "^17.0.5", | 86 | + "@types/mockjs": "^1.0.6", |
87 | + "@types/node": "^17.0.9", | ||
88 | "@types/nprogress": "^0.2.0", | 88 | "@types/nprogress": "^0.2.0", |
89 | "@types/qrcode": "^1.4.2", | 89 | "@types/qrcode": "^1.4.2", |
90 | "@types/qs": "^6.9.7", | 90 | "@types/qs": "^6.9.7", |
91 | "@types/showdown": "^1.9.4", | 91 | "@types/showdown": "^1.9.4", |
92 | "@types/sortablejs": "^1.10.7", | 92 | "@types/sortablejs": "^1.10.7", |
93 | - "@typescript-eslint/eslint-plugin": "^5.8.1", | ||
94 | - "@typescript-eslint/parser": "^5.8.1", | 93 | + "@typescript-eslint/eslint-plugin": "^5.10.0", |
94 | + "@typescript-eslint/parser": "^5.10.0", | ||
95 | "@vitejs/plugin-legacy": "^1.6.4", | 95 | "@vitejs/plugin-legacy": "^1.6.4", |
96 | "@vitejs/plugin-vue": "^2.0.1", | 96 | "@vitejs/plugin-vue": "^2.0.1", |
97 | "@vitejs/plugin-vue-jsx": "^1.3.3", | 97 | "@vitejs/plugin-vue-jsx": "^1.3.3", |
98 | - "@vue/compiler-sfc": "3.2.26", | 98 | + "@vue/compiler-sfc": "3.2.27", |
99 | "@vue/test-utils": "^2.0.0-rc.18", | 99 | "@vue/test-utils": "^2.0.0-rc.18", |
100 | - "autoprefixer": "^10.4.0", | 100 | + "autoprefixer": "^10.4.2", |
101 | "commitizen": "^4.2.4", | 101 | "commitizen": "^4.2.4", |
102 | "conventional-changelog-cli": "^2.2.2", | 102 | "conventional-changelog-cli": "^2.2.2", |
103 | "cross-env": "^7.0.3", | 103 | "cross-env": "^7.0.3", |
104 | - "dotenv": "^10.0.0", | ||
105 | - "eslint": "^8.5.0", | 104 | + "dotenv": "^14.2.0", |
105 | + "eslint": "^8.7.0", | ||
106 | "eslint-config-prettier": "^8.3.0", | 106 | "eslint-config-prettier": "^8.3.0", |
107 | - "eslint-define-config": "^1.2.1", | ||
108 | - "eslint-plugin-jest": "^25.3.2", | 107 | + "eslint-define-config": "^1.2.2", |
108 | + "eslint-plugin-jest": "^25.7.0", | ||
109 | "eslint-plugin-prettier": "^4.0.0", | 109 | "eslint-plugin-prettier": "^4.0.0", |
110 | - "eslint-plugin-vue": "^8.2.0", | ||
111 | - "esno": "^0.13.0", | 110 | + "eslint-plugin-vue": "^8.3.0", |
111 | + "esno": "^0.14.0", | ||
112 | "fs-extra": "^10.0.0", | 112 | "fs-extra": "^10.0.0", |
113 | "husky": "^7.0.4", | 113 | "husky": "^7.0.4", |
114 | "inquirer": "^8.2.0", | 114 | "inquirer": "^8.2.0", |
115 | - "jest": "^27.4.5", | 115 | + "jest": "^27.4.7", |
116 | "less": "^4.1.2", | 116 | "less": "^4.1.2", |
117 | - "lint-staged": "12.1.4", | 117 | + "lint-staged": "12.1.7", |
118 | "npm-run-all": "^4.1.5", | 118 | "npm-run-all": "^4.1.5", |
119 | "postcss": "^8.4.5", | 119 | "postcss": "^8.4.5", |
120 | "postcss-html": "^1.3.0", | 120 | "postcss-html": "^1.3.0", |
121 | - "postcss-less": "^5.0.0", | 121 | + "postcss-less": "^6.0.0", |
122 | "prettier": "^2.5.1", | 122 | "prettier": "^2.5.1", |
123 | "rimraf": "^3.0.2", | 123 | "rimraf": "^3.0.2", |
124 | - "rollup-plugin-visualizer": "^5.5.2", | 124 | + "rollup-plugin-visualizer": "^5.5.4", |
125 | "stylelint": "^14.2.0", | 125 | "stylelint": "^14.2.0", |
126 | "stylelint-config-html": "^1.0.0", | 126 | "stylelint-config-html": "^1.0.0", |
127 | "stylelint-config-prettier": "^9.0.3", | 127 | "stylelint-config-prettier": "^9.0.3", |
128 | "stylelint-config-recommended": "^6.0.0", | 128 | "stylelint-config-recommended": "^6.0.0", |
129 | "stylelint-config-standard": "^24.0.0", | 129 | "stylelint-config-standard": "^24.0.0", |
130 | "stylelint-order": "^5.0.0", | 130 | "stylelint-order": "^5.0.0", |
131 | - "ts-jest": "^27.1.2", | 131 | + "ts-jest": "^27.1.3", |
132 | "ts-node": "^10.4.0", | 132 | "ts-node": "^10.4.0", |
133 | "typescript": "^4.5.4", | 133 | "typescript": "^4.5.4", |
134 | - "vite": "^2.7.8", | 134 | + "vite": "^2.8.0-beta.2", |
135 | "vite-plugin-compression": "^0.4.0", | 135 | "vite-plugin-compression": "^0.4.0", |
136 | "vite-plugin-html": "^2.1.2", | 136 | "vite-plugin-html": "^2.1.2", |
137 | "vite-plugin-imagemin": "^0.5.1", | 137 | "vite-plugin-imagemin": "^0.5.1", |
138 | + "vite-plugin-mkcert": "^1.5.2", | ||
138 | "vite-plugin-mock": "^2.9.6", | 139 | "vite-plugin-mock": "^2.9.6", |
139 | "vite-plugin-purge-icons": "^0.7.0", | 140 | "vite-plugin-purge-icons": "^0.7.0", |
140 | - "vite-plugin-pwa": "^0.11.12", | 141 | + "vite-plugin-pwa": "^0.11.13", |
141 | "vite-plugin-style-import": "^1.4.1", | 142 | "vite-plugin-style-import": "^1.4.1", |
142 | - "vite-plugin-svg-icons": "^1.0.5", | 143 | + "vite-plugin-svg-icons": "^1.1.0", |
143 | "vite-plugin-theme": "^0.8.1", | 144 | "vite-plugin-theme": "^0.8.1", |
144 | "vite-plugin-vue-setup-extend": "^0.3.0", | 145 | "vite-plugin-vue-setup-extend": "^0.3.0", |
145 | - "vite-plugin-windicss": "^1.6.1", | 146 | + "vite-plugin-windicss": "^1.6.3", |
146 | "vue-eslint-parser": "^8.0.1", | 147 | "vue-eslint-parser": "^8.0.1", |
147 | - "vue-tsc": "^0.30.1" | 148 | + "vue-tsc": "^0.30.5" |
148 | }, | 149 | }, |
149 | "resolutions": { | 150 | "resolutions": { |
150 | "bin-wrapper": "npm:bin-wrapper-china", | 151 | "bin-wrapper": "npm:bin-wrapper-china", |