-
Notifications
You must be signed in to change notification settings - Fork 9
/
package.json
440 lines (440 loc) · 13 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
{
"name": "code-builder",
"displayName": "Code Builder",
"publisher": "YaduAhuja",
"description": "Run C, C++, Java, JavaScript, TypeScript, Python, R, Ruby, Rust, Go Code files With & Without Input/Output Files",
"version": "0.10.4",
"license": "MIT",
"icon": "images/icon.png",
"engines": {
"vscode": "^1.56.0"
},
"categories": [
"Programming Languages",
"Debuggers",
"Other"
],
"keywords": [
"code",
"Code",
"java",
"c++",
"c",
"go",
"rust",
"typescript",
"R",
"python",
"javascript",
"ruby",
"competitive programming",
"run",
"build",
"programming contest",
"contest",
"run java",
"run cpp",
"run c",
"run code",
"run ruby",
"run python",
"build java",
"build c++",
"build c",
"build rust",
"run go",
"run typescript",
"run python",
"run javascript"
],
"bugs": {
"url": "https://github.com/YaduAhuja/Code-Builder/issues",
"email": "yaduahuja24@gmail.com"
},
"repository": {
"type": "git",
"url": "https://github.com/YaduAhuja/Code-Builder.git"
},
"activationEvents": [
"onCommand:code-builder.buildAndRun",
"onCommand:code-builder.buildWithIO",
"onCommand:code-builder.customCommand",
"onCommand:code-builder.stopBuild",
"onCommand:code-builder.setClassPath",
"onCommand:code-builder.setInputFilePath",
"onCommand:code-builder.setOutputFilePath",
"onCommand:code-builder.setProjectBuildCommand",
"onCommand:code-builder.switchTerminal",
"onCommand:code-builder.reset",
"onStartupFinished"
],
"main": "./dist/extension.js",
"capabilities": {
"untrustedWorkspaces": {
"supported": false,
"description": "To Build the Code Workspace Trust is required."
},
"virtualWorkspaces": {
"supported": false,
"description": "Code Building is not possible in virtual workspaces."
}
},
"contributes": {
"commands": [
{
"command": "code-builder.buildAndRun",
"category": "Code Builder",
"icon": {
"light": "images/build-and-run.svg",
"dark": "images/build-and-run.svg"
},
"title": "Build & Run File"
},
{
"command": "code-builder.buildWithIO",
"category": "Code Builder",
"title": "Build and Run File with IO Files"
},
{
"command": "code-builder.customCommand",
"category": "Code Builder",
"title": "Run Custom Command"
},
{
"command": "code-builder.stopBuild",
"category": "Code Builder",
"title": "Stop Build"
},
{
"command": "code-builder.setClassPath",
"category": "Code Builder",
"title": "Set Class Path"
},
{
"command": "code-builder.setInputFilePath",
"category": "Code Builder",
"title": "Set Input File Path"
},
{
"command": "code-builder.setOutputFilePath",
"category": "Code Builder",
"title": "Set Output File Path"
},
{
"command": "code-builder.setProjectBuildCommand",
"category": "Code Builder",
"title": "Set Project Build Command"
},
{
"command": "code-builder.switchTerminal",
"category": "Code Builder",
"title": "Switches the Terminal"
},
{
"command": "code-builder.reset",
"category": "Code Builder",
"title": "Reset the Extension"
}
],
"keybindings": [
{
"command": "code-builder.buildAndRun",
"key": "ctrl+alt+b"
},
{
"command": "code-builder.buildWithIO",
"key": "ctrl+alt+k"
},
{
"command": "code-builder.customCommand",
"key": "ctrl+alt+n"
},
{
"command": "code-builder.stopBuild",
"key": "ctrl+alt+j"
},
{
"command": "code-builder.setInputFilePath",
"key": "ctrl+alt+i"
},
{
"command": "code-builder.setOutputFilePath",
"key": "ctrl+alt+o"
},
{
"command": "code-builder.setClassPath",
"key": "ctrl+alt+p"
},
{
"command": "code-builder.setProjectBuildCommand",
"key": "ctrl+alt+l"
},
{
"command": "code-builder.switchTerminal",
"key": "ctrl+alt+t"
}
],
"menus": {
"editor/title/run": [
{
"when": "editorLangId in code-builder.build.languageSelector",
"command": "code-builder.buildAndRun"
}
]
},
"configuration": {
"title": "Code Builder",
"properties": {
"code-builder.saveFileBeforeRun": {
"type": "boolean",
"default": true,
"description": "Whether to save File before Run Command",
"scope": "resource",
"deprecationMessage": "Deprecated : Please use code-builder.build.saveFileBeforeRun"
},
"code-builder.preserveFocus": {
"type": "boolean",
"default": false,
"description": "Whether to preserve Focus when Build is called or not",
"scope": "resource",
"deprecationMessage": "Deprecated : Please use code-builder.build.preserveFocus"
},
"code-builder.customCommand": {
"type": "string",
"default": "echo hello",
"description": "Custom Command Which will be pushed to terminal Internal/External Based on Terminal Setting",
"scope": "resource",
"deprecationMessage": "Deprecated : Please use code-builder.build.customCommand"
},
"code-builder.clearTerminal": {
"type": "boolean",
"default": true,
"description": "whether to clear terminal before executing current command or not",
"scope": "resource",
"deprecationMessage": "Deprecated : Please use code-builder.build.clearTerminal"
},
"code-builder.classPath": {
"description": "ClassPath for Java Files(Set this through 'Set Input File path command')",
"scope": "resource",
"deprecationMessage": "Deprecated : Please use code-builder.java.classPath"
},
"code-builder.inputFilePath": {
"description": "Input File Path to be used in Run With IO(Set this through 'Set Input File path command')",
"scope": "resource",
"deprecationMessage": "Deprecated : Please use code-builder.build.inputFilePath"
},
"code-builder.outputFilePath": {
"description": "Output File Path to be used in Run With IO(Set this through 'Set Output File path command')",
"scope": "resource",
"deprecationMessage": "Deprecated : Please use code-builder.build.outputFilePath"
},
"code-builder.debugData": {
"type": "boolean",
"default": false,
"description": "Whether to Show the Debug Data in console or not",
"scope": "resource",
"deprecationMessage": "Deprecated : Please use code-builder.build.debugData"
},
"code-builder.runInExternalTerminal": {
"type": "boolean",
"default": false,
"description": "Whether to run Program in External Terminal",
"scope": "resource",
"deprecationMessage": "Deprecated : Please use code-builder.build.runInExternalTerminal"
},
"code-builder.useAutoClassPath": {
"type": "boolean",
"default": false,
"description": "Whether to use Automatic ClassPath\n Note: Experimental Feature",
"scope": "resource",
"deprecationMessage": "Deprecated : Please use code-builder.java.useAutoClassPath"
},
"code-builder.executorMap": {
"type": "object",
"default": {
"java": "cd $dir && javac $fileName && java -cp $classPath $qualifiedName",
"python": "cd $dir && python $fileName",
"c": "cd $dir && g++ $fileName -o $fileNameWithoutExt && ./$fileNameWithoutExt",
"cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt && ./$fileNameWithoutExt",
"javascript": "cd $dir && node $fileName",
"typescript": "cd $dir && ts-node $fileName",
"ruby": "cd $dir && ruby $fileName",
"go": "cd $dir && go build $fileName && ./$fileNameWithoutExt",
"r": "cd $dir && Rscript $fileName"
},
"description": "Executor Map which includes the Build commands for Languages",
"scope": "resource",
"deprecationMessage": "Deprecated : Please use code-builder.build.executorMap"
},
"code-builder.languageSelector": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"java",
"python",
"cpp",
"c",
"javascript",
"typescript",
"ruby",
"go",
"r",
"rust"
],
"description": "Languages at which Code Builder will show Run Button",
"scope": "resource",
"deprecationMessage": "Deprecated : Please use code-builder.build.languageSelector"
},
"code-builder.enableAppInsights": {
"type": "boolean",
"default": true,
"description": "Whether to enable App Insights to track user Telemetry Data or not",
"scope": "resource",
"deprecationMessage": "Deprecated : Please use code-builder.build.enableAppInsights"
},
"code-builder.build.saveFileBeforeRun": {
"type": "boolean",
"default": true,
"description": "Whether to save File before Run Command",
"scope": "resource"
},
"code-builder.build.preserveFocus": {
"type": "boolean",
"default": false,
"description": "Whether to preserve Focus when Build is called or not",
"scope": "resource"
},
"code-builder.build.customCommand": {
"type": "string",
"default": "echo hello",
"description": "Custom Command Which will be pushed to terminal Internal/External Based on Terminal Setting",
"scope": "resource"
},
"code-builder.build.clearTerminal": {
"type": "boolean",
"default": true,
"description": "whether to clear terminal before executing current command or not",
"scope": "resource"
},
"code-builder.java.classPath": {
"description": "ClassPath for Java Files(Set this through 'Set Input File path command')",
"scope": "resource"
},
"code-builder.build.inputFilePath": {
"description": "Input File Path to be used in Run With IO(Set this through 'Set Input File path command')",
"scope": "resource"
},
"code-builder.build.outputFilePath": {
"description": "Output File Path to be used in Run With IO(Set this through 'Set Output File path command')",
"scope": "resource"
},
"code-builder.build.projectBuildCommand": {
"description": "Command to Build the Project (Set this through 'Set Project Build Command' command')",
"scope": "resource"
},
"code-builder.build.debugData": {
"type": "boolean",
"default": false,
"description": "Whether to Show the Debug Data in console or not",
"scope": "resource"
},
"code-builder.build.runInExternalTerminal": {
"type": "boolean",
"default": false,
"description": "Whether to run Program in External Terminal",
"scope": "resource"
},
"code-builder.java.useAutoClassPath": {
"type": "boolean",
"default": false,
"description": "Whether to use Automatic ClassPath\n Note: Experimental Feature",
"scope": "resource"
},
"code-builder.build.executorMap": {
"type": "object",
"default": {
"java": "cd $dir && javac -cp $classPath $fileName && java -cp $classPath $qualifiedName",
"python": "cd $dir && python $fileName",
"c": "cd $dir && g++ $fileName $compilerArgs -o $fileNameWithoutExt && ./$fileNameWithoutExt",
"cpp": "cd $dir && g++ $fileName $compilerArgs -o $fileNameWithoutExt && ./$fileNameWithoutExt",
"javascript": "cd $dir && node $fileName",
"typescript": "cd $dir && ts-node $fileName",
"ruby": "cd $dir && ruby $fileName",
"go": "cd $dir && go build $fileName && ./$fileNameWithoutExt",
"r": "cd $dir && Rscript $fileName",
"rust": "cargo run"
},
"description": "Executor Map which includes the Build commands for Languages",
"scope": "resource"
},
"code-builder.build.languageSelector": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"java",
"python",
"cpp",
"c",
"javascript",
"typescript",
"ruby",
"go",
"r",
"rust"
],
"description": "Languages at which Code Builder will show Run Button",
"scope": "resource"
},
"code-builder.cpp.compilerArgs": {
"type": "string",
"default": "",
"description": "Compiler Arguments for CPP source files",
"scope": "resource"
},
"code-builder.c.compilerArgs": {
"type": "string",
"default": "",
"description": "Compiler Arguments for C source files",
"scope": "resource"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"test-compile": "tsc -p ./",
"test-watch": "tsc -watch -p ./",
"pretest": "npm run test-compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/dotenv-webpack": "^7.0.3",
"@types/glob": "^8.0.0",
"@types/mocha": "^10.0.0",
"@types/node": "^18.7.23",
"@types/vscode": "^1.56.0",
"@types/webpack": "^5.28.0",
"@typescript-eslint/eslint-plugin": "^5.38.1",
"@typescript-eslint/parser": "^5.38.1",
"@vscode/test-electron": "^2.1.4",
"eslint": "^8.24.0",
"glob": "^8.0.3",
"mocha": "^10.0.0",
"node-loader": "^2.0.0",
"ts-loader": "^9.4.1",
"typescript": "^4.8.4",
"webpack": "^5.64.3",
"webpack-cli": "^4.4.0"
},
"dependencies": {
"terminate": "^2.2.1"
}
}