Commit ab7448008321867809457928f5a58880ce5e4325
1 parent
9579a45b
chore: Requires pnpm 8 and node 16
Showing
3 changed files
with
49 additions
and
54 deletions
Too many changes to show.
To preserve performance only 3 of 8 files are displayed.
.env
build/utils.ts
@@ -24,10 +24,6 @@ export function wrapperEnv(envConf: Recordable): ViteEnv { | @@ -24,10 +24,6 @@ export function wrapperEnv(envConf: Recordable): ViteEnv { | ||
24 | for (const envName of Object.keys(envConf)) { | 24 | for (const envName of Object.keys(envConf)) { |
25 | let realName = envConf[envName].replace(/\\n/g, '\n'); | 25 | let realName = envConf[envName].replace(/\\n/g, '\n'); |
26 | realName = realName === 'true' ? true : realName === 'false' ? false : realName; | 26 | realName = realName === 'true' ? true : realName === 'false' ? false : realName; |
27 | - | ||
28 | - if (envName === 'VITE_PORT') { | ||
29 | - realName = Number(realName); | ||
30 | - } | ||
31 | if (envName === 'VITE_PROXY' && realName) { | 27 | if (envName === 'VITE_PROXY' && realName) { |
32 | try { | 28 | try { |
33 | realName = JSON.parse(realName.replace(/'/g, '"')); | 29 | realName = JSON.parse(realName.replace(/'/g, '"')); |
package.json
1 | { | 1 | { |
2 | "name": "vben-admin", | 2 | "name": "vben-admin", |
3 | "version": "2.9.0", | 3 | "version": "2.9.0", |
4 | + "homepage": "https://github.com/anncwb/vue-vben-admin", | ||
5 | + "bugs": { | ||
6 | + "url": "https://github.com/anncwb/vue-vben-admin/issues" | ||
7 | + }, | ||
8 | + "repository": { | ||
9 | + "type": "git", | ||
10 | + "url": "git+https://github.com/anncwb/vue-vben-admin.git" | ||
11 | + }, | ||
12 | + "license": "MIT", | ||
4 | "author": { | 13 | "author": { |
5 | "name": "vben", | 14 | "name": "vben", |
6 | "email": "anncwb@126.com", | 15 | "email": "anncwb@126.com", |
@@ -29,9 +38,43 @@ | @@ -29,9 +38,43 @@ | ||
29 | "test:gzip": "npx http-server dist --cors --gzip -c-1", | 38 | "test:gzip": "npx http-server dist --cors --gzip -c-1", |
30 | "test:br": "npx http-server dist --cors --brotli -c-1", | 39 | "test:br": "npx http-server dist --cors --brotli -c-1", |
31 | "reinstall": "rimraf pnpm-lock.yaml && rimraf package.lock.json && rimraf node_modules && npm run bootstrap", | 40 | "reinstall": "rimraf pnpm-lock.yaml && rimraf package.lock.json && rimraf node_modules && npm run bootstrap", |
41 | + "preinstall": "npx only-allow pnpm", | ||
32 | "prepare": "husky install", | 42 | "prepare": "husky install", |
33 | "gen:icon": "esno ./build/generate/icon/index.ts" | 43 | "gen:icon": "esno ./build/generate/icon/index.ts" |
34 | }, | 44 | }, |
45 | + "lint-staged": { | ||
46 | + "*.{js,jsx,ts,tsx}": [ | ||
47 | + "eslint --fix", | ||
48 | + "prettier --write" | ||
49 | + ], | ||
50 | + "{!(package)*.json,*.code-snippets,.!(browserslist)*rc}": [ | ||
51 | + "prettier --write--parser json" | ||
52 | + ], | ||
53 | + "package.json": [ | ||
54 | + "prettier --write" | ||
55 | + ], | ||
56 | + "*.vue": [ | ||
57 | + "eslint --fix", | ||
58 | + "prettier --write", | ||
59 | + "stylelint --fix" | ||
60 | + ], | ||
61 | + "*.{scss,less,styl,html}": [ | ||
62 | + "stylelint --fix", | ||
63 | + "prettier --write" | ||
64 | + ], | ||
65 | + "*.md": [ | ||
66 | + "prettier --write" | ||
67 | + ] | ||
68 | + }, | ||
69 | + "config": { | ||
70 | + "commitizen": { | ||
71 | + "path": "node_modules/cz-git" | ||
72 | + } | ||
73 | + }, | ||
74 | + "resolutions": { | ||
75 | + "bin-wrapper": "npm:bin-wrapper-china", | ||
76 | + "gifsicle": "5.2.0" | ||
77 | + }, | ||
35 | "dependencies": { | 78 | "dependencies": { |
36 | "@ant-design/colors": "^6.0.0", | 79 | "@ant-design/colors": "^6.0.0", |
37 | "@ant-design/icons-vue": "^6.1.0", | 80 | "@ant-design/icons-vue": "^6.1.0", |
@@ -65,16 +108,16 @@ | @@ -65,16 +108,16 @@ | ||
65 | "sortablejs": "^1.15.0", | 108 | "sortablejs": "^1.15.0", |
66 | "tinymce": "^5.10.7", | 109 | "tinymce": "^5.10.7", |
67 | "vditor": "^3.8.13", | 110 | "vditor": "^3.8.13", |
68 | - "vue": "^3.2.45", | 111 | + "vue": "^3.2.47", |
69 | "vue-i18n": "^9.1.9", | 112 | "vue-i18n": "^9.1.9", |
70 | "vue-json-pretty": "^2.0.6", | 113 | "vue-json-pretty": "^2.0.6", |
71 | "vue-router": "^4.0.14", | 114 | "vue-router": "^4.0.14", |
72 | "vue-types": "^4.1.1", | 115 | "vue-types": "^4.1.1", |
116 | + "vuedraggable": "^4.1.0", | ||
73 | "vxe-table": "^4.3.9", | 117 | "vxe-table": "^4.3.9", |
74 | "vxe-table-plugin-export-xlsx": "^3.0.4", | 118 | "vxe-table-plugin-export-xlsx": "^3.0.4", |
75 | "xe-utils": "^3.5.7", | 119 | "xe-utils": "^3.5.7", |
76 | - "xlsx": "^0.18.5", | ||
77 | - "vuedraggable": "^4.1.0" | 120 | + "xlsx": "^0.18.5" |
78 | }, | 121 | }, |
79 | "devDependencies": { | 122 | "devDependencies": { |
80 | "@commitlint/cli": "^16.2.3", | 123 | "@commitlint/cli": "^16.2.3", |
@@ -151,50 +194,9 @@ | @@ -151,50 +194,9 @@ | ||
151 | "vue-eslint-parser": "^8.3.0", | 194 | "vue-eslint-parser": "^8.3.0", |
152 | "vue-tsc": "^1.0.9" | 195 | "vue-tsc": "^1.0.9" |
153 | }, | 196 | }, |
154 | - "resolutions": { | ||
155 | - "bin-wrapper": "npm:bin-wrapper-china", | ||
156 | - "rollup": "^2.56.3", | ||
157 | - "gifsicle": "5.2.0" | ||
158 | - }, | ||
159 | - "repository": { | ||
160 | - "type": "git", | ||
161 | - "url": "git+https://github.com/anncwb/vue-vben-admin.git" | ||
162 | - }, | ||
163 | - "license": "MIT", | ||
164 | - "bugs": { | ||
165 | - "url": "https://github.com/anncwb/vue-vben-admin/issues" | ||
166 | - }, | ||
167 | - "homepage": "https://github.com/anncwb/vue-vben-admin", | 197 | + "packageManager": "pnpm@8.1.0", |
168 | "engines": { | 198 | "engines": { |
169 | - "node": "^12 || >=14" | ||
170 | - }, | ||
171 | - "lint-staged": { | ||
172 | - "*.{js,jsx,ts,tsx}": [ | ||
173 | - "eslint --fix", | ||
174 | - "prettier --write" | ||
175 | - ], | ||
176 | - "{!(package)*.json,*.code-snippets,.!(browserslist)*rc}": [ | ||
177 | - "prettier --write--parser json" | ||
178 | - ], | ||
179 | - "package.json": [ | ||
180 | - "prettier --write" | ||
181 | - ], | ||
182 | - "*.vue": [ | ||
183 | - "eslint --fix", | ||
184 | - "prettier --write", | ||
185 | - "stylelint --fix" | ||
186 | - ], | ||
187 | - "*.{scss,less,styl,html}": [ | ||
188 | - "stylelint --fix", | ||
189 | - "prettier --write" | ||
190 | - ], | ||
191 | - "*.md": [ | ||
192 | - "prettier --write" | ||
193 | - ] | ||
194 | - }, | ||
195 | - "config": { | ||
196 | - "commitizen": { | ||
197 | - "path": "node_modules/cz-git" | ||
198 | - } | 199 | + "node": ">=16.15.1", |
200 | + "pnpm": ">=8.1.0" | ||
199 | } | 201 | } |
200 | } | 202 | } |