Files

135 lines
3.3 KiB
JSON

{
"name": "python-task-provider",
"displayName": "Python task provider",
"description": "Automatically provide tasks for setuptools and django to the Run Task/tasks.json system.",
"version": "0.3.0",
"engines": {
"vscode": "^1.52.0"
},
"repository": {"type": "github", "url": "https://github.com/tonybaloney/python-task-provider"},
"publisher": "tonybaloney",
"extensionDependencies": ["vscode.python"],
"categories": [
"Other"
],
"keywords": ["python", "task", "setuptools", "django"],
"license": "MIT",
"icon": "icon.png",
"activationEvents": [
"onCommand:workbench.action.tasks.runTask"
],
"main": "./out/extension.js",
"contributes": {
"configuration": {
"title": "PythonTaskProvider",
"properties": {
"pythonTaskProvider.runSetupToolsToDiscoverOptions": {
"type": "boolean",
"default": false,
"description": "Run setup.py --help-commands to discover extra commands. Caution, do not enable this for untrusted projects."
},
"pythonTaskProvider.runDjangoToDiscoverOptions": {
"type": "boolean",
"default": false,
"description": "Run manage.py --help to discover extra commands. Caution, do not enable this for untrusted projects."
}
}
},
"taskDefinitions": [
{
"type": "setuptools",
"required": [
"task"
],
"properties": {
"task": {
"type": "string",
"description": "The setuptools command to customize"
},
"file": {
"type": "string",
"description": "The setup.py file path that provides the command. Can be omitted and root is assumed."
},
"args": {
"type": "array",
"description": "Optional list of arguments to the task"
}
}
},
{
"type": "django",
"required": [
"task"
],
"properties": {
"task": {
"type": "string",
"description": "The django command to customize"
},
"file": {
"type": "string",
"description": "The manage.py file path that provides the command. Can be omitted and root is assumed."
},
"args": {
"type": "array",
"description": "Optional list of arguments to the task"
}
}
},
{
"type": "flit",
"required": [
"task"
],
"properties": {
"task": {
"type": "string",
"description": "The flit command"
},
"args": {
"type": "array",
"description": "Optional list of arguments to the task"
}
}
},
{
"type": "poetry",
"required": [
"task"
],
"properties": {
"task": {
"type": "string",
"description": "The poetry command"
},
"args": {
"type": "array",
"description": "Optional list of arguments to the task"
}
}
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/vscode": "^1.52.0",
"@types/glob": "^7.1.3",
"@types/mocha": "^8.0.0",
"@types/node": "^12.11.7",
"eslint": "^7.9.0",
"@typescript-eslint/eslint-plugin": "^4.1.1",
"@typescript-eslint/parser": "^4.1.1",
"glob": "^7.1.6",
"mocha": "^8.1.3",
"typescript": "^4.0.2",
"vscode-test": "^1.4.0"
}
}