-
Notifications
You must be signed in to change notification settings - Fork 174
/
package.json
235 lines (235 loc) · 8.21 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
{
"name": "yard-vscode-extension",
"version": "0.0.0",
"description": "Edit yard definitions",
"license": "Apache-2.0",
"publisher": "kie-group",
"keywords": [],
"homepage": "https://github.com/apache/incubator-kie-tools",
"repository": {
"type": "git",
"url": "https://github.com/apache/incubator-kie-tools.git"
},
"bugs": {
"url": "https://github.com/apache/incubator-kie-tools/issues"
},
"browser": "./dist/extension/extensionWeb.js",
"main": "dist/extension/extension.js",
"scripts": {
"build:dev": "rimraf dist && webpack --env dev",
"build:prod": "rimraf dist && webpack && pnpm pack:prod && pnpm test-e2e",
"compile": "webpack --env dev",
"lint": "run-script-if --bool \"$(build-env linters.run)\" --then \"kie-tools--eslint ./src\"",
"pack:prod": "vsce package --githubBranch main --no-dependencies -o ./dist/yard_vscode_extension_$npm_package_version.vsix",
"run:webmode": "pnpm vscode-test-web --browserType=chromium --extensionDevelopmentPath=. --version=stable",
"test-e2e": "run-script-if --ignore-errors \"$(build-env endToEndTests.ignoreFailures)\" --bool \"$(build-env endToEndTests.run)\" --then \"pnpm test-e2e:clean\" \"cpr e2e-tests/resources e2e-tests-tmp/resources\" \"tsc --project tsconfig.e2e-tests.json --skipLibCheck --sourceMap true\" \"extest setup-and-run --yarn -c max -u -e ./test-resources -o ./e2e-tests/settings.json out/*.test.js\"",
"test-e2e:clean": "rimraf ./dist-tests-e2e && rimraf ./test-resources && rimraf ./out && rimraf ./e2e-tests-tmp && rimraf *.vsix",
"test-e2e:clean:offline": "rimraf ./dist-tests-e2e && rimraf ./out && rimraf ./e2e-tests-tmp && rimraf *.vsix",
"test-e2e:offline": "run-script-if --ignore-errors \"$(build-env endToEndTests.ignoreFailures)\" --bool \"$(build-env endToEndTests.run)\" --then \"pnpm test-e2e:clean:offline\" \"cpr e2e-tests/resources e2e-tests-tmp/resources\" \"tsc --project tsconfig.e2e-tests.json --skipLibCheck --sourceMap true\" \"extest setup-and-run --offline --yarn -c max -u -e ./test-resources -o e2e-tests/settings.json out/*.test.js\"",
"watch": "export WEBPACK__sourceMaps=true; WEBPACK__minimize=false; webpack --env dev"
},
"dependencies": {
"@kie-tools-core/backend": "workspace:*",
"@kie-tools-core/editor": "workspace:*",
"@kie-tools-core/envelope-bus": "workspace:*",
"@kie-tools-core/i18n": "workspace:*",
"@kie-tools-core/notifications": "workspace:*",
"@kie-tools-core/patternfly-base": "workspace:*",
"@kie-tools-core/vscode-extension": "workspace:*",
"@kie-tools-core/vscode-java-code-completion": "workspace:*",
"@kie-tools-core/workspace": "workspace:*",
"@kie-tools/yard-editor": "workspace:*",
"monaco-editor": "^0.39.0",
"monaco-yaml": "^4.0.4",
"openapi-types": "^7.0.1",
"vscode-languageserver-textdocument": "^1.0.4",
"vscode-languageserver-types": "^3.16.0",
"yaml": "^2.3.2"
},
"devDependencies": {
"@kie-tools-core/webpack-base": "workspace:*",
"@kie-tools/eslint": "workspace:*",
"@kie-tools/root-env": "workspace:*",
"@kie-tools/tsconfig": "workspace:*",
"@kie-tools/vscode-extension-common-test-helpers": "workspace:*",
"@types/chai": "^4.3.6",
"@types/fs-extra": "^11.0.1",
"@types/mocha": "^10.0.7",
"@types/selenium-webdriver": "^4.1.20",
"@types/vscode": "1.67.0",
"@vscode/test-electron": "^2.3.6",
"@vscode/test-web": "^0.0.30",
"@vscode/vsce": "^2.22.0",
"chai": "^4.3.10",
"cpr": "^3.0.1",
"mocha": "^10.6.0",
"mocha-jenkins-reporter": "^0.4.8",
"mocha-junit-reporter": "^2.2.1",
"mocha-multi-reporters": "^1.5.1",
"monaco-editor-webpack-plugin": "^7.0.1",
"process": "^0.11.10",
"rimraf": "^3.0.2",
"sanitize-filename-ts": "^1.0.2",
"selenium-webdriver": "^4.15.0",
"typescript": "^5.5.3",
"vscode-extension-tester": "^8.3.1",
"webpack": "^5.88.2",
"webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.15.1",
"webpack-merge": "^5.9.0"
},
"engines": {
"vscode": "^1.67.0"
},
"displayName": "Apache KIE™ YARD Editor",
"categories": [
"Other"
],
"contributes": {
"commands": [
{
"command": "extension.kogito.yard.setupAutomaticallyOpenDiagramEditorAlongsideTextEditor",
"title": "yard: Setup automatically open Diagram Editor alongside Text Editor"
},
{
"command": "extension.kogito.yard.openAsDiagram",
"icon": "$(open-preview)",
"title": "yard: Open as Diagram (to the side)"
},
{
"command": "extension.kogito.yard.openAsSource",
"icon": "$(go-to-file)",
"title": "yard: Open as Source"
}
],
"configuration": {
"properties": {
"kogito.yard.automaticallyOpenDiagramEditorAlongsideTextEditor": {
"default": "Ask next time",
"enum": [
"Open automatically",
"Do not open",
"Ask next time"
],
"markdownDescription": "When opening yard files, decide whether or not to open the Diagram Editor alongside the text editor. Regardless of the configured option, you can always open the yard Diagram Editor using the 'Open as Diagram' button.",
"type": "string"
},
"kogito.yard.runOnSave": {
"markdownDescription": "Execute a command on each save operation of the yard file.",
"type": "string"
}
},
"title": "yard Editor"
},
"configurationDefaults": {
"[yaml]": {
"editor.wordBasedSuggestions": "off"
},
"[yard-json]": {
"editor.wordBasedSuggestions": "off"
},
"[yard-yaml]": {
"editor.wordBasedSuggestions": "off"
},
"files.associations": {
"*.yard.yaml": "yaml",
"*.yard.yml": "yaml"
},
"yaml.schemas": {
"https://start.kubesmarts.org/schemas/yard/draft-07/YaRD-schema.json": [
"**/*.yard.yml",
"**/*.yard.yaml"
]
}
},
"customEditors": [
{
"displayName": "yard Editor",
"priority": "option",
"selector": [
{
"filenamePattern": "*.{yard.yaml,yard.yml}"
}
],
"viewType": "kieKogitoWebviewEditorsYard"
}
],
"grammars": [
{
"language": "yard-yaml",
"path": "./syntaxes/YAML.tmLanguage.json",
"scopeName": "source.yaml"
}
],
"keybindings": [
{
"command": "extension.kogito.yard.openAsDiagram",
"key": "ctrl+k v",
"mac": "cmd+k v",
"when": "!activeCustomEditorId && resourceFilename =~ /^.*\\.yard\\.(yaml|yml)$/"
},
{
"command": "extension.kogito.yard.openAsSource",
"key": "ctrl+k v",
"mac": "cmd+k v",
"when": "activeCustomEditorId == kieKogitoWebviewEditorsYard"
}
],
"languages": [
{
"aliases": [
"yard (YAML)",
"yard.yaml",
"yard.yml"
],
"configuration": "./languageConfiguration/yamlLanguageConfiguration.json",
"extensions": [
".yard.yml",
".yard.yaml"
],
"id": "yard-yaml"
}
],
"menus": {
"commandPalette": [
{
"command": "extension.kogito.yard.openAsSource",
"when": "activeCustomEditorId == kieKogitoWebviewEditorsYard"
},
{
"command": "extension.kogito.yard.openAsDiagram",
"when": "!activeCustomEditorId && resourceFilename =~ /^.*\\.yard\\.(yaml|yml)/"
}
],
"editor/title": [
{
"command": "extension.kogito.yard.openAsSource",
"group": "navigation",
"when": "activeCustomEditorId == kieKogitoWebviewEditorsYard"
},
{
"command": "extension.kogito.yard.openAsDiagram",
"group": "navigation",
"when": "!activeCustomEditorId && resourceFilename =~ /^.*\\.yard\\.(yaml|yml)/"
}
]
}
},
"activationEvents": [
"onLanguage:yaml",
"onLanguage:yard-yaml",
"onCustomEditor:kieKogitoWebviewEditorsYard"
],
"extensionDependencies": [
"redhat.vscode-yaml"
],
"icon": "icon.png",
"capabilities": {
"untrustedWorkspaces": {
"supported": false
}
},
"vsce": {
"dependencies": false
}
}