package.json 8.63 KB
Newer Older
Timon Stampfli's avatar
Timon Stampfli committed
1
{
2 3 4
  "name": "soicode",
  "displayName": "soicode",
  "description": "A extension which provides integration to solve soi (soi.ch) tasks in vscode",
5
  "version": "0.0.0",
6 7
  "publisher": "swissolyinfo",
  "engines": {
8
    "vscode": "^1.33.0"
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
  },
  "categories": [
    "Other"
  ],
  "keywords": [
    "soi",
    "competitive",
    "c++",
    "contest",
    "olympiad"
  ],
  "activationEvents": [
    "onCommand:soicode.initializeWorkspace",
    "onCommand:soicode.createTask",
    "onView:soicode-tasks",
    "onView:soicode-samples",
    "workspaceContains:soiworkspace.json"
  ],
Timon Stampfli's avatar
Timon Stampfli committed
27
  "main": "./dist/extension",
28 29 30 31 32 33 34 35
  "repository": {
    "type": "git",
    "url": "https://git.dolansoft.org/timon/soicode.git"
  },
  "contributes": {
    "commands": [
      {
        "command": "soicode.createTask",
36 37
        "title": "Create a new empty SOI task",
        "icon": {
38 39
          "light": "./images/icons/light/task-new.svg",
          "dark": "./images/icons/dark/task-new.svg"
40
        }
41 42 43
      },
      {
        "command": "soicode.initializeWorkspace",
44 45 46 47 48
        "title": "Initialize this workspace as a SOI Code workspace",
        "icon": {
          "light": "./images/soicode-activitybar.svg",
          "dark": "./images/soicode-activitybar-dark.svg"
        }
49
      },
50 51 52 53
      {
        "command": "soicode.openSample",
        "title": "Opens a sample"
      },
54 55
      {
        "command": "soicode.runSolutionOnSample",
56
        "title": "Run solution with one sample",
57
        "icon": {
58 59
          "light": "./images/icons/light/sample-run.svg",
          "dark": "./images/icons/dark/sample-run.svg"
60
        }
61 62 63
      },
      {
        "command": "soicode.runSolutionOnAllSamples",
64
        "title": "Run solution on all samples",
65
        "icon": {
66 67
          "light": "./images/icons/light/sample-run-all.svg",
          "dark": "./images/icons/dark/sample-run-all.svg"
68
        }
69 70 71
      },
      {
        "command": "soicode.runSolutionWithManualInput",
72
        "title": "Run solution with user input",
73
        "icon": {
74 75
          "light": "./images/icons/light/sample-run-manual.svg",
          "dark": "./images/icons/dark/sample-run-manual.svg"
76
        }
77 78 79
      },
      {
        "command": "soicode.debugSolutionOnSample",
80
        "title": "Debug with one sample",
81
        "icon": {
82 83
          "light": "./images/icons/light/sample-debug.svg",
          "dark": "./images/icons/dark/sample-debug.svg"
84
        }
85 86 87
      },
      {
        "command": "soicode.debugSolutionWithManualInput",
88
        "title": "Debug with user input",
89
        "icon": {
90 91
          "light": "./images/icons/light/sample-debug-manual.svg",
          "dark": "./images/icons/dark/sample-debug-manual.svg"
92
        }
93 94 95
      },
      {
        "command": "soicode.compileCurrentSolution",
96
        "title": "Compile open solution"
97 98 99 100 101 102 103 104 105 106 107 108
      },
      {
        "command": "soicode.addSoitaskTemplate",
        "title": "Inserts the soitask template in a empty soitask file"
      },
      {
        "command": "soicode.addCppTemplate",
        "title": "Inserts the SOI C++ Template into a empty cpp file"
      },
      {
        "command": "soicode.createSoitaskForSolution",
        "title": "Create a new soitask file for the currently open solution"
109 110 111 112
      },
      {
        "command": "soicode.createSolutionForSoitask",
        "title": "Create a new cpp solution file for the currently open soitask"
113
      }
Timon Stampfli's avatar
fixes  
Timon Stampfli committed
114
    ],
115 116 117 118 119 120 121 122 123
    "properties": {},
    "viewsContainers": {
      "activitybar": [
        {
          "id": "soicode-explorer",
          "title": "SOI Code",
          "icon": "./images/soicode-activitybar.svg"
        }
      ]
124
    },
125 126 127 128 129
    "views": {
      "soicode-explorer": [
        {
          "id": "soicode-tasks",
          "name": "Tasks"
Timon Stampfli's avatar
Timon Stampfli committed
130
        },
131 132 133
        {
          "id": "soicode-samples",
          "name": "Samples"
Timon Stampfli's avatar
Timon Stampfli committed
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
    },
    "menus": {
      "view/title": [
        {
          "command": "soicode.createTask",
          "group": "navigation",
          "when": "view == soicode-tasks"
        },
        {
          "command": "soicode.runSolutionOnSample",
          "group": "navigation",
          "when": "view == soicode-tasks"
        },
        {
          "command": "soicode.runSolutionOnAllSamples",
          "group": "navigation",
          "when": "view == soicode-tasks"
        },
        {
          "command": "soicode.debugSolutionOnSample",
          "group": "navigation",
          "when": "view == soicode-tasks"
        },
        {
          "command": "soicode.runSolutionWithManualInput",
          "when": "view == soicode-tasks"
        },
        {
          "command": "soicode.debugSolutionWithManualInput",
          "when": "view == soicode-tasks"
        },
        {
          "command": "soicode.compileCurrentSolution",
          "when": "view == soicode-tasks"
        }
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
      ],
      "view/item/context": [
        {
          "command": "soicode.runSolutionOnAllSamples",
          "when": "view == soicode-tasks && viewItem == soitask || view == soicode-tasks && viewItem == task || view == soicode-tasks && viewItem == solution"
        },
        {
          "command": "soicode.runSolutionOnSample",
          "when": "view == soicode-tasks && viewItem == soitask || view == soicode-tasks && viewItem == task || view == soicode-tasks && viewItem == solution"
        },
        {
          "command": "soicode.runSolutionWithManualInput",
          "when": "view == soicode-tasks && viewItem == soitask || view == soicode-tasks && viewItem == task || view == soicode-tasks && viewItem == solution"
        },
        {
          "command": "soicode.debugSolutionOnSample",
          "when": "view == soicode-tasks && viewItem == soitask || view == soicode-tasks && viewItem == task || view == soicode-tasks && viewItem == solution"
        },
        {
          "command": "soicode.debugSolutionWithManualInput",
          "when": "view == soicode-tasks && viewItem == soitask || view == soicode-tasks && viewItem == task || view == soicode-tasks && viewItem == solution"
        }
      ],
      "editor/context": [
        {
          "command": "soicode.runSolutionOnAllSamples",
          "group": "soicode",
          "when": "editorLangId == cpp || editorLangId == stoml"
        },
        {
          "command": "soicode.runSolutionOnSample",
          "group": "soicode",
          "when": "editorLangId == cpp || editorLangId == stoml"
        },
        {
          "command": "soicode.runSolutionWithManualInput",
          "group": "soicode",
          "when": "editorLangId == cpp || editorLangId == stoml"
        },
        {
          "command": "soicode.debugSolutionOnSample",
          "group": "soicode",
          "when": "editorLangId == cpp || editorLangId == stoml"
        },
        {
          "command": "soicode.debugSolutionWithManualInput",
          "group": "soicode",
          "when": "editorLangId == cpp || editorLangId == stoml"
        }
220 221
      ]
    },
222 223 224 225 226 227 228 229
    "keybindings": [
      {
        "command": "soicode.runSolutionOnAllSamples",
        "key": "ctrl+enter",
        "mac": "ctrl+enter",
        "when": "editorLangId == cpp || editorLangId == stoml"
      }
    ],
230 231
    "languages": [
      {
232
        "id": "stoml",
233
        "aliases": [
234 235 236
          "soitask",
          "stoml",
          "STOML"
237 238
        ],
        "extensions": [
239 240
          ".soitask",
          ".stoml"
241 242
        ],
        "mimetypes": [
243
          "text/x-stoml"
244
        ],
245
        "configuration": "./stoml-language/language-configuration.json"
246
      }
247 248 249 250 251 252 253
    ],
    "grammars": [
      {
        "language": "stoml",
        "scopeName": "source.stoml",
        "path": "./stoml-language/STOML.tmLanguage"
      }
254
    ]
255
  },
256
  "extensionDependencies-deactivated": [
257 258 259 260 261
    "ms-vscode.cpptools"
  ],
  "icon": "images/soilogo.png",
  "homepage": "https://soi.ch",
  "scripts": {
Timon Stampfli's avatar
Timon Stampfli committed
262
    "compile": "tsc -p ./",
263
    "watch": "tsc -watch -p ./",
264
    "pretest": "npm run compile",
265
    "build-package": "vsce package",
Timon Stampfli's avatar
Timon Stampfli committed
266
    "test": "node ./out/test/runTest.js",
Timon Stampfli's avatar
Timon Stampfli committed
267 268
    "vscode:prepublish": "webpack --mode production",
    "webpack": "webpack --mode production"
269 270
  },
  "devDependencies": {
271 272 273 274 275 276 277
    "@types/fs-extra": "^5.0.4",
    "@types/glob": "^7.1.1",
    "@types/mocha": "^5.2.6",
    "@types/node": "^10.12.21",
    "@types/vscode": "^1.33.0",
    "glob": "^7.1.4",
    "mocha": "^6.1.4",
Timon Stampfli's avatar
Timon Stampfli committed
278
    "ts-loader": "^6.2.0",
279 280 281
    "tslint": "^5.12.1",
    "typescript": "^3.3.1",
    "vsce": "^1.67.1",
Timon Stampfli's avatar
Timon Stampfli committed
282 283 284
    "vscode-test": "^1.2.0",
    "webpack": "^4.41.0",
    "webpack-cli": "^3.3.9"
285 286
  },
  "dependencies": {
287 288 289 290 291 292 293 294
    "fs-extra": "^7.0.0",
    "@sgarciac/bombadil": "0.0.7",
    "node-fetch": "^2.1.2",
    "request-light": "^0.2.2",
    "vscode-json-languageservice": "^3.1.0",
    "vscode-languageclient": "^4.1.3",
    "vscode-languageserver": "^4.1.2",
    "vscode-nls": "^3.2.2"
295
  }
Timon Stampfli's avatar
Timon Stampfli committed
296
}