chore: add Inspector(developer open vscode) (#3725)

This commit is contained in:
sea
2024-04-10 16:10:13 +08:00
committed by GitHub
parent 6054fa2ffa
commit c9966b1f13
3 changed files with 96 additions and 1 deletions

View File

@@ -145,6 +145,7 @@
"unbuild": "^2.0.0",
"vite": "^5.1.3",
"vite-plugin-mock": "^2.9.6",
"vite-plugin-vue-inspector": "^4.0.2",
"vue-tsc": "^1.8.27"
},
"packageManager": "pnpm@8.10.0",

90
pnpm-lock.yaml generated
View File

@@ -234,6 +234,9 @@ importers:
vite-plugin-mock:
specifier: ^2.9.6
version: 2.9.8(mockjs@1.1.0)(vite@5.1.3)
vite-plugin-vue-inspector:
specifier: ^4.0.2
version: 4.0.2(vite@5.1.3)
vue-tsc:
specifier: ^1.8.27
version: 1.8.27(typescript@5.3.3)
@@ -589,6 +592,24 @@ packages:
'@babel/helper-split-export-declaration': 7.22.6
semver: 6.3.1
/@babel/helper-create-class-features-plugin@7.24.4(@babel/core@7.23.9):
resolution: {integrity: sha512-lG75yeuUSVu0pIcbhiYMXBXANHrpUPaOfu7ryAzskCgKUHuAxRQI5ssrtmF0X9UXldPlvT0XM/A4F44OXRt6iQ==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0
dependencies:
'@babel/core': 7.23.9
'@babel/helper-annotate-as-pure': 7.22.5
'@babel/helper-environment-visitor': 7.22.20
'@babel/helper-function-name': 7.23.0
'@babel/helper-member-expression-to-functions': 7.23.0
'@babel/helper-optimise-call-expression': 7.22.5
'@babel/helper-replace-supers': 7.24.1(@babel/core@7.23.9)
'@babel/helper-skip-transparent-expression-wrappers': 7.22.5
'@babel/helper-split-export-declaration': 7.22.6
semver: 6.3.1
dev: true
/@babel/helper-environment-visitor@7.22.20:
resolution: {integrity: sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==}
engines: {node: '>=6.9.0'}
@@ -641,6 +662,11 @@ packages:
resolution: {integrity: sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==}
engines: {node: '>=6.9.0'}
/@babel/helper-plugin-utils@7.24.0:
resolution: {integrity: sha512-9cUznXMG0+FxRuJfvL82QlTqIzhVW9sL0KjMPHhAOOvpQGL8QtdxnBKILjBqxlHyliz0yCa1G903ZXI/FuHy2w==}
engines: {node: '>=6.9.0'}
dev: true
/@babel/helper-replace-supers@7.22.20(@babel/core@7.23.9):
resolution: {integrity: sha512-qsW0In3dbwQUbK8kejJ4R7IHVGwHJlV6lpG6UA7a9hSa2YEiAib+N1T2kr6PEeUT+Fl7najmSOS6SmAwCHK6Tw==}
engines: {node: '>=6.9.0'}
@@ -652,6 +678,18 @@ packages:
'@babel/helper-member-expression-to-functions': 7.23.0
'@babel/helper-optimise-call-expression': 7.22.5
/@babel/helper-replace-supers@7.24.1(@babel/core@7.23.9):
resolution: {integrity: sha512-QCR1UqC9BzG5vZl8BMicmZ28RuUBnHhAMddD8yHFHDRH9lLTZ9uUPehX8ctVPT8l0TKblJidqcgUUKGVrePleQ==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0
dependencies:
'@babel/core': 7.23.9
'@babel/helper-environment-visitor': 7.22.20
'@babel/helper-member-expression-to-functions': 7.23.0
'@babel/helper-optimise-call-expression': 7.22.5
dev: true
/@babel/helper-simple-access@7.22.5:
resolution: {integrity: sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==}
engines: {node: '>=6.9.0'}
@@ -707,6 +745,18 @@ packages:
dependencies:
'@babel/types': 7.23.9
/@babel/plugin-proposal-decorators@7.24.1(@babel/core@7.23.9):
resolution: {integrity: sha512-zPEvzFijn+hRvJuX2Vu3KbEBN39LN3f7tW3MQO2LsIs57B26KU+kUc82BdAktS1VCM6libzh45eKGI65lg0cpA==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.23.9
'@babel/helper-create-class-features-plugin': 7.24.4(@babel/core@7.23.9)
'@babel/helper-plugin-utils': 7.24.0
'@babel/plugin-syntax-decorators': 7.24.1(@babel/core@7.23.9)
dev: true
/@babel/plugin-syntax-async-generators@7.8.4(@babel/core@7.23.9):
resolution: {integrity: sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==}
peerDependencies:
@@ -734,6 +784,26 @@ packages:
'@babel/helper-plugin-utils': 7.22.5
dev: false
/@babel/plugin-syntax-decorators@7.24.1(@babel/core@7.23.9):
resolution: {integrity: sha512-05RJdO/cCrtVWuAaSn1tS3bH8jbsJa/Y1uD186u6J4C/1mnHFxseeuWpsqr9anvo7TUulev7tm7GDwRV+VuhDw==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.23.9
'@babel/helper-plugin-utils': 7.24.0
dev: true
/@babel/plugin-syntax-import-attributes@7.24.1(@babel/core@7.23.9):
resolution: {integrity: sha512-zhQTMH0X2nVLnb04tz+s7AMuasX8U0FnpE+nHTOhSOINjWMnopoZTxtIKsd45n4GQ/HIZLyfIpoul8e2m0DnRA==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.23.9
'@babel/helper-plugin-utils': 7.24.0
dev: true
/@babel/plugin-syntax-import-meta@7.10.4(@babel/core@7.23.9):
resolution: {integrity: sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==}
peerDependencies:
@@ -741,7 +811,6 @@ packages:
dependencies:
'@babel/core': 7.23.9
'@babel/helper-plugin-utils': 7.22.5
dev: false
/@babel/plugin-syntax-json-strings@7.8.3(@babel/core@7.23.9):
resolution: {integrity: sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==}
@@ -11833,6 +11902,25 @@ packages:
- supports-color
dev: true
/vite-plugin-vue-inspector@4.0.2(vite@5.1.3):
resolution: {integrity: sha512-KPvLEuafPG13T7JJuQbSm5PwSxKFnVS965+MP1we2xGw9BPkkc/+LPix5MMWenpKWqtjr0ws8THrR+KuoDC8hg==}
peerDependencies:
vite: ^3.0.0-0 || ^4.0.0-0 || ^5.0.0-0
dependencies:
'@babel/core': 7.23.9
'@babel/plugin-proposal-decorators': 7.24.1(@babel/core@7.23.9)
'@babel/plugin-syntax-import-attributes': 7.24.1(@babel/core@7.23.9)
'@babel/plugin-syntax-import-meta': 7.10.4(@babel/core@7.23.9)
'@babel/plugin-transform-typescript': 7.23.6(@babel/core@7.23.9)
'@vue/babel-plugin-jsx': 1.2.1(@babel/core@7.23.9)
'@vue/compiler-dom': 3.4.19
kolorist: 1.8.0
magic-string: 0.30.7
vite: 5.1.3(@types/node@20.11.19)(less@4.2.0)(sass@1.71.0)
transitivePeerDependencies:
- supports-color
dev: true
/vite@5.1.3(@types/node@20.11.19)(less@4.2.0)(sass@1.71.0):
resolution: {integrity: sha512-UfmUD36DKkqhi/F75RrxvPpry+9+tTkrXfMNZD+SboZqBCMsxKtO52XeGzzuh7ioz+Eo/SYDBbdb0Z7vgcDJew==}
engines: {node: ^18.0.0 || >=20.0.0}

View File

@@ -1,4 +1,5 @@
import { defineApplicationConfig } from '@vben/vite-config';
import Inspector from 'vite-plugin-vue-inspector';
export default defineApplicationConfig({
overrides: {
@@ -36,5 +37,10 @@ export default defineApplicationConfig({
clientFiles: ['./index.html', './src/{views,components}/*'],
},
},
plugins: [
Inspector({
openInEditorHost: 'http://localhost:5173',
}),
],
},
});