aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/package.json
blob: d9088e676f9a673309fdb2db196d88b9e9c99133 (plain)
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
{
  "name": "qt-ui",
  "displayName": "Qt UI",
  "description": "Qt UI Support",
  "version": "1.3.0",
  "homepage": "https://www.qt.io/",
  "icon": "res/icons/qt.png",
  "publisher": "theqtcompany",
  "repository": {
    "type": "git",
    "url": "https://github.com/qt-labs/vscodeext"
  },
  "bugs": {
    "url": "https://bugreports.qt.io/projects/VSCODEEXT"
  },
  "engines": {
    "vscode": "^1.94.0"
  },
  "categories": [
    "Programming Languages",
    "Formatters",
    "Snippets"
  ],
  "keywords": [
    "ui"
  ],
  "qna": "marketplace",
  "pricing": "Free",
  "activationEvents": [
    "workspaceContains:*.ui"
  ],
  "main": "./out/extension.js",
  "l10n": "./l10n",
  "contributes": {
    "configurationDefaults": {
      "workbench.editorAssociations": {
        "{git,gitlens}:/**/*.ui": "default"
      }
    },
    "commands": [
      {
        "command": "qt-ui.openWidgetDesigner",
        "title": "%qt-ui.command.openWidgetDesigner.title%",
        "category": "Qt"
      }
    ],
    "customEditors": [
      {
        "viewType": "qt-ui.uiEditor",
        "displayName": "Qt UI Editor",
        "extensions": [
          ".ui"
        ],
        "priority": "default",
        "selector": [
          {
            "filenamePattern": "*.ui"
          }
        ]
      }
    ],
    "languages": [
      {
        "id": "ui",
        "configuration": "./res/lang/ui/language-configuration.json",
        "extensions": [
          ".ui"
        ],
        "aliases": [
          "ui"
        ],
        "icon": {
          "light": "res/icons/ui-light.svg",
          "dark": "res/icons/ui-dark.svg"
        }
      }
    ],
    "grammars": [
      {
        "language": "ui",
        "scopeName": "source.ui",
        "path": "./res/lang/ui/ui.tmLanguage.json"
      }
    ],
    "configuration": {
      "type": "object",
      "title": "Qt UI Configuration",
      "properties": {
        "qt-ui.customWidgetsDesignerExePath": {
          "type": "string",
          "default": "",
          "description": "Specify the custom Qt Widgets Designer executable path",
          "scope": "machine-overridable"
        }
      }
    }
  },
  "taskDefinitions": [
    {
      "type": "Qt"
    }
  ],
  "extensionDependencies": [
    "theqtcompany.qt-core"
  ],
  "scripts": {
    "vscode:prepublish": "cross-env NODE_ENV=production node ./esbuild.mjs && git rev-parse HEAD > commit",
    "compile": "node ./esbuild.mjs",
    "watch": "node ./esbuild.mjs --watch",
    "pretest": "npm run compile && npm run lint",
    "lint": "npm run prettierWrite && eslint . --fix --cache",
    "prettierWrite": "npm run prettierBase -- --write \"**/*.{js,ts,json,mjs,cjs}\" --log-level silent",
    "prettierCheck": "npm run prettierBase -- --check \"**/*.{js,ts,json,mjs,cjs}\"",
    "prettierBase": "prettier --config \"../common/.prettierrc\" --ignore-path \"../common/.prettierignore\" --cache --cache-strategy metadata",
    "package": "vsce package --out out"
  },
  "devDependencies": {
    "@types/node": "^20.17.0",
    "@types/vscode": "^1.94.0",
    "@typescript-eslint/eslint-plugin": "^6.21.0",
    "@typescript-eslint/parser": "^6.21.0",
    "@vscode/l10n-dev": "^0.0.30",
    "@vscode/vsce": "^2.32.0",
    "commander": "^11.1.0",
    "cross-env": "^7.0.3",
    "esbuild": "^0.20.2",
    "eslint": "^8.57.1",
    "prettier": "^3.3.3",
    "ts-node": "^10.9.2",
    "typescript": "^5.6.3"
  },
  "dependencies": {
    "@vscode/l10n": "^0.0.16",
    "@vscode/webview-ui-toolkit": "^1.4.0",
    "module-alias": "^2.2.3",
    "qt-lib": "file:../qt-lib",
    "typescript": "^5.6.3",
    "untildify": "^5.0.0"
  }
}