forked from 710850609/Auto.js-VSCode-Extension
-
Notifications
You must be signed in to change notification settings - Fork 89
/
package.json
240 lines (240 loc) · 6.79 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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
{
"name": "auto-js-vsce-fixed",
"displayName": "Auto.js-Autox.js-VSCodeExt",
"description": "用于在pc上vscode中开发autoxjs的自动化脚本的插件。兼容autojs 和autoxjs,增加功能:usb方式adb进行连接; 右键【文件夹】保存项目到设备;右键【js文件】运行;js文件中点击右上角运行; 结合webpack自动编译,js自动运行到手机",
"version": "1.109.0",
"publisher": "aaroncheng",
"icon": "logo.png",
"repository": {
"type": "github",
"url": "https://github.com/kkevsekk1/Auto.js-VSCode-Extension"
},
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Other"
],
"activationEvents": [],
"main": "./out/extension",
"contributes": {
"snippets": [
{
"language": "javascript",
"path": "./snippets/autojs.json"
}
],
"breakpoints": [
{
"language": "javascript"
}
],
"menus": {
"editor/title": [
{
"when": "resourceLangId == javascript",
"command": "extension.openDocument",
"group": "navigation@2"
},
{
"when": "resourceLangId == javascript",
"command": "extension.run",
"group": "navigation@1"
}
],
"explorer/context": [
{
"when": "explorerResourceIsFolder",
"command": "extension.saveProject",
"group": "navigation"
},
{
"when": "!explorerResourceIsFolder&&resourceExtname==.js",
"command": "extension.rerun",
"group": "navigation@1"
},
{
"when": "!explorerResourceIsFolder",
"command": "extension.save",
"group": "navigation@2"
}
]
},
"commands": [
{
"command": "extension.openDocument",
"title": "打开文档(Open Document)",
"icon": "logo.png",
"category": "Auto.js autoxjs"
},
{
"command": "extension.showQrCode",
"title": "显示服务端二维码(Show qr code)",
"category": "Auto.js autoxjs"
},
{
"command": "extension.showServerAddress",
"title": "显示服务端ip地址(Show server address)",
"category": "Auto.js autoxjs"
},
{
"command": "extension.startAllServer",
"title": "开启服务并监听ADB设备(Start all server), 如有多个同类插件,请禁用其他或本插件",
"category": "Auto.js autoxjs"
},
{
"command": "extension.stopAllServer",
"title": "停止服务并停止监听ADB设备(Stop all server)",
"category": "Auto.js autoxjs"
},
{
"command": "extension.startServer",
"title": "开启服务(Start Server), 如有多个同类插件,请禁用其他或本插件",
"category": "Auto.js autoxjs"
},
{
"command": "extension.stopServer",
"title": "停止服务(Stop Server)",
"category": "Auto.js autoxjs"
},
{
"command": "extension.startTrackADBDevices",
"title": "开始监听ADB设备(Start track adb devices)",
"category": "Auto.js autoxjs"
},
{
"command": "extension.stopTrackADBDevices",
"title": "停止监听ADB设备(Stop track adb devices)",
"category": "Auto.js autoxjs"
},
{
"command": "extension.manuallyConnectADB",
"title": "手动连接ADB设备(Manually connect adb device)",
"category": "Auto.js autoxjs"
},
{
"command": "extension.manuallyDisconnect",
"title": "手动关闭设备连接(Manually disconnect device)",
"category": "Auto.js autoxjs"
},
{
"command": "extension.run",
"title": "运行脚本(Run)",
"icon": "play.png",
"category": "Auto.js autoxjs"
},
{
"command": "extension.runOnDevice",
"title": "在指定设备运行脚本(Run On Device)",
"category": "Auto.js autoxjs"
},
{
"command": "extension.stop",
"title": "停止当前脚本(Stop)",
"category": "Auto.js autoxjs"
},
{
"command": "extension.stopAll",
"title": "停止所有脚本(Stop All)",
"category": "Auto.js autoxjs"
},
{
"command": "extension.rerun",
"title": "重新运行(Rerun)",
"category": "Auto.js autoxjs"
},
{
"command": "extension.save",
"title": "保存到所有设备(Save)",
"category": "Auto.js autoxjs"
},
{
"command": "extension.saveToDevice",
"title": "保存到指定设备(Save On Device)",
"category": "Auto.js autoxjs"
},
{
"command": "extension.newProject",
"title": "新建项目(New Project)",
"category": "Auto.js autoxjs"
},
{
"command": "extension.saveProject",
"title": "保存项目到设备(Save Project)",
"category": "Auto.js autoxjs"
},
{
"command": "extension.runProject",
"title": "运行项目(Run Project)",
"category": "Auto.js autoxjs"
}
],
"keybindings": [
{
"command": "extension.openDocument",
"key": "f4",
"mac": "f4",
"when": "editorTextFocus"
},
{
"command": "extension.run",
"key": "f5",
"mac": "f5",
"when": "editorTextFocus"
},
{
"command": "extension.stop",
"key": "shift+f5",
"mac": "shift+f5",
"when": "editorTextFocus"
},
{
"command": "extension.runOnDevice",
"key": "ctrl+f5",
"mac": "cmd+f5",
"when": "editorTextFocus"
},
{
"command": "extension.rerun",
"key": "ctrl+shift+f5",
"mac": "cmd+shift+f5",
"when": "editorTextFocus"
},
{
"command": "extension.save",
"key": "ctrl+shift+S",
"mac": "cmd+shift+S",
"when": "editorTextFocus"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/mocha": "^10.0.6",
"@types/node": "20.x",
"@types/vscode": "^1.85.0",
"@typescript-eslint/eslint-plugin": "^6.20.0",
"@typescript-eslint/parser": "^6.20.0",
"eslint": "^8.56.0",
"typescript": "^5.3.3"
},
"dependencies": {
"@devicefarmer/adbkit": "^3.2.6",
"@types/archiver": "^6.0.2",
"@types/stream-buffers": "^3.0.7",
"@types/walk": "^2.3.4",
"@types/websocket": "^1.0.10",
"archiver": "^6.0.1",
"stream-buffers": "^3.0.2",
"walk": "^2.3.15",
"websocket": "1.0.34"
},
"__npminstall_done": false
}