summaryrefslogtreecommitdiff
path: root/tools/test-helper/package.json
blob: d2578ab94df7b757fcb5438cbc1884a249049b6a (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
{
  "name": "typst-test-helper",
  "displayName": "Typst Test Helper",
  "description": "Helps to run, compare and update Typst tests.",
  "version": "0.0.1",
  "engines": {
    "vscode": "^1.53.0"
  },
  "categories": [
    "Other"
  ],
  "activationEvents": [
    "onCommand:ShortcutMenuBar.testOpen",
    "onCommand:ShortcutMenuBar.testRefresh",
    "onCommand:ShortcutMenuBar.testRerun",
    "onCommand:ShortcutMenuBar.testUpdate"
  ],
  "main": "./extension.js",
  "contributes": {
    "commands": [
      {
        "command": "ShortcutMenuBar.testOpen",
        "title": "Open test output",
        "category": "ShortcutMenuBar",
        "icon": {
          "light": "images/open-light.svg",
          "dark": "images/open-dark.svg"
        }
      },
      {
        "command": "ShortcutMenuBar.testRefresh",
        "title": "Refresh preview",
        "category": "ShortcutMenuBar",
        "icon": {
          "light": "images/refresh-light.svg",
          "dark": "images/refresh-dark.svg"
        }
      },
      {
        "command": "ShortcutMenuBar.testRerun",
        "title": "Rerun test",
        "category": "ShortcutMenuBar",
        "icon": {
          "light": "images/rerun-light.svg",
          "dark": "images/rerun-dark.svg"
        }
      },
      {
        "command": "ShortcutMenuBar.testUpdate",
        "title": "Update reference image",
        "category": "ShortcutMenuBar",
        "icon": {
          "light": "images/update-light.svg",
          "dark": "images/update-dark.svg"
        }
      }
    ],
    "menus": {
      "editor/title": [
        {
          "when": "resourceExtname == .typ && resourcePath =~ /.*tests.*/",
          "command": "ShortcutMenuBar.testOpen",
          "group": "navigation@0"
        },
        {
          "when": "resourceExtname == .typ && resourcePath =~ /.*tests.*/",
          "command": "ShortcutMenuBar.testRefresh",
          "group": "navigation@1"
        },
        {
          "when": "resourceExtname == .typ && resourcePath =~ /.*tests.*/",
          "command": "ShortcutMenuBar.testRerun",
          "group": "navigation@2"
        },
        {
          "when": "resourceExtname == .typ && resourcePath =~ /.*tests.*/",
          "command": "ShortcutMenuBar.testUpdate",
          "group": "navigation@3"
        }
      ]
    }
  },
  "devDependencies": {
    "@types/vscode": "^1.53.0",
    "@types/node": "^12.11.7"
  }
}