-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
182 lines (182 loc) · 4.71 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
{
"name": "uniapp-run",
"displayName": "uniapp run",
"description": "基于HBuilderX uniapp cli启动",
"version": "0.0.9",
"engines": {
"vscode": "^1.77.0"
},
"publisher": "hb0730",
"author": {
"name": "hb0730",
"email": "[email protected]"
},
"repository": {
"type": "git",
"url": "git+https://github.com/hb0730/vscode-uniapp-run.git"
},
"license": "MIT",
"keywords": [
"uniapp",
"HBuilderX",
"build"
],
"categories": [
"Debuggers"
],
"activationEvents": [
"onDebug",
"onCommand:uniapp-run.publish",
"onCommand:uniapp-run.run"
],
"icon": "images/logo.png",
"main": "./out/extension.js",
"contributes": {
"configuration": {
"title": "uniapp-run",
"properties": {
"uniapp-run.HBuilderX": {
"type": "string",
"description": "HBuilderX安装地址"
},
"uniapp-run.wxDevtool": {
"type": "string",
"description": "微信开发者工具"
},
"uniapp-run.baiduDevtool": {
"type":"string",
"description": "百度开发者工具"
}
}
},
"debuggers": [
{
"type": "uniapp-run",
"label": "Uniapp Run",
"languages": [
"uniapp"
],
"program": "./out/debugger/debugAdapter.js",
"runtime": "node",
"configurationAttributes": {
"launch": {
"required": [
"platform"
],
"properties": {
"platform": {
"type": "string",
"description": "启动模式: mp-weixin,mp-alipay,mp-baidu等",
"enum": [
"mp-weixin",
"mp-alipay",
"mp-baidu",
"mp-toutiao",
"mp-lark",
"mp-qq"
],
"enumDescriptions": [
"微信小程序",
"支付宝小程序",
"百度小程序",
"头条小程序",
"飞书小程序",
"QQ小程序"
],
"default": "mp-weixin"
},
"compress": {
"type": "boolean",
"description": "是否运行时压缩",
"default": false
},
"src":{
"type":"string",
"description": "项目路径,默认当前环境目录"
},
"openDevTool": {
"type": "boolean",
"description": "是否运行开发者工具",
"default": false
},
"vueVersion":{
"type":"string",
"description":"vue版本",
"enum":[
"v2",
"v3"
],
"enumDescriptions":[
"vue2",
"vue3"
],
"default":"v2"
},
"trace": {
"type": "boolean",
"description": "trace级别的日志",
"default": false
}
}
}
},
"initialConfigurations": [
{
"type": "uniapp-run",
"request": "launch",
"name": "Uniapp Run",
"platform": "mp-weixin"
}
]
}
],
"commands":[
{
"command": "uniapp-run.publish",
"title": "发布uniapp"
},
{
"command": "uniapp-run.run",
"title": "运行uniapp"
}
],
"views": {
"explorer":[
{
"id":"uniappExplorer",
"name":"运行uniapp",
"icon":"images/logo.png"
}
]
}
},
"scripts": {
"vscode:prepublish": "pnpm run build",
"build": "pnpm compile",
"compile": "node build/build.js",
"watch": "tsc -watch -p ./",
"package": "pnpm vsce package --no-dependencies",
"publish": "pnpm vsce publish --no-dependencies",
"pretest": "pnpm run compile && pnpm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.1",
"@types/node": "20.x",
"@types/vscode": "^1.77.0",
"@typescript-eslint/eslint-plugin": "^6.7.0",
"@typescript-eslint/parser": "^6.7.0",
"@vscode/debugadapter": "^1.59.0",
"@vscode/debugadapter-testsupport": "^1.59.0",
"@vscode/debugprotocol": "^1.59.0",
"@vscode/test-electron": "^2.3.0",
"@vscode/vsce": "^2.18.0",
"esbuild": "^0.20.0",
"eslint": "^8.36.0",
"glob": "^10.0.0",
"mocha": "^10.2.0",
"typescript": "^5.0.0"
}
}