-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
478 lines (478 loc) · 15.8 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
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
{
"name": "unikraft-ide-vscode",
"displayName": "Unikraft",
"description": "Seamlessly build and manage Unikraft components from within VSCode!",
"version": "0.3.2",
"publisher": "unikraft",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/unikraft/ide-vscode.git"
},
"homepage": "https://github.com/unikraft/ide-vscode/main/README.md",
"engines": {
"vscode": "^1.86.0"
},
"keywords": [
"unikraft",
"unikernel"
],
"categories": [
"Other"
],
"activationEvents": [
"onView:externalLibraries"
],
"icon": "media/unikraft-logo.png",
"galleryBanner": {
"color": "#0E2F5F",
"theme": "dark"
},
"main": "./client/out/extension",
"contributes": {
"configuration": {
"type": "object",
"title": "Unikraft",
"properties": {
"C_Cpp": {
"type": "object",
"description": "Configuration for `C/C++ Extension`.",
"properties": {
"default": {
"type": "object",
"properties": {
"includePath": {
"type": "array",
"description": "A list of headerfile directories."
},
"defines": {
"type": "array",
"description": "A list of preprocessor definitions for the IntelliSense engine to use while parsing files."
}
}
}
}
},
"unikraft": {
"client": {
"sources": {
"type": "string",
"default": "",
"description": "Specifies the directory where all the packages are stored, By default it is set by environment variable KRAFTKIT_PATHS_SOURCES or file `$HOME/.config/kraftkit/config.yaml`."
},
"manifests": {
"type": "string",
"default": "",
"description": "Specifies the directory where all the manifests are stored, By default it is set by environment variable KRAFTKIT_PATHS_MANIFESTS or file `$HOME/.config/kraftkit/config.yaml`."
},
"run": {
"detach": {
"type": "boolean",
"default": false,
"description": "Whether to run unikernel in background"
},
"disableAcceleration": {
"type": "boolean",
"default": false,
"description": "Whether to disable acceleration of CPU (usually enables TCG)"
},
"initrd": {
"type": "string",
"default": "",
"description": "Whether to run specified initrd unikernel"
},
"ip": {
"type": "string",
"default": "",
"description": "Assign the provided IP address"
},
"kernelArguments": {
"type": "array",
"default": [],
"description": "Set additional kernel arguments"
},
"macAddress": {
"type": "string",
"default": "",
"description": "Assign the provided MAC address"
},
"memory": {
"type": "string",
"default": "64M",
"description": "Assign MB memory to the unikernel"
},
"name": {
"type": "string",
"default": "",
"description": "Name of the instance"
},
"network": {
"type": "string",
"default": "",
"description": "Attach instance to the provided network in the format <driver>:<network>"
},
"ports": {
"type": "array",
"default": [],
"description": "Publish a machine's port(s) to the host"
},
"remove": {
"type": "boolean",
"default": false,
"description": "Whether to automatically remove the unikernel when it shutsdown"
},
"as": {
"type": "string",
"default": "",
"description": "Force a specific runner"
},
"volume": {
"type": "string",
"default": "",
"description": "Bind a volume to the instance"
},
"symbolic": {
"type": "boolean",
"default": false,
"description": "Whether to use the debuggable (symbolic) unikernel"
}
},
"build": {
"config": {
"type": "string",
"default": "",
"description": "Override the path to the KConfig .config file"
},
"jobs": {
"type": "integer",
"default": 0,
"description": "Allow N jobs at once"
},
"dbg": {
"type": "boolean",
"default": false,
"description": "Build the debuggable (symbolic) kernel image instead of the stripped image"
},
"noCache": {
"type": "boolean",
"default": false,
"description": "Force a rebuild even if existing intermediate artifacts already exist"
},
"noConfigure": {
"type": "boolean",
"default": false,
"description": "Do not run Unikraft's configure step before building"
},
"noFast": {
"type": "boolean",
"default": false,
"description": "Do not use maximum parallelization when performing the build"
},
"noFetch": {
"type": "boolean",
"default": false,
"description": "Do not run Unikraft's fetch step before building"
},
"noPull": {
"type": "boolean",
"default": false,
"description": "Do not pull packages before invoking Unikraft's build system"
},
"noUpdate": {
"type": "boolean",
"default": false,
"description": "Do not update package index before running the build"
},
"buildLog": {
"type": "string",
"default": "",
"description": "Use the specified file to save the output from the build"
}
},
"initialize": {
"library": {
"noProvideMain": {
"type": "boolean",
"default": false,
"description": "Do not provide provide-main to the template"
},
"gitInit": {
"type": "boolean",
"default": true,
"description": "Init git through the creating library"
},
"withPatchedir": {
"type": "boolean",
"default": false,
"description": "provide patch directory to the template"
}
}
},
"deploy": {
"config": {
"type": "string",
"default": "",
"description": "Override the path to the KConfig .config file"
},
"jobs": {
"type": "integer",
"default": 0,
"description": "Allow N jobs at once"
},
"dbg": {
"type": "boolean",
"default": false,
"description": "Build the debuggable (symbolic) kernel image instead of the stripped image"
},
"noCache": {
"type": "boolean",
"default": false,
"description": "Force a rebuild even if existing intermediate artifacts already exist"
},
"noConfigure": {
"type": "boolean",
"default": false,
"description": "Do not run Unikraft's configure step before building"
},
"noFast": {
"type": "boolean",
"default": false,
"description": "Do not use maximum parallelization when performing the build"
},
"noFetch": {
"type": "boolean",
"default": false,
"description": "Do not run Unikraft's fetch step before building"
},
"forcePull": {
"type": "boolean",
"default": false,
"description": "Force pull packages before invoking Unikraft's build system"
},
"noUpdate": {
"type": "boolean",
"default": false,
"description": "Do not update package index before running the build"
},
"buildLog": {
"type": "string",
"default": "",
"description": "Use the specified file to save the output from the build"
},
"envs": {
"type": "array",
"default": [],
"description": "Set environment variables for the build"
},
"memory": {
"type": "integer",
"default": "64",
"description": "Assign memory to the unikernel"
},
"name": {
"type": "string",
"default": "",
"description": "Name of the instance"
},
"noStart": {
"type": "boolean",
"default": false,
"description": "Do not start the unikernel after deploying"
},
"ports": {
"type": "array",
"default": [],
"description": "Publish a machine's port(s) to the network"
},
"replicas": {
"type": "integer",
"default": 0,
"description": "Number of replicas to deploy"
},
"rootfs": {
"type": "string",
"default": "",
"description": "Use the specified rootfs for the unikernel"
},
"timeout": {
"type": "integer",
"default": 0,
"description": "Set the timeout for the unikernel"
},
"runtime": {
"type": "string",
"default": "",
"description": "Use the specified runtime for the unikernel"
},
"strategy": {
"type": "string",
"default": "",
"description": "Set the deployment strategy"
}
}
},
"server": {
"maxNumberOfProblems": {
"scope": "resource",
"type": "number",
"default": 100,
"description": "Controls the maximum number of problems can be produced by the server."
}
}
}
}
},
"viewsContainers": {
"activitybar": [
{
"id": "package-explorer",
"title": "Package Explorer",
"icon": "media/unikraft-u.svg"
}
]
},
"views": {
"package-explorer": [
{
"id": "externalLibraries",
"name": "External Libraries",
"icon": "media/unikraft-u.svg",
"contextualTitle": "Package Explorer"
}
]
},
"menus": {
"view/title": [
{
"command": "externalLibraries.addLibrary",
"when": "view == externalLibraries",
"group": "navigation"
},
{
"command": "externalLibraries.refreshEntry",
"when": "view == externalLibraries",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "externalLibraries.removeLibrary",
"when": "view == externalLibraries && viewItem == library"
},
{
"command": "externalLibraries.purgeLibrary",
"when": "view == externalLibraries && viewItem == library"
}
]
},
"commands": [
{
"command": "unikraft.initialize",
"title": "Initialize project",
"category": "Unikraft"
},
{
"command": "unikraft.configure",
"title": "Configure project",
"category": "Unikraft"
},
{
"command": "unikraft.build",
"title": "Build project",
"category": "Unikraft"
},
{
"command": "unikraft.run",
"title": "Run project",
"category": "Unikraft"
},
{
"command": "unikraft.update",
"title": "Update",
"category": "Unikraft"
},
{
"command": "unikraft.clean",
"title": "Clean",
"category": "Unikraft"
},
{
"command": "unikraft.deploy",
"title": "Deploy",
"category": "Unikraft"
},
{
"command": "unikraft.properclean",
"title": "Properclean",
"category": "Unikraft"
},
{
"command": "externalLibraries.addLibrary",
"title": "Add library",
"icon": {
"light": "resources/light/add.svg",
"dark": "resources/dark/add.svg"
}
},
{
"command": "externalLibraries.removeLibrary",
"title": "Remove library"
},
{
"command": "externalLibraries.purgeLibrary",
"title": "Purge library"
},
{
"command": "externalLibraries.refreshEntry",
"title": "Refresh",
"icon": {
"light": "resources/light/refresh.svg",
"dark": "resources/dark/refresh.svg"
}
}
]
},
"extensionDependencies": [
"ms-vscode.cpptools",
"ms-python.python",
"redhat.vscode-yaml"
],
"scripts": {
"test": "node ./client/out/test/runTest.js",
"vscode:prepublish": "npm install && npm run compile && npm run esbuild-base-client -- --minify && npm run esbuild-base-server -- --minify",
"compile": "tsc -b",
"watch": "tsc -b -w",
"pretest": "npm run compile && npm run lint",
"lint": "eslint ./client/src ./server/src --ext .ts",
"esbuild-base-client": "esbuild ./client/src/extension.ts --bundle --outfile=client/out/main.js --external:vscode --format=cjs --platform=node",
"esbuild-base-server": "esbuild ./server/src/server.ts --bundle --outfile=server/out/main.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run esbuild-base-client -- --sourcemap && npm run esbuild-base-server -- --sourcemap",
"esbuild-watch-client": "npm run esbuild-base-client -- --sourcemap --watch",
"esbuild-watch-server": "npm run esbuild-base-server -- --sourcemap --watch",
"test-compile": "tsc -b"
},
"devDependencies": {
"@types/command-exists": "^1.2.3",
"@types/js-yaml": "^4.0.9",
"@types/mocha": "^10.0.6",
"@types/node": "^20.11.16",
"@types/vscode": "^1.86.0",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@vscode/test-electron": "^2.3.9",
"esbuild": "^0.20.0",
"eslint": "^8.56.0",
"glob": "^10.3.10",
"mocha": "^10.2.0",
"typescript": "^5.3.3",
"winston": "^3.11.0"
},
"dependencies": {
"command-exists": "^1.2.9",
"js-yaml": "^4.1.0",
"vscode-languageclient": "^8.1.0",
"vscode-languageserver": "^8.1.0",
"vscode-languageserver-textdocument": "^1.0.11",
"yaml": "^2.3.4"
}
}