-
Notifications
You must be signed in to change notification settings - Fork 146
/
package.json
681 lines (681 loc) · 20.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
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
{
"name": "vscode-reveal",
"displayName": "vscode-reveal",
"description": "Show markdown as revealJs presentation",
"version": "4.3.3",
"publisher": "evilz",
"author": "Vincent Bourdon",
"license": "MIT",
"icon": "logo.png",
"preview": false,
"repository": {
"type": "git",
"url": "https://github.com/evilz/vscode-reveal"
},
"engines": {
"vscode": "^1.68.0"
},
"categories": [
"Other"
],
"keywords": [
"markdown",
"reveal js",
"slide",
"presenttion"
],
"activationEvents": [
"onLanguage:markdown",
"onCommand:vscode-revealjs.showSample",
"onCommand:vscode-revealjs.showRevealJS",
"onCommand:vscode-revealjs.showRevealJSInBrowser"
],
"main": "./dist/extension.js",
"contributes": {
"colors": [
{
"id": "revealjs.configKeyForeground",
"description": "Forground decoration color for the key of config in front matter",
"defaults": {
"dark": "#67b8e3ff",
"light": "#0288d1ff",
"highContrast": "#67b8e3ff"
}
}
],
"commands": [
{
"command": "vscode-revealjs.showRevealJS",
"title": "Revealjs: Show presentation by side",
"icon": {
"light": "resources/light/split.svg",
"dark": "resources/dark/split.svg"
}
},
{
"command": "vscode-revealjs.showRevealJSInBrowser",
"title": "Revealjs: Open presentation in browser",
"icon": {
"light": "resources/light/browser.svg",
"dark": "resources/dark/browser.svg"
}
},
{
"command": "vscode-revealjs.stopRevealJSServer",
"title": "Revealjs: Stop reveal server"
},
{
"command": "vscode-revealjs.goToSlide",
"title": "Revealjs: Go to slide"
},
{
"command": "vscode-revealjs.exportPDF",
"title": "Revealjs: Export in PDF",
"icon": {
"light": "resources/light/pdf.svg",
"dark": "resources/dark/pdf.svg"
}
},
{
"command": "vscode-revealjs.exportHTML",
"title": "Revealjs: Export in HTML",
"icon": {
"light": "resources/light/html.svg",
"dark": "resources/dark/html.svg"
}
},
{
"command": "vscode-revealjs.showSample",
"title": "Revealjs: Open a sample",
"icon": {
"light": "resources/light/html.svg",
"dark": "resources/dark/html.svg"
}
}
],
"configuration": {
"type": "object",
"title": "Reveal JS Option Configuration",
"properties": {
"revealjs.controlsTutorial": {
"type": "boolean",
"default": true,
"description": "Help the user learn the controls by providing hints"
},
"revealjs.controlsLayout": {
"type": "string",
"default": "bottom-right",
"description": "Determines where controls appear",
"enum": [
"bottom-right",
"edge"
]
},
"revealjs.controlsBackArrows": {
"type": "string",
"default": "faded",
"description": "Visibility rule for backwards navigation arrows",
"enum": [
"faded",
"hidden",
"visible"
]
},
"revealjs.showSlideNumber": {
"type": "string",
"default": "all",
"description": "Can be used to limit the contexts in which the slide number appears",
"enum": [
"all",
"print",
"speaker"
]
},
"revealjs.hashOneBasedIndex": {
"type": "boolean",
"default": false,
"description": "Use 1 based indexing for # links to match slide number"
},
"revealjs.theme": {
"type": "string",
"default": "black",
"description": "Revealjs Theme",
"enum": [
"beige",
"black",
"blood",
"cern",
"hull-blue",
"league",
"material",
"moon",
"myplanet",
"night",
"object-partners",
"pikestreet",
"puzzle",
"robot-lung-ebi",
"robot-lung",
"savasian",
"serif",
"sfeir-school",
"simple",
"sky",
"solarized",
"sunblind",
"tidy",
"white"
]
},
"revealjs.highlightTheme": {
"type": "string",
"enum": [
"a11y-dark",
"a11y-light",
"agate",
"an-old-hope",
"androidstudio",
"arduino-light",
"arta",
"ascetic",
"atom-one-dark-reasonable",
"atom-one-dark",
"atom-one-light",
"brown-paper",
"brown-papersq.png",
"codepen-embed",
"color-brewer",
"dark",
"devibeans",
"docco",
"far",
"foundation",
"github-dark-dimmed",
"github-dark",
"github",
"gml",
"googlecode",
"gradient-dark",
"gradient-light",
"grayscale",
"hybrid",
"idea",
"ir-black",
"isbl-editor-dark",
"isbl-editor-light",
"kimbie-dark",
"kimbie-light",
"lightfair",
"lioshi",
"magula",
"mono-blue",
"monokai-sublime",
"monokai",
"night-owl",
"nnfx-dark",
"nnfx-light",
"nord",
"obsidian",
"paraiso-dark",
"paraiso-light",
"pojoaque.jpg",
"pojoaque",
"purebasic",
"qtcreator-dark",
"qtcreator-light",
"rainbow",
"real-black",
"routeros",
"school-book",
"shades-of-purple",
"srcery",
"stackoverflow-dark",
"stackoverflow-light",
"sunburst",
"tomorrow-night-blue",
"tomorrow-night-bright",
"vs",
"vs2015",
"xcode",
"xt256"
],
"default": "monokai",
"description": "highlight.js Theme"
},
"revealjs.controls": {
"type": "boolean",
"default": true,
"description": "Display controls in the bottom right corner"
},
"revealjs.progress": {
"type": "boolean",
"default": true,
"description": "Display a presentation progress bar"
},
"revealjs.slideNumber": {
"type": "boolean",
"default": false,
"description": "Display the page number of the current slide"
},
"revealjs.history": {
"type": "boolean",
"default": true,
"description": "Push each slide change to the browser history"
},
"revealjs.keyboard": {
"type": "boolean",
"default": true,
"description": "Enable keyboard shortcuts for navigation"
},
"revealjs.overview": {
"type": "boolean",
"default": true,
"description": "Enable the slide overview mode"
},
"revealjs.center": {
"type": "boolean",
"default": true,
"description": "Vertical centering of slides"
},
"revealjs.touch": {
"type": "boolean",
"default": true,
"description": "Enables touch navigation on devices with touch input"
},
"revealjs.loop": {
"type": "boolean",
"default": false,
"description": "Loop the presentation"
},
"revealjs.rtl": {
"type": "boolean",
"default": false,
"description": "Change the presentation direction to be RTL"
},
"revealjs.shuffle": {
"type": "boolean",
"default": false,
"description": "Randomizes the order of slides each time the presentation loads"
},
"revealjs.fragments": {
"type": "boolean",
"default": true,
"description": "Turns fragments on and off globally"
},
"revealjs.embedded": {
"type": "boolean",
"default": false,
"description": "Flags if the presentation is running in an embedded mode, i.e. contained within a limited portion of the screen"
},
"revealjs.help": {
"type": "boolean",
"default": true,
"description": "Flags if we should show a help overlay when the questionmark key is pressed"
},
"revealjs.showNotes": {
"type": "boolean",
"default": false,
"description": "Flags if speaker notes should be visible to all viewers"
},
"revealjs.autoSlide": {
"type": "number",
"default": 0,
"description": "Number of milliseconds between automatically proceeding to the next slide, disabled when set to 0, this value can be overwritten by using a data-autoslide attribute on your slides"
},
"revealjs.autoSlideMethod": {
"type": "string",
"default": "Reveal.navigateNext",
"description": "The direction in which the slides will move whilst autoslide is active"
},
"revealjs.autoSlideStoppable": {
"type": "boolean",
"default": true,
"description": "Stop auto-sliding after user input"
},
"revealjs.mouseWheel": {
"type": "boolean",
"default": false,
"description": "Enable slide navigation via mouse wheel"
},
"revealjs.hideAddressBar": {
"type": "boolean",
"default": true,
"description": "Hides the address bar on mobile devices"
},
"revealjs.previewLinks": {
"type": "boolean",
"default": false,
"description": "Opens links in an iframe preview overlay"
},
"revealjs.transition": {
"type": "string",
"default": "slide",
"description": "Transition style",
"enum": [
"none",
"fade",
"slide",
"convex",
"concave",
"zoom"
]
},
"revealjs.transitionSpeed": {
"type": "string",
"default": "default",
"description": "Transition speed",
"enum": [
"default",
"fast",
"slow"
]
},
"revealjs.backgroundTransition": {
"type": "string",
"default": "fade",
"description": "Transition style for full page slide backgrounds (none/fade/slide/convex/concave/zoom)",
"enum": [
"none",
"fade",
"slide",
"convex",
"concave",
"zoom"
]
},
"revealjs.viewDistance": {
"type": "number",
"default": 3,
"description": "Number of slides away from the current that are visible"
},
"revealjs.width": {
"type": "number",
"default": 960,
"description": "Width of the presentation"
},
"revealjs.height": {
"type": "number",
"default": 700,
"description": "Height of the presentation"
},
"revealjs.margin": {
"type": "number",
"default": 0.04,
"description": "Factor of the display size that should remain empty around the content"
},
"revealjs.minScale": {
"type": "number",
"default": 0.2,
"description": "Bounds for smallest possible scale to apply to content"
},
"revealjs.maxScale": {
"type": "number",
"default": 2,
"description": "Bounds for largest possible scale to apply to content"
},
"revealjs.disableLayout": {
"type": "boolean",
"default": false,
"description": "disable the built-in scaling and centering and Bring Your Own Layout"
},
"revealjs.parallaxBackgroundImage": {
"type": "string",
"default": "",
"description": "Parallax background image"
},
"revealjs.parallaxBackgroundSize": {
"type": "string",
"default": "",
"description": "Parallax background size (CSS syntax, e.g. 2100px 900px)"
},
"revealjs.parallaxBackgroundHorizontal": {
"type": "number",
"default": 0,
"description": "Number of pixels to move the parallax background per slide"
},
"revealjs.parallaxBackgroundVertical": {
"type": "number",
"default": 0,
"description": "Number of pixels to move the parallax background per slide"
},
"revealjs.slideExplorerEnabled": {
"type": "boolean",
"default": true,
"description": "Hide or show slides explorer"
},
"revealjs.browserPath": {
"type": "string",
"default": null,
"description": "Full path of browser to use"
},
"revealjs.exportHTMLPath": {
"type": "string",
"default": "./export",
"description": "Path where the HTML export is created, relative to the .md file"
},
"revealjs.openFilemanagerAfterHTMLExport": {
"type": "boolean",
"default": true,
"description": "Open the file manager after HTML export"
},
"revealjs.enableMenu": {
"type": "boolean",
"default": true,
"description": "Enable the menu"
},
"revealjs.enableChalkboard": {
"type": "boolean",
"default": true,
"description": "Enable the chalkboard"
},
"revealjs.enableZoom": {
"type": "boolean",
"default": true,
"description": "Enable the zoom plugin"
},
"revealjs.enableSearch": {
"type": "boolean",
"default": true,
"description": "Enable the search in slides"
},
"revealjs.title": {
"type": "string",
"default": "Reveal JS presentation",
"description": "Title of your presentation"
},
"revealjs.css": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"description": "External css file to use"
},
"revealjs.cssvariables": {
"type": [
"object",
"null"
],
"default": null,
"description": "Css variable to add see https://github.com/hakimel/reveal.js/blob/master/css/theme/template/exposer.scss"
}
}
},
"viewsContainers": {
"activitybar": [
{
"id": "slides-explorer",
"title": "VSCode Reveal",
"icon": "resources/slide-gray.svg"
}
]
},
"views": {
"slides-explorer": [
{
"id": "slidesExplorer",
"name": "Slides",
"when": "slideExplorerEnabled"
}
]
},
"menus": {
"view/title": [
{
"command": "vscode-revealjs.showRevealJSInBrowser",
"when": "view == slidesExplorer",
"group": "navigation"
},
{
"command": "vscode-revealjs.showRevealJS",
"when": "view == slidesExplorer",
"group": "navigation"
},
{
"command": "vscode-revealjs.exportPDF",
"when": "view == slidesExplorer",
"group": "navigation"
},
{
"command": "vscode-revealjs.exportHTML",
"when": "view == slidesExplorer",
"group": "navigation"
}
],
"editor/title": [
{
"when": "resourceLangId == markdown",
"command": "vscode-revealjs.showRevealJS",
"group": "navigation"
},
{
"when": "resourceLangId == markdown",
"command": "vscode-revealjs.showRevealJSInBrowser",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "vscode-revealjs.goToSlide",
"when": "view == slidesExplorer && viewItem == slideNode"
}
],
"explorer/context": [
{
"when": "resourceLangId == markdown",
"command": "vscode-revealjs.showRevealJS",
"group": "navigation"
},
{
"when": "resourceLangId == markdown",
"command": "vscode-revealjs.showRevealJSInBrowser",
"group": "navigation"
}
]
},
"snippets": [
{
"language": "markdown",
"path": "./snippets.json"
}
]
},
"scripts": {
"vscode:prepublish": "npm run -S esbuild-base -- --minify",
"esbuild-base": "rimraf dist && esbuild ./src/extension.ts --bundle --outfile=dist/extension.js --external:vscode --format=cjs --platform=node",
"build": "npm run -S esbuild-base -- --sourcemap",
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch",
"watch": "npm run -S esbuild-base -- --sourcemap --watch",
"fmt": "prettier --write \"src/**/*.ts\"&& npm run test -- --fix",
"test-compile": "tsc -p ./",
"test:vscode": "node ./node_modules/vscode/bin/test",
"test": "jest",
"coverage": "jest --coverage",
"unittest-dev": "cd out && mocha",
"lint": "eslint",
"sonar:PR": "sonar-scanner -Dsonar.projectKey=evilz_vscode-reveal -Dsonar.organization=evilz-github -Dsonar.sources=./src -Dsonar.host.url=https://sonarcloud.io -Dsonar.testExecutionReportPaths=test-report.xml -Dsonar.pullrequest.base=master -Dsonar.pullrequest.provider=GitHub -Dsonar.pullrequest.github.repository=evilz/vscode-reveal",
"sonar": "sonar-scanner -Dsonar.projectKey=evilz_vscode-reveal -Dsonar.organization=evilz-github -Dsonar.sources=./src -Dsonar.host.url=https://sonarcloud.io -Dsonar.testExecutionReportPaths=test-report.xml",
"sonar2": "jest --coverage && sonar-scanner -Dsonar.projectKey=evilz_vscode-reveal -Dsonar.organization=evilz-github -Dsonar.sources=./src -Dsonar.host.url=https://sonarcloud.io -Dsonar.testExecutionReportPaths=test-report.xml",
"dev": "vite",
"build-vite": "tsc && vite build",
"preview": "vite preview",
"compile": "tsc -p ./",
"ui-test": "node ./dist/test/runTest.js"
},
"nyc": {
"extension": [
".ts",
".tsx"
],
"exclude": [
"**/*.d.ts",
"**/libs/*"
],
"reporter": [
"html",
"lcov"
],
"all": true
},
"dependencies": {
"cors": "^2.8.5",
"ejs": "^3.1.10",
"express": "^5.0.1",
"front-matter": "4.0.2",
"fs-jetpack": "^5.1.0",
"markdown-it": "^14.1.0",
"markdown-it-abbr": "^2.0.0",
"markdown-it-attribution": "^0.1.4",
"markdown-it-attrs": "^4.2.0",
"markdown-it-block-embed": "0.0.3",
"markdown-it-deflist": "^3.0.0",
"markdown-it-div": "^1.1.0",
"markdown-it-fontawesome": "^0.3.0",
"markdown-it-iframe": "^1.0.0",
"markdown-it-ins": "^4.0.0",
"markdown-it-kbd": "^2.2.2",
"markdown-it-mark": "^4.0.0",
"markdown-it-multimd-table": "^4.2.3",
"markdown-it-regexp": "^0.4.0",
"markdown-it-samp": "^0.0.4",
"markdown-it-span": "^1.0.0",
"markdown-it-sub": "^2.0.0",
"markdown-it-sup": "^2.0.0",
"markdown-it-task-lists": "^2.1.1",
"morgan": "^1.10.0",
"open": "^8.4.0",
"pako": "^2.1.0",
"prettier": "^3.3.3"
},
"devDependencies": {
"@alex_neo/jest-expect-message": "^1.0.5",
"@types/glob": "^8.1.0",
"@types/jest": "^27.4.1",
"@types/jest-expect-message": "^1.1.0",
"@types/markdown-it": "14.1.2",
"@types/node": "^22.9.0",
"@types/plantuml-encoder": "^1.4.2",
"@types/request": "^2.48.12",
"@types/vscode": "^1.95.0",
"@typescript-eslint/eslint-plugin": "^5.29.0",
"@typescript-eslint/parser": "^5.62.0",
"@vscode/test-electron": "^2.4.1",
"@vscode/test-web": "^0.0.63",
"esbuild": "^0.24.0",
"eslint": "^8.18.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-jest": "^26.5.3",
"eslint-plugin-sonarjs": "^2.0.4",
"expect-more-jest": "^5.5.0",
"jest": "^27.5.1",
"jest-junit": "^16.0.0",
"jest-sonar-reporter": "^2.0.0",
"nyc": "^17.1.0",
"rimraf": "^6.0.1",
"sonarqube-scanner": "^4.2.5",
"source-map-support": "^0.5.21",
"supertest": "^7.0.0",
"ts-jest": "^27.1.4",
"typescript": "^4.9.5"
}
}