summaryrefslogtreecommitdiff
path: root/tools/test-helper/package.json
blob: 42c77390d1b7d6bb564e430c48e7f48b33236de4 (plain) (blame)
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
{
	"name": "typst-test-helper",
	"publisher": "typst",
	"displayName": "Typst Test Helper",
	"description": "Helps to run, compare and update Typst tests.",
	"version": "0.0.1",
	"categories": [
		"Other"
	],
	"activationEvents": [
		"workspaceContains:tests/suite/playground.typ"
	],
	"main": "./dist/extension.js",
	"contributes": {
		"commands": [
			{
				"command": "typst-test-helper.refreshFromPreview",
				"title": "Refresh preview",
				"category": "Typst Test Helper",
				"icon": "$(refresh)"
			},
			{
				"command": "typst-test-helper.runFromPreview",
				"title": "Run test",
				"category": "Typst Test Helper",
				"icon": "$(debug-start)",
				"enablement": "typst-test-helper.runButtonEnabled"
			},
			{
				"command": "typst-test-helper.saveFromPreview",
				"title": "Run and save reference output",
				"category": "Typst Test Helper",
				"icon": "$(save)",
				"enablement": "typst-test-helper.runButtonEnabled"
			},
			{
				"command": "typst-test-helper.copyImageFilePathFromPreviewContext",
				"title": "Copy image file path",
				"category": "Typst Test Helper"
			},
			{
				"command": "typst-test-helper.increaseResolution",
				"title": "Render at higher resolution",
				"category": "Typst Test Helper",
				"icon": "$(zoom-in)",
				"enablement": "typst-test-helper.runButtonEnabled"
			},
			{
				"command": "typst-test-helper.decreaseResolution",
				"title": "Render at lower resolution",
				"category": "Typst Test Helper",
				"icon": "$(zoom-out)",
				"enablement": "typst-test-helper.runButtonEnabled"
			}
		],
		"menus": {
			"editor/title": [
				{
					"when": "activeWebviewPanelId == typst-test-helper.preview",
					"command": "typst-test-helper.refreshFromPreview",
					"group": "navigation@1"
				},
				{
					"when": "activeWebviewPanelId == typst-test-helper.preview",
					"command": "typst-test-helper.runFromPreview",
					"group": "navigation@2"
				},
				{
					"when": "activeWebviewPanelId == typst-test-helper.preview",
					"command": "typst-test-helper.saveFromPreview",
					"group": "navigation@3"
				},
				{
					"when": "activeWebviewPanelId == typst-test-helper.preview",
					"command": "typst-test-helper.increaseResolution",
					"group": "navigation@4"
				},
				{
					"when": "activeWebviewPanelId == typst-test-helper.preview",
					"command": "typst-test-helper.decreaseResolution",
					"group": "navigation@4"
				}
			],
			"webview/context": [
				{
					"command": "typst-test-helper.copyImageFilePathFromPreviewContext",
					"when": "webviewId == typst-test-helper.preview && (webviewSection == png || webviewSection == ref)"
				}
			]
		}
	},
	"scripts": {
		"build": "tsc -p ./",
		"watch": "tsc -watch -p ./"
	},
	"devDependencies": {
		"@types/node": "^24.0.4",
		"@types/vscode": "^1.101.0",
		"typescript": "^5.8.3"
	},
	"dependencies": {
		"shiki": "^3.7.0"
	},
	"engines": {
		"vscode": "^1.88.0"
	},
	"__metadata": {
		"size": 35098973
	}
}