-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
330 lines (330 loc) · 9.61 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
{
"name": "xsoar",
"displayName": "Cortex XSOAR",
"description": "Build, Format, and Validate Cortex XSOAR with ease.",
"version": "0.7.3",
"engines": {
"vscode": "^1.54.0"
},
"publisher": "CortexXSOARext",
"categories": [
"Linters",
"Formatters",
"Visualization",
"Other"
],
"license": "SEE LICENSE IN LICENSE",
"repository": {
"type": "git",
"url": "https://github.com/demisto/vscode-extension"
},
"bugs": {
"url": "https://github.com/demisto/vscode-extension/issues"
},
"icon": "images/icon.png",
"activationEvents": [
"onCommand:xsoar.load",
"onCommand:xsoar.loadScript",
"onCommand:xsoar.upload",
"onCommand:xsoar.format",
"onCommand:xsoar.validate",
"onCommand:xsoar.updateReleaseNotes",
"onCommand:xsoar.validateUsingGit",
"onCommand:xsoar.updateDSDK",
"onCommand:xsoar.lint",
"onCommand:xsoar.lintUsingGit",
"onCommand:xsoar.readProblems",
"*"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "xsoar.load",
"title": "Load Integration",
"category": "XSOAR"
},
{
"command": "xsoar.loadScript",
"title": "Load Script",
"category": "XSOAR"
},
{
"command": "xsoar.upload",
"title": "Demisto-SDK Upload",
"category": "XSOAR"
},
{
"command": "xsoar.lint",
"title": "Demisto-SDK Lint",
"category": "XSOAR"
},
{
"command": "xsoar.lintUsingGit",
"title": "Demisto-SDK Lint (Using Git)",
"category": "XSOAR"
},
{
"command": "xsoar.format",
"title": "Demisto-SDK Format",
"category": "XSOAR"
},
{
"command": "xsoar.validate",
"title": "Demisto-SDK Validate",
"category": "XSOAR"
},
{
"command": "xsoar.validateUsingGit",
"title": "Demisto-SDK Validate (Using Git)",
"category": "XSOAR"
},
{
"command": "xsoar.updateReleaseNotes",
"title": "Demisto-SDK Update Release Notes",
"category": "XSOAR"
},
{
"command": "xsoar.updateDSDK",
"title": "Install/Update Demisto-SDK",
"category": "XSOAR"
},
{
"command": "xsoar.readProblems",
"title": "Read Problems From The Report File.",
"shortTitle": "Read Problems",
"category": "XSOAR"
},
{
"command": "xsoar.run",
"title": "Run and Debug",
"category": "XSOAR"
},
{
"command": "xsoar.setupIntegrationEnv",
"title": "Setup integration/script environment",
"category": "XSOAR"
},
{
"command": "xsoar.configureTests",
"title": "Configure XSOAR unit tests",
"category": "XSOAR"
},
{
"command": "xsoar.installDevEnv",
"title": "Install XSOAR local development environment",
"category": "XSOAR"
},
{
"command": "xsoar.configureXSOAR",
"title": "Configure XSOAR connection",
"category": "XSOAR"
},
{
"command": "xsoar.init",
"title": "Demisto-SDK Init (create new content item)",
"category": "XSOAR"
},
{
"command": "xsoar.developDemistoSDK",
"title": "Develop and Debug Demisto-SDK",
"category": "XSOAR"
}
],
"menus": {
"editor/context": [
{
"command": "xsoar.validate",
"when": "resourcePath =~ /.*Packs/|\\.+/"
},
{
"command": "xsoar.lint",
"when": "resourcePath =~ /.*Packs/|\\.+/"
},
{
"command": "xsoar.format",
"when": "resourcePath =~ /.*Packs/|\\.+/"
},
{
"command": "xsoar.updateReleaseNotes",
"when": "resourcePath =~ /.*Packs/|\\.+/"
},
{
"command": "xsoar.upload",
"when": "resourcePath =~ /.*Packs/|\\.+/"
},
{
"command": "xsoar.run",
"when": "resourcePath =~ /.*Packs/|\\.+/"
},
{
"command": "xsoar.integrationContainer",
"when": "resourcePath =~ /.*Packs/|\\.+/"
},
{
"command": "xsoar.setupIntegrationEnv",
"when": "resourcePath =~ /.*Packs/|\\.+/"
},
{
"command": "xsoar.configureTests",
"when": "resourcePath =~ /.*Packs/|\\.+/"
},
{
"command": "xsoar.installDevEnv",
"when": "resourcePath =~ /.*Packs/|\\.+/"
},
{
"command": "xsoar.configureXSOAR",
"when": "resourcePath =~ /.*Packs/|\\.+/"
}
],
"explorer/context": [
{
"command": "xsoar.validate",
"when": "resourcePath =~ /.*Packs/|\\.+/"
},
{
"command": "xsoar.lint",
"when": "resourcePath =~ /.*Packs/|\\.+/"
},
{
"command": "xsoar.format",
"when": "resourcePath =~ /.*Packs/|\\.+/"
},
{
"command": "xsoar.updateReleaseNotes",
"when": "resourcePath =~ /.*Packs/|\\.+/"
},
{
"command": "xsoar.upload",
"when": "resourcePath =~ /.*Packs/|\\.+/"
},
{
"command": "xsoar.run",
"when": "resourcePath =~ /.*Packs/|\\.+/"
},
{
"command": "xsoar.integrationContainer",
"when": "resourcePath =~ /.*Packs/|\\.+/"
},
{
"command": "xsoar.setupIntegrationEnv",
"when": "resourcePath =~ /.*Packs/|\\.+/"
},
{
"command": "xsoar.configureTests",
"when": "resourcePath =~ /.*Packs/|\\.+/"
},
{
"command": "xsoar.installDevEnv",
"when": "resourcePath =~ /.*Packs/|\\.+/"
},
{
"command": "xsoar.configureXSOAR",
"when": "resourcePath =~ /.*Packs/|\\.+/"
}
]
},
"configuration": {
"title": "Cortex XSOAR",
"properties": {
"xsoar.autoFindProblems.readProblems": {
"type": "boolean",
"default": false,
"markdownDescription": "Should auto-read the file in `#xsoar.autoFindProblems.reportPath#`. Disable this setting will also disable `#xsoar.linter.lint.enable#` and `#xsoar.linter.validate.enable#`."
},
"xsoar.autoFindProblems.reportPath": {
"type": "string",
"default": ".demisto-sdk-report",
"description": "The name of the file to write reports to. The file will be located in the local workspace."
},
"xsoar.demisto-sdk.Path": {
"type": "string",
"default": "demisto-sdk",
"description": "The path to the demisto-sdk. can be obtained with `which demisto-sdk`"
},
"xsoar.autoSave": {
"type": "boolean",
"default": true,
"description": "Whether to auto-save changes in script/integration panel changes."
},
"xsoar.linter.lint.patterns": {
"type": "array",
"default": [
"**/Packs/*/Integrations/**/*.py",
"**/Packs/*/Scripts/**/*.py",
"**/Packs/*/Integrations/**/*.ps1",
"**/Packs/*/Scripts/**/*.ps1",
"**/Packs/*/Integrations/**/*.js",
"**/Packs/*/Scripts/**/*.js"
],
"description": "Patterns to enable demisto-sdk lint on. glob format."
},
"xsoar.linter.lint.enable": {
"type": "boolean",
"default": false,
"description": "Whether to run the lint command on the files (Checks the code file."
},
"xsoar.linter.validate.enable": {
"type": "boolean",
"default": true,
"description": "Whether to run the validate command on the files (Checks the .yml file)."
},
"xsoar.linter.validate.patterns": {
"type": "array",
"default": [
"**/Packs/*/Integrations/*.yml",
"**/Packs/*/Scripts/*.yml",
"**/Packs/*/Integrations/**/*.yml",
"**/Packs/*/Scripts/**/*.yml"
],
"description": "Patterns to enable demisto-sdk validate on. glob format."
},
"xsoar.linter.showOnSaveTerminal": {
"type": "boolean",
"default": false,
"description": "Whether to show the running process of demisto-sdk in the terminal windows and will not dispose it after finish."
}
}
}
},
"scripts": {
"vscode:prepublish": "webpack --mode production",
"webpack": "webpack --mode development",
"webpack-dev": "webpack --mode development --watch",
"compile": "npm run webpack",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint && tsc -p ./",
"lint": "eslint src --ext ts",
"test": " node ./out/test/runTest.js"
},
"devDependencies": {
"@types/fs-extra": "^9.0.13",
"@types/glob": "^7.1.3",
"@types/html-validator": "^5.0.0",
"@types/minimatch": "^3.0.4",
"@types/mocha": "^8.0.4",
"@types/node": "^12.20.47",
"@types/vscode": "^1.54.0",
"@typescript-eslint/eslint-plugin": "^4.26.1",
"@typescript-eslint/parser": "^4.26.1",
"@vscode/test-electron": "^1.6.2",
"eslint": "^7.28.0",
"html-validator": "^5.1.17",
"mocha": "^8.2.1",
"ts-loader": "^9.2.6",
"typescript": "^4.1.3",
"vscode-test": "^1.5.0",
"webpack": "^5.56.1",
"webpack-cli": "^4.8.0"
},
"dependencies": {
"dotenv": "^16.3.1",
"envfile": "^6.17.0",
"fs-extra": "^10.0.1",
"glob": "^7.1.6",
"json5": "^2.2.1",
"minimatch": "^3.0.4",
"yaml": "^1.10.2"
}
}