vscode-jupyter/.vscode/tasks.json

114 строки
3.4 KiB
JSON

{
"version": "2.0.0",
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared"
},
"tasks": [
{
"label": "Compile",
"type": "npm",
"script": "compile",
"isBackground": true,
"problemMatcher": [
{
"applyTo": "closedDocuments",
"fileLocation": "relative",
"source": "esbuild + tsc",
"pattern": [
{
"regexp": ": ([A-Za-z0-9]*) ([A-Za-z0-9]*): (.*)",
"severity": 1,
"message": 3
},
{
"regexp": "\\[[0-9]*\\] (.*)\\(([0-9]*),([0-9]*)\\)",
"file": 1,
"line": 2,
"column": 3
}
]
}
],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "Run Unit Tests",
"type": "npm",
"script": "test:unittests",
"group": {
"kind": "test",
"isDefault": true
}
},
{
"type": "npm",
"script": "preTestJediLSP",
"problemMatcher": [],
"label": "preTestJediLSP"
},
{
"type": "npm",
"script": "launchWebExtension",
"problemMatcher": [],
"label": "Launch Web Extension (Chrome)"
},
{
"type": "shell",
"problemMatcher": [],
"command": "npm",
"args": ["run", "launchWebExtension", "--", "--browser=webkit", "--port=3111"],
"label": "Launch Web Extension (Safari)"
},
{
"type": "npm",
"script": "lint",
"problemMatcher": ["$eslint-stylish"],
"label": "npm: lint",
"detail": "eslint -c .eslintrc.js --ext .ts src",
"group": {
"kind": "build"
}
},
{
"label": "Start Jupyter Server",
"type": "npm",
"dependsOn": "compile-web-test",
"isBackground": false,
"script": "startJupyterServer",
"problemMatcher": [],
"options": {
"env": {
"CI_PYTHON_PATH": "", // Update with path to real python interpereter used for testing.
"EXISTING_JUPYTER_URI": "" // Update with a server that you started yourself to avoid this script doing it
}
}
},
{
"label": "Start Jupyter Server Task",
"command": "echo ${input:terminateJupyterServerTask}",
"type": "shell",
"problemMatcher": []
},
{
"label": "Stop Jupyter Server",
"type": "npm",
"script": "stopJupyterServer",
"problemMatcher": []
}
],
"inputs": [
{
"id": "terminateJupyterServerTask",
"type": "command",
"command": "workbench.action.tasks.terminate",
"args": "terminateAll"
}
]
}