-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
459 lines (459 loc) · 13.5 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
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
{
"name": "vscode-demo-time",
"displayName": "Demo Time",
"description": "Script your coding demos to perfection with this VS Code extension – no typos, no missteps, just flawless, stress-free presentations every time. Execute each demo step seamlessly, just like advancing through a slide presentation!",
"version": "0.0.61",
"publisher": "eliostruyf",
"galleryBanner": {
"color": "#0D1321",
"theme": "dark"
},
"icon": "assets/demo-time-128x128.png",
"badges": [
{
"description": "version",
"url": "https://img.shields.io/github/package-json/v/estruyf/vscode-demo-time?color=green&label=vscode-demo-time&style=flat-square",
"href": "https://github.com/estruyf/vscode-demo-time"
},
{
"description": "Buy me a coffee",
"url": "https://img.shields.io/badge/Buy%20me%20a%20coffee-€%203-blue?logo=buy-me-a-coffee&style=flat-square",
"href": "https://www.buymeacoffee.com/zMeFRy9"
},
{
"description": "sponsor",
"url": "https://img.shields.io/badge/Sponsor-Elio%20Struyf%20%E2%9D%A4-%23fe8e86?logo=GitHub&style=flat-square",
"href": "https://github.com/sponsors/estruyf"
}
],
"homepage": "https://demotime.elio.dev/",
"sponsor": {
"url": "https://github.com/sponsors/estruyf"
},
"license": "MIT",
"author": "Elio Struyf <[email protected]> (https://www.eliostruyf.com)",
"bugs": {
"url": "https://github.com/estruyf/vscode-demo-time/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/estruyf/vscode-demo-time"
},
"engines": {
"vscode": "^1.84.0"
},
"categories": [
"Other"
],
"activationEvents": [
"workspaceContains:**/.demo/*"
],
"main": "./out/extension.js",
"browser": "./out/extension.js",
"configurationDefaults": {
"files.associations": {
"**/.demo/*.json": "jsonc"
}
},
"contributes": {
"icons": {
"dt-clock": {
"description": "Demo Time - clock",
"default": {
"fontPath": "assets/demo-time-v1.woff",
"fontCharacter": "\\e903"
}
},
"dt-timer": {
"description": "Demo Time - timer",
"default": {
"fontPath": "assets/demo-time-v1.woff",
"fontCharacter": "\\e901"
}
},
"dt-timer-off": {
"description": "Demo Time - timer off",
"default": {
"fontPath": "assets/demo-time-v1.woff",
"fontCharacter": "\\e902"
}
},
"dt-projector": {
"description": "Demo Time - projector",
"default": {
"fontPath": "assets/demo-time-v1.woff",
"fontCharacter": "\\e900"
}
},
"dt-logo": {
"description": "Demo Time - logo",
"default": {
"fontPath": "assets/demo-time-logo.woff",
"fontCharacter": "\\e800"
}
}
},
"configuration": {
"title": "Demo Time",
"properties": {
"demoTime.previousEnabled": {
"type": "boolean",
"default": false,
"description": "Enable the previous command when in presentation mode"
},
"demoTime.highlightBorderColor": {
"type": "string",
"default": "rgba(255,0,0,0.5)",
"description": "Color of the border when highlighting a step"
},
"demoTime.highlightBackground": {
"type": "string",
"default": "var(--vscode-editor-selectionBackground)",
"description": "Background color when highlighting code"
},
"demoTime.highlightBlur": {
"type": "number",
"default": 0,
"description": "Blur effect on the text which is not highlighted"
},
"demoTime.highlightOpacity": {
"type": "number",
"default": 1,
"description": "Opacity of the text which is not highlighted"
},
"demoTime.highlightZoomEnabled": {
"type": [
"boolean",
"number"
],
"default": false,
"description": "Enable code zoom when highlighting code. When using a number, it will be the zoom level."
},
"demoTime.timer": {
"type": "number",
"default": null,
"description": "Count down timer for how long the session should last. If not set, it will not count down. The value is the number of minutes."
},
"demoTime.showClock": {
"type": "boolean",
"default": true,
"description": "Show a clock in the status bar"
},
"demoTime.lineInsertionDelay": {
"type": "number",
"default": 0,
"description": "The delay between inserting lines of code (in milliseconds)"
},
"demoTime.api.enabled": {
"type": "boolean",
"default": false,
"description": "Enable the API for Demo Time. This allows you to control Demo Time from outside Visual Studio Code."
},
"demoTime.api.port": {
"type": "number",
"default": 3710,
"description": "Port number for the API"
}
}
},
"commands": [
{
"command": "demo-time.docs",
"title": "Open Demo Time documentation",
"category": "Demo Time",
"icon": "$(dt-logo)"
},
{
"command": "demo-time.addStepToDemo",
"title": "Add new action to demo step",
"category": "Demo Time",
"icon": "$(add)"
},
{
"command": "demo-time.start",
"title": "Start",
"category": "Demo Time",
"icon": "$(play)"
},
{
"command": "demo-time.previous",
"title": "Previous",
"category": "Demo Time"
},
{
"command": "demo-time.runStep",
"title": "Start a demo",
"category": "Demo Time"
},
{
"command": "demo-time.runById",
"title": "Run by ID",
"category": "Demo Time"
},
{
"command": "demo-time.addToStep",
"title": "Add as demo step",
"category": "Demo Time"
},
{
"command": "demo-time.initialize",
"title": "Initialize",
"category": "Demo Time"
},
{
"command": "demo-time.openDemoFile",
"title": "Open demo file",
"category": "Demo Time",
"icon": "$(eye)"
},
{
"command": "demo-time.viewStep",
"title": "View demo step in editor",
"category": "Demo Time",
"icon": "$(eye)"
},
{
"command": "demo-time.viewNotes",
"title": "View demo notes",
"category": "Demo Time",
"icon": "$(book)"
},
{
"command": "demo-time.togglePresentationMode",
"title": "Toggle presentation mode",
"category": "Demo Time",
"icon": "$(dt-projector)"
},
{
"command": "demo-time.reset",
"title": "Reset",
"category": "Demo Time",
"icon": "$(refresh)"
},
{
"command": "demo-time.stepMoveUp",
"title": "Move down",
"icon": "$(arrow-up)"
},
{
"command": "demo-time.stepMoveDown",
"title": "Move down",
"icon": "$(arrow-down)"
},
{
"command": "demo-time.collapseAll",
"title": "Collapse all",
"icon": "$(collapse-all)"
},
{
"command": "demo-time.startCountdown",
"title": "Start countdown",
"category": "Demo Time",
"icon": "$(dt-timer)"
},
{
"command": "demo-time.resetCountdown",
"title": "Reset countdown",
"category": "Demo Time"
},
{
"command": "demo-time.showPresenterView",
"title": "Show presenter view",
"category": "Demo Time",
"icon": "$(vm)"
}
],
"menus": {
"commandPalette": [
{
"command": "demo-time.addStepToDemo",
"when": "(editorLangId == jsonc || editorLangId == json) && resourceDirname =~ /\\.demo$/"
},
{
"command": "demo-time.previous",
"when": "demo-time.presentation && demo-time.previousEnabled"
},
{
"command": "demo-time.runById",
"when": "false"
},
{
"command": "demo-time.runStep",
"when": "false"
},
{
"command": "demo-time.initialize",
"when": "false"
},
{
"command": "demo-time.openDemoFile",
"when": "false"
},
{
"command": "demo-time.stepMoveUp",
"when": "false"
},
{
"command": "demo-time.stepMoveDown",
"when": "false"
},
{
"command": "demo-time.collapseAll",
"when": "false"
},
{
"command": "demo-time.viewStep",
"when": "false"
},
{
"command": "demo-time.viewNotes",
"when": "false"
}
],
"view/title": [
{
"command": "demo-time.togglePresentationMode",
"when": "view == demo-time && !demo-time.presentation",
"group": "navigation@-1"
},
{
"command": "demo-time.startCountdown",
"when": "view == demo-time && !demo-time.countdown && demo-time.showTimer",
"group": "navigation@0"
},
{
"command": "demo-time.showPresenterView",
"when": "view == demo-time",
"group": "navigation@1"
},
{
"command": "demo-time.reset",
"when": "view == demo-time",
"group": "navigation@2"
},
{
"command": "demo-time.collapseAll",
"when": "view == demo-time",
"group": "navigation@3"
}
],
"view/item/context": [
{
"command": "demo-time.start",
"when": "view == demo-time && viewItem == demo-time.file",
"group": "inline@1"
},
{
"command": "demo-time.openDemoFile",
"when": "view == demo-time && viewItem == demo-time.file",
"group": "inline@2"
},
{
"command": "demo-time.stepMoveUp",
"when": "view == demo-time && (viewItem =~ /demo-time.step/ || viewItem =~ /demo-time.lastStep/)",
"group": "inline@1"
},
{
"command": "demo-time.stepMoveDown",
"when": "view == demo-time && (viewItem =~ /demo-time.step/ || viewItem =~ /demo-time.firstStep/)",
"group": "inline@2"
},
{
"command": "demo-time.viewStep",
"when": "view == demo-time && (viewItem =~ /demo-time.step/ || viewItem =~ /demo-time.firstStep/ || viewItem =~ /demo-time.lastStep/)",
"group": "inline@3"
},
{
"command": "demo-time.viewNotes",
"when": "view == demo-time && (viewItem =~ /demo-time.hasNotes/)",
"group": "inline@4"
}
],
"editor/title": [
{
"command": "demo-time.addStepToDemo",
"when": "(editorLangId == jsonc || editorLangId == json) && resourceDirname =~ /\\.demo$/",
"group": "navigation@0"
},
{
"command": "demo-time.docs",
"when": "(editorLangId == jsonc || editorLangId == json) && resourceDirname =~ /\\.demo$/",
"group": "navigation@1"
}
]
},
"views": {
"explorer": [
{
"id": "demo-time",
"name": "Demo Time",
"contextualTitle": "Demo Time",
"icon": "assets/logo-small.svg"
}
]
},
"viewsWelcome": [
{
"view": "demo-time",
"contents": "Hello and welcome to Demo Time! You can use this extension to help you during coding demos.\n\nGet started creating a `.demo/demo.json` file in your workspace or by clicking on the initialize button.\n\n[Initialize](command:demo-time.initialize)"
}
],
"keybindings": [
{
"command": "demo-time.start",
"key": "right",
"when": "demo-time.presentation"
},
{
"command": "demo-time.previous",
"key": "left",
"when": "demo-time.presentation && demo-time.previousEnabled"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "npm-run-all --parallel compile:*",
"compile:ext": "tsup --minify",
"compile:wv": "webpack --mode production --config ./webview.config.js",
"watch": "npm-run-all --parallel watch:*",
"watch:ext": "tsup --watch",
"watch:wv": "webpack serve --mode development --config ./webview.config.js",
"lint": "eslint src --ext ts"
},
"devDependencies": {
"@estruyf/vscode": "^1.1.0",
"@types/cors": "^2.8.17",
"@types/mocha": "^10.0.3",
"@types/node": "18.x",
"@types/react": "^18.3.16",
"@types/react-dom": "^18.3.5",
"@types/vscode": "^1.84.0",
"@typescript-eslint/eslint-plugin": "^6.9.0",
"@typescript-eslint/parser": "^6.9.0",
"@vscode/test-electron": "^2.3.6",
"autoprefixer": "^10.4.20",
"cors": "^2.8.5",
"css-loader": "^7.1.2",
"eslint": "^8.52.0",
"express": "^4.21.2",
"glob": "^10.3.10",
"jsonc-parser": "^3.3.1",
"mocha": "^10.2.0",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.49",
"postcss-loader": "^8.1.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"style-loader": "^4.0.0",
"tailwindcss": "^3.4.16",
"ts-loader": "^9.5.1",
"tsup": "^8.0.1",
"typescript": "^5.2.2",
"vscrui": "^0.2.0-beta.1229608",
"webpack": "^5.97.1",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.2.0",
"webpack-manifest-plugin": "^5.0.0"
}
}