-
Notifications
You must be signed in to change notification settings - Fork 14
/
package.json
354 lines (354 loc) · 9.39 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
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
{
"name": "debugger",
"publisher": "effectful",
"displayName": "Effectful JavaScript Debugger",
"description": "Time-Traveling, Persistent State, Hot-Swapping, API and more",
"author": "Vitalii Akimov <vitaliy.akimov@gmail.com>",
"version": "1.4.7",
"license": "MIT",
"homepage": "https://marketplace.visualstudio.com/items?itemName=effectful.debugger",
"icon": "icon.png",
"engines": {
"vscode": "^1.51.0"
},
"bugs": {
"url": "https://github.com/awto/effectfuljs/issues"
},
"keywords": [
"javascript",
"typescript",
"node",
"web"
],
"categories": [
"Debuggers"
],
"activationEvents": [
"onDebugInitialConfigurations",
"onDebugResolve:effectful"
],
"main": "./out/extension.js",
"contributes": {
"breakpoints": [
{
"language": "javascript"
},
{
"language": "typescript"
},
{
"language": "typescriptreact"
},
{
"language": "javascriptreact"
}
],
"commands": [],
"debuggers": [
{
"type": "effectful",
"label": "Debug with EffectfulJS",
"program": "./out/debugAdapter.js",
"runtime": "node",
"configurationAttributes": {
"launch": {
"properties": {
"stopOnEntry": {
"type": "boolean",
"description": "Automatically stop after launch",
"default": true
},
"stopOnExit": {
"type": "boolean",
"description": "Automatically stop just before program's exit (for traveling backward in time)",
"default": true
},
"verbose": {
"type": [
"boolean",
"number"
],
"description": "Enable logging.",
"default": 2
},
"timeTravel": {
"type": "boolean",
"description": "Transpile sources with time-traveling support",
"default": true
},
"timeTravelDisabled": {
"type": "boolean",
"description": "Don't start time traveling trace collection immediately (use `EDBG.journal.enabled = true` to enable in code)",
"default": true
},
"command": {
"type": "string",
"description": "A command to run on launch"
},
"cwd": {
"type": "string",
"default": "${workspaceFolder}",
"description": "Working folder for the launched command"
},
"args": {
"items": {
"type": "string"
},
"type": "array",
"description": "Arguments for the command",
"default": []
},
"console": {
"type": "string",
"enum": [
"internalConsole",
"integratedTerminal",
"externalTerminal"
],
"enumDescriptions": [
"VS Code Debug Console (which doesn't support to read input from a program)",
"VS Code's integrated terminal",
"External terminal that can be configured via user settings"
],
"description": "Where to launch the debug target (for preset:\"node\")",
"default": "internalConsole"
},
"env": {
"type": "object",
"additionalProperties": {
"type": [
"string",
"null"
]
},
"description": "Environment variables for the command",
"default": {}
},
"preset": {
"type": "string",
"enum": [
"node",
"browser",
"next",
"listener"
],
"enumDescriptions": [
"Run a command as a local process, intercepting all node processes to debug",
"Run Create React App based project in a browser (not implemented)",
"Run NextJS project (not implemented)",
"Awaits debuggee connections"
],
"default": "node",
"description": "Zero-config presets"
},
"open": {
"type": [
"boolean",
"string"
],
"default": true,
"description": "Open the URL (default if `true`) in the local browser for `preset:\"browser\"`."
},
"reuse": {
"type": "boolean",
"default": false,
"description": "Don't kill the launched process on stopping sessions, and reuse it on its next start (if it still runs)."
},
"htmlTemplate": {
"type": [
"null",
"string"
],
"default": null,
"description": "A template file for HtmlWebpackPlugin (for \"browser\" preset)"
},
"indexJs": {
"type": [
"null",
"string"
],
"default": null,
"description": "webpack entry file for \"browser\" preset"
},
"reconnectTimeout": {
"type": "number",
"default": -1,
"description": "Number of seconds to wait for more remotes before exiting the session (always if less than 0)"
},
"debuggerHost": {
"type": "string",
"default": "localhost",
"description": "WebSocket host where the debugger listens for applications connections"
},
"debuggerPort": {
"type": "number",
"default": 20011,
"description": "WebSocket port number where the debugger listens for applications connections"
},
"runtime": {
"type": "string",
"default": "vscode",
"description": "Debugger's runtime"
},
"srcRoot": {
"type": "string",
"default": "^\"\\${workspaceRoot}\"",
"description": "The project's root, files outside of the root won't be instrumented"
},
"fastRestart": {
"enum": [
null,
true,
"entry"
],
"default": "entry",
"description": "Restart from previously stored snapshot, without restarting the whole process"
},
"onChange": {
"type": [
"null",
"string"
],
"enum": [
"restart",
"merge"
],
"default": "restart",
"description": "what to do when sources changed during debugging"
},
"include": {
"type": "string",
"default": "",
"description": "a glob for selecting files which will be transpiled"
},
"blackbox": {
"type": "string",
"default": "",
"description": "a glob for selecting files which will be transpiled in blackbox mode"
},
"exclude": {
"type": "string",
"default": "",
"description": "a glob for selecting files which won't be transpiled"
}
}
}
},
"initialConfigurations": [
{
"type": "effectful",
"request": "launch",
"name": "Launch Node application",
"preset": "node",
"cwd": "^\"\\${workspaceRoot}\"",
"command": "node",
"args": [
"^\"\\${file}\""
]
}
],
"configurationSnippets": [
{
"label": "Effectful: Listener",
"description": "Don't launch anything, just listen for incoming connections.",
"body": {
"type": "effectful",
"request": "launch",
"name": "Listen for incoming connections",
"preset": "listener",
"reconnectTimeout": -1,
"console": "integratedTerminal",
"env": {}
}
},
{
"label": "Effectful: Browser",
"description": "Launch a browser's application (uses react-scripts to derive configs)",
"body": {
"type": "effectful",
"request": "launch",
"name": "Browser application",
"preset": "browser",
"cwd": "^\"\\${workspaceRoot}\"",
"reconnectTimeout": 5,
"timeTravel": true,
"open": true
}
},
{
"label": "Effectful: Node",
"description": "Launch for create-react-app created project",
"body": {
"type": "effectful",
"request": "launch",
"name": "Node application",
"preset": "node",
"cwd": "^\"\\${workspaceRoot}\"",
"command": "node",
"args": [
"^\"\\${file}\""
],
"console": "integratedTerminal",
"timeTravel": true,
"env": {}
}
},
{
"label": "Effectful: NextJS",
"description": "Launch NextJS project",
"body": {
"type": "effectful",
"request": "launch",
"name": "NextJS application",
"preset": "next",
"cwd": "^\"\\${workspaceRoot}\"",
"timeTravel": true,
"console": "integratedTerminal",
"env": {}
}
}
]
}
]
},
"repository": {
"type": "git",
"url": "https://github.com/awto/effectfuljs.git"
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"test:adapter": "mocha -u tdd ./out/test/adapter",
"test": "npm run compile && npm run test:adapter",
"test:ide": "node ./out/test/runTest.js"
},
"devDependencies": {
"@effectful/debugger": "^1.4.7",
"@types/glob": "^7.1.4",
"@types/mocha": "^9.0.0",
"@types/node": "^18.7.3",
"@types/puppeteer": "^5.4.4",
"@types/vscode": "^1.51.0",
"@types/ws": "^8.2.2",
"cross-env": "^7.0.3",
"mocha": "^10.0.0",
"puppeteer": "^16.1.0",
"tslint": "^6.1.3",
"typescript": "^4.5.4",
"vscode-debugadapter-testsupport": "^1.34.0",
"vscode-test": "^1.2.2"
},
"dependencies": {
"vscode-debugadapter": "^1.34.0",
"vscode-debugprotocol": "^1.40.0",
"ws": "^8.4.0"
},
"private": true,
"__metadata": {
"id": "c405cb0f-9eb4-4e77-aa83-d67b1bd68788",
"publisherDisplayName": "effectful",
"publisherId": "b496913d-941e-4f52-9a31-7fe8761a65f4",
"isPreReleaseVersion": false
}
}