forked from agrawal-d/cph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
301 lines (301 loc) · 13.1 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
{
"name": "competitive-programming-helper",
"displayName": "Competitive Programming Helper (cph)",
"description": "Makes judging, compiling, and downloading problems for competitve programming easy. Also supports auto-submit for a few sites.",
"license": "GPL-3.0-or-later",
"icon": "icon.png",
"publisher": "DivyanshuAgrawal",
"version": "5.13.0",
"engines": {
"vscode": "^1.52.0"
},
"categories": [
"Other"
],
"activationEvents": [
"*"
],
"main": "dist/extension.js",
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "cph-judge-view-container",
"title": "CPH Judge",
"icon": "dist/static/panel-view-icon.svg"
}
]
},
"views": {
"cph-judge-view-container": [
{
"type": "webview",
"id": "cph.judgeView",
"name": "Results"
}
]
},
"commands": [
{
"command": "cph.runTestCases",
"title": "Run Testcases",
"icon": "dist/static/play.png"
},
{
"command": "cph.submitToCodeForces",
"title": "Submit to CodeForces",
"icon": "dist/static/play.png"
}
],
"keybindings": [
{
"key": "ctrl+alt+b",
"command": "cph.runTestCases"
},
{
"key": "ctrl+alt+s",
"command": "cph.submitToCodeForces"
},
{
"key": "ctrl+alt+d",
"command": "cph.judgeView.focus"
}
],
"configuration": {
"title": "Competitive Programming Helper",
"properties": {
"cph.general.saveLocation": {
"type": "string",
"default": "",
"description": "Location where generated .tcs and .bin files will be saved. Leave empty to save the file in the source file directory. Use this to clean up your folders."
},
"cph.general.timeOut": {
"type": "number",
"default": 3000,
"description": "The time in ms for which a testcase is run before it is killed ( timed-out )."
},
"cph.general.ignoreSTDERROR": {
"type": "boolean",
"default": false,
"description": "If enabled, non-empty standard error will not result in testcase failing."
},
"cph.language.c.Args": {
"title": "Compilation flags for .c files",
"type": "string",
"default": "",
"description": "Space seperated additional flags passed to gcc ( for C ) while compiling your file. Example '-O2 -Wall'"
},
"cph.language.c.SubmissionCompiler": {
"type": "string",
"default": "GNU GCC C11 5.1.0",
"enum": [
"GNU GCC C11 5.1.0"
],
"description": "The compiler chosen in the drop down during Codeforces submission for c"
},
"cph.language.c.Command": {
"type": "string",
"default": "gcc",
"description": "Command used to compile .c files. Example 'gcc', 'gcc-10', 'clang', etc."
},
"cph.language.cpp.Args": {
"title": "Compilation flags for .cpp files",
"type": "string",
"default": "",
"description": "Space seperated additional flags passed to g++ ( for C++ ) while compiling your file. Example '-Wmaybe-uninitialized -std=c++14'"
},
"cph.language.cpp.SubmissionCompiler": {
"type": "string",
"title": "check12344566",
"default": "GNU G++17 7.3.0",
"enum": [
"GNU G++17 7.3.0",
"GNU G++14 6.4.0",
"GNU G++11 5.1.0",
"GNU G++17 9.2.0 (64 bit, msys 2)",
"GNU G++20 11.2.0 (64 bit, winlibs)",
"Microsoft Visual C++ 2017",
"Microsoft Visual C++ 2010",
"Clang++17 Diagnostics"
],
"description": "The compiler chosen in the drop down during Codeforces submission for cpp"
},
"cph.language.cpp.Command": {
"type": "string",
"default": "g++",
"description": "Command used to compile .cpp files. Example 'g++', 'g++-10', 'clang++', etc."
},
"cph.language.python.Args": {
"title": "Compilation flags for Python",
"type": "string",
"default": "",
"description": "Space seperated additional flags passed to python while compiling your file. Example '-Wignore -u'"
},
"cph.language.python.SubmissionCompiler": {
"type": "string",
"default": "PyPy 3.6 (7.2.0)",
"enum": [
"PyPy 3.6 (7.2.0)",
"Python 3.7.2",
"PyPy 2.7 (7.2.0)",
"Python 2.7.15"
],
"description": "The compiler chosen in the drop down during Codeforces submission for python"
},
"cph.language.python.Command": {
"type": "string",
"default": "python3",
"description": "Command used to run python files. Example 'py', 'python3', 'pypy3', etc."
},
"cph.language.rust.Args": {
"title": "Compilation flags for Rust",
"type": "string",
"default": "",
"description": "Space seperated additional flags passed to rustc while compiling your file. Example '-O2 --verbose'"
},
"cph.language.rust.SubmissionCompiler": {
"type": "string",
"default": "Rust 1.66.0 (2021)",
"enum": [
"Rust 1.66.0 (2021)"
],
"description": "The compiler chosen in the drop down during Codeforces submission for rust"
},
"cph.language.rust.Command": {
"type": "string",
"default": "rustc",
"description": "Command used to compile rust files."
},
"cph.language.go.Args": {
"title": "Compilation flags for .go files",
"type": "string",
"default": "",
"description": "Space seperated additional flags passed to go while compiling your file. Example '-gcflags=-S'"
},
"cph.language.go.SubmissionCompiler": {
"type": "string",
"default": "Go 1.19.5",
"enum": [
"Go 1.19.5"
],
"description": "The compiler chosen in the drop down during Codeforces submission for go"
},
"cph.language.go.Command": {
"type": "string",
"default": "go",
"description": "Command used to compile .go files."
},
"cph.language.java.Args": {
"title": "Compilation flags for Java",
"type": "string",
"default": "",
"description": "Space seperated additional flags passed to javac while compiling your file. Example '-verbose'"
},
"cph.language.java.SubmissionCompiler": {
"type": "string",
"default": "Java 11.0.6",
"enum": [
"Java 11.0.6",
"Java 1.8.0_241"
],
"description": "The compiler chosen in the drop down during Codeforces submission for java"
},
"cph.language.java.Command": {
"type": "string",
"default": "javac",
"description": "Command used to compile java files."
},
"cph.general.firstTime": {
"title": "Show welcome message",
"type": "boolean",
"default": true,
"description": "A welcome message is shown when you run a testcase for the first time. This setting is updated automatically after the first message is shown."
},
"cph.general.defaultLanguage": {
"title": "Default language for new problems",
"type": "string",
"default": "",
"enum": [
"none",
"c",
"cpp",
"python",
"rust",
"java"
],
"description": "The default language for problems imported via Competitive Companion (None will give option to select language on importing problem every time)"
},
"cph.general.menuChoices": {
"type": "string",
"default": "cpp java python c rust",
"description": "Space separated languages, in top to bottom order, shown in menu when a problem is imported via Competitive Companion. Example 'java python' would show java on top, followed by python."
},
"cph.general.useShortCodeForcesName": {
"type": "boolean",
"default": false,
"description": "Use a short ID for problem file generated ( like 144C ) instead of the complete problem name for codeforces problems"
},
"cph.general.retainWebviewContext": {
"type": "boolean",
"default": false,
"description": "Keep the webview active even when it's hidden. May improve performance but may cause some rendering issues."
},
"cph.general.defaultLanguageTemplateFileLocation": {
"type": "string",
"default": "",
"description": "The path of the template that will be loaded when a new file of the default language is created by Competitive Companion"
},
"cph.general.autoShowJudge": {
"type": "boolean",
"default": true,
"description": "Automatically show the judge view when opening a file that has a problem associated with it"
}
}
}
},
"scripts": {
"webpack-production": "webpack --mode production",
"webpack-frontend-production": "webpack --mode production --config ./webpack.frontend.config.js",
"vscode:prepublish": "npm run webpack-frontend-production && npm run webpack-production",
"prewebpack": "webpack --mode development --config ./webpack.frontend.config.js",
"webpack": "webpack --mode development",
"webpack-dev": "webpack --mode development --watch",
"webpack-frontend-dev": "webpack --mode development --watch --config ./webpack.frontend.config.js",
"test-compile": "tsc -p ./",
"lint": "eslint . --ext .ts,.tsx",
"pretest": "tsc -p ./",
"test": "jest out/"
},
"devDependencies": {
"@types/jest": "^25.2.3",
"@types/node": "^13.11.0",
"@types/react": "^16.9.35",
"@types/react-dom": "^16.9.8",
"@types/vscode": "^1.52.0",
"@typescript-eslint/eslint-plugin": "^3.0.2",
"@typescript-eslint/parser": "^3.0.2",
"copy-webpack-plugin": "^11.0.0",
"eslint": "^7.1.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-react": "^7.20.0",
"eslint-plugin-react-hooks": "^4.0.4",
"jest": "^23.6.0",
"prettier": "2.0.5",
"ts-loader": "^9.4.3",
"typescript": "^3.8.3",
"vscode-codicons": "^0.0.17",
"webpack": "^5.88.0",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"python-shell": "^2.0.2",
"react": "^16.13.1",
"react-autosize-textarea": "^7.0.0",
"react-dom": "^16.13.1"
},
"repository": {
"type": "git",
"url": "https://github.com/agrawal-d/competitive-programming-helper/"
}
}