-
Notifications
You must be signed in to change notification settings - Fork 5
/
package.json
311 lines (311 loc) · 10.3 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
{
"name": "playdate-debug",
"displayName": "Playdate Debug",
"version": "1.16.0",
"publisher": "midouest",
"description": "Unofficial Playdate debug extension for macOS, Windows and Ubuntu",
"icon": "images/[email protected]",
"license": "MIT",
"engines": {
"vscode": "^1.64.0"
},
"categories": [
"Debuggers"
],
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/midouest/vscode-playdate-debug.git"
},
"bugs": {
"url": "https://github.com/midouest/vscode-playdate-debug/issues"
},
"lint-staged": {
"**/*": "prettier --write --ignore-unknown",
"src/**/*.ts": "eslint --fix"
},
"scripts": {
"prepare": "husky install",
"compile": "tsc -p ./",
"typecheck": "tsc -p tsconfig.json --noEmit",
"esbuild-base": "esbuild ./src/extension.ts --bundle --tsconfig=./tsconfig.json --external:vscode --format=cjs --platform=node --outfile=dist/extension.js",
"watch": "yarn esbuild-base --sourcemap --sources-content=false --watch",
"build": "yarn esbuild-base --sourcemap --sources-content=false",
"package": "vsce package",
"publish": "vsce publish",
"publish-pre-release": "vsce publish --pre-release",
"vscode:prepublish": "rimraf dist && yarn esbuild-base --minify",
"lint": "eslint",
"pretest": "rimraf out && yarn compile && yarn lint && yarn typecheck",
"test": "node ./out/test/runTest.js",
"test:coverage": "c8 yarn test",
"test:ci": "yarn test:coverage --ci"
},
"dependencies": {
"@vscode/vsce": "^2.15.0",
"inversify": "^6.0.1",
"reflect-metadata": "^0.1.13"
},
"devDependencies": {
"@types/glob": "^7.2.0",
"@types/mocha": "^9.1.0",
"@types/node": "^16.18.3",
"@types/vscode": "^1.64.0",
"@typescript-eslint/eslint-plugin": "^5.12.0",
"@typescript-eslint/parser": "^5.12.0",
"@vscode/test-electron": "^2.1.3",
"c8": "^7.12.0",
"esbuild": "^0.14.21",
"eslint": "^8.9.0",
"eslint-import-resolver-typescript": "^2.7.0",
"eslint-plugin-import": "^2.25.4",
"glob": "^7.2.0",
"husky": "^7.0.4",
"lint-staged": "^12.3.7",
"mocha": "^9.2.0",
"prettier": "^2.6.0",
"rimraf": "^3.0.2",
"typescript": "^4.5.5"
},
"main": "./dist/extension.js",
"activationEvents": [
"onCommand:workbench.action.tasks.runTask",
"onDebugResolve:playdate"
],
"workspaceTrust": {
"request": "never"
},
"contributes": {
"commands": [
{
"category": "Playdate",
"command": "playdate-debug.runEditorContents",
"icon": "$(play)",
"title": "Run file in Playdate Simulator"
},
{
"category": "Playdate",
"command": "playdate-debug.debugEditorContents",
"icon": "$(debug-alt)",
"title": "Debug file in Playdate Simulator"
}
],
"configuration": {
"title": "Playdate Debug",
"properties": {
"playdate-debug.sdkPath": {
"type": "string",
"description": "Path to the Playdate SDK. By default, the extension will use the PLAYDATE_SDK_PATH environment variable to find the Playdate SDK.",
"scope": "resource"
},
"playdate-debug.sourcePath": {
"type": "string",
"description": "Path to the game's source directory. By default, the extension will use the `source` folder in the workspace root directory as the source path.",
"scope": "resource"
},
"playdate-debug.outputPath": {
"type": [
"string",
"object"
],
"description": "Output directory for the compiled game bundle. By default, the extension will use the workspace root folder as the output path.",
"scope": "resource",
"properties": {
"sdkFolder": {
"type": "string",
"enum": [
"simulatorGames"
],
"enumDescriptions": [
"Write the compiled game bundle to the /Disk/Games directory in the Playdate SDK. This will cause the Playdate Simulator to display the game in the list of installed games"
],
"description": "Use a special folder within the Playdate SDK as the output path",
"default": "simulatorGames"
}
}
},
"playdate-debug.productName": {
"type": "string",
"description": "Compiled game bundle name without the .pdx extension. By default, the extension will use the value of the `name` field in the game's `pdxinfo` file.",
"scope": "resource"
}
}
},
"breakpoints": [
{
"language": "lua"
}
],
"taskDefinitions": [
{
"type": "pdc",
"when": "customExecutionSupported",
"properties": {
"incrementBuildNumber": {
"type": "boolean",
"description": "Increment the buildNumber property in pdxinfo after each build",
"default": false
},
"strip": {
"type": "boolean",
"description": "Strip debug symbols",
"default": false
},
"noCompress": {
"type": "boolean",
"description": "Don't compress output files",
"default": false
},
"verbose": {
"type": "boolean",
"description": "Verbose mode, gives info about what is happenin",
"default": false
},
"quiet": {
"type": "boolean",
"description": "Quiet mode, suppresses non-error output",
"default": false
},
"skipUnknown": {
"type": "boolean",
"description": "Skip unrecognized files instead of copying them to the pdx folder",
"default": false
}
}
},
{
"type": "playdate-simulator",
"when": "shellExecutionSupported && customExecutionSupported",
"properties": {
"openGame": {
"type": "boolean",
"description": "True if the simulator executable should launch with the game open. Defaults to true.",
"default": true
},
"kill": {
"type": "boolean",
"description": "True if any running simulator processes should be killed before launching a new one. Defaults to false.",
"default": false
}
}
}
],
"problemMatchers": [
{
"name": "pdc-lua",
"owner": "lua",
"pattern": {
"regexp": "^(warning|error):\\s+(.*):(\\d+):\\s+(.*)$",
"severity": 1,
"file": 2,
"line": 3,
"message": 4
},
"fileLocation": "absolute"
},
{
"name": "pdc-external",
"owner": "external",
"pattern": {
"regexp": "^(error):\\s+(.*)$",
"severity": 1,
"message": 2
},
"fileLocation": "absolute"
}
],
"debuggers": [
{
"type": "playdate",
"languages": [
"lua"
],
"label": "Playdate Debug",
"configurationAttributes": {
"launch": {
"properties": {
"logDebugAdapter": {
"type": "boolean",
"description": "True if the extension should log messages to and from the Playdate Simulator while debugging",
"default": false
},
"disableWorkarounds": {
"type": "boolean",
"description": "True if the extension should disable workarounds for issues communicating between VSCode and the Playdate Simulator",
"default": false
},
"retryTimeout": {
"type": "number",
"description": "Time in milliseconds to wait between attempts to connect to the Playdate Simulator",
"default": 200
},
"maxRetries": {
"type": "number",
"description": "Maximum number of times the extension will attempt to connect to the Playdate Simulator before aborting",
"default": 50
}
}
},
"attach": {
"properties": {
"logDebugAdapter": {
"type": "boolean",
"description": "True if the extension should log messages to and from the Playdate Simulator while debugging",
"default": false
},
"disableWorkarounds": {
"type": "boolean",
"description": "True if the extension should disable workarounds for issues communicating between VSCode and the Playdate Simulator",
"default": false
},
"retryTimeout": {
"type": "number",
"description": "Time in milliseconds to wait between attempts to connect to the Playdate Simulator",
"default": 200
},
"maxRetries": {
"type": "number",
"description": "Maximum number of times the extension will attempt to connect to the Playdate Simulator before aborting",
"default": 50
}
}
}
},
"initialConfigurations": [
{
"type": "playdate",
"request": "launch",
"name": "Playdate: Debug"
}
],
"configurationSnippets": [
{
"label": "Playdate: Debug",
"description": "Debug the game in the Playdate Simulator",
"body": {
"type": "playdate",
"request": "launch",
"name": "Playdate: Debug"
}
}
]
}
],
"menus": {
"editor/title/run": [
{
"command": "playdate-debug.runEditorContents",
"group": "navigation@0",
"title": "Run file in Playdate Simulator",
"when": "resourceLangId == lua && !isInDiffEditor && !virtualWorkspace && shellExecutionSupported"
},
{
"command": "playdate-debug.debugEditorContents",
"group": "navigation@1",
"title": "Debug file in Playdate Simulator",
"when": "resourceLangId == lua && !isInDiffEditor && !virtualWorkspace && shellExecutionSupported"
}
]
}
}
}