291 строка
7.4 KiB
JSON
291 строка
7.4 KiB
JSON
{
|
|
"name": "vscode-gradle",
|
|
"displayName": "Gradle Tasks",
|
|
"description": "Run Gradle tasks in VS Code",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"publisher": "richardwillis",
|
|
"icon": "icon.png",
|
|
"readme": "README.md",
|
|
"author": "Richard Willis <willis.rh@gmail.com>",
|
|
"maintainers": [
|
|
"Richard Willis <willis.rh@gmail.com>"
|
|
],
|
|
"bugs": {
|
|
"url": "https://github.com/badsyntax/vscode-gradle/issues"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/badsyntax/vscode-gradle/"
|
|
},
|
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
"engines": {
|
|
"vscode": "^1.39.0"
|
|
},
|
|
"categories": [
|
|
"Other",
|
|
"Snippets"
|
|
],
|
|
"keywords": [
|
|
"java",
|
|
"gradle",
|
|
"compile",
|
|
"build",
|
|
"tasks"
|
|
],
|
|
"activationEvents": [
|
|
"onCommand:workbench.action.tasks.runTask",
|
|
"onCommand:gradle.refresh",
|
|
"onCommand:gradle.runTask",
|
|
"workspaceContains:gradlew",
|
|
"workspaceContains:gradlew.bat",
|
|
"onView:gradleTreeView"
|
|
],
|
|
"main": "./out/extension",
|
|
"contributes": {
|
|
"snippets": [
|
|
{
|
|
"language": "groovy",
|
|
"path": "./snippets/build.gradle.json"
|
|
},
|
|
{
|
|
"language": "kotlinscript",
|
|
"path": "./snippets/build.gradle.kts.json"
|
|
}
|
|
],
|
|
"problemMatchers": [
|
|
{
|
|
"owner": "gradle",
|
|
"name": "gradle",
|
|
"fileLocation": [
|
|
"relative",
|
|
"${workspaceFolder}"
|
|
],
|
|
"pattern": {
|
|
"regexp": "^.*(FAILURE):\\s*(.*)$",
|
|
"severity": 1,
|
|
"message": 2
|
|
}
|
|
}
|
|
],
|
|
"views": {
|
|
"explorer": [
|
|
{
|
|
"id": "gradleTreeView",
|
|
"name": "Gradle Tasks",
|
|
"when": "gradle:showTasksExplorer"
|
|
}
|
|
]
|
|
},
|
|
"commands": [
|
|
{
|
|
"command": "gradle.runTask",
|
|
"title": "Run Task",
|
|
"icon": {
|
|
"light": "resources/light/continue.svg",
|
|
"dark": "resources/dark/continue.svg"
|
|
}
|
|
},
|
|
{
|
|
"command": "gradle.runTaskWithArgs",
|
|
"title": "Run Task With Args"
|
|
},
|
|
{
|
|
"command": "gradle.stopTask",
|
|
"title": "Stop Task",
|
|
"icon": {
|
|
"light": "resources/light/stop.svg",
|
|
"dark": "resources/dark/stop.svg"
|
|
}
|
|
},
|
|
{
|
|
"command": "gradle.refresh",
|
|
"title": "Gradle: Refresh Tasks",
|
|
"icon": {
|
|
"light": "resources/light/refresh.svg",
|
|
"dark": "resources/dark/refresh.svg"
|
|
}
|
|
},
|
|
{
|
|
"command": "gradle.explorerFlat",
|
|
"title": "Show Flat List",
|
|
"icon": {
|
|
"light": "resources/light/list-flat.svg",
|
|
"dark": "resources/dark/list-flat.svg"
|
|
}
|
|
},
|
|
{
|
|
"command": "gradle.explorerTree",
|
|
"title": "Show Tree",
|
|
"icon": {
|
|
"light": "resources/light/list-tree.svg",
|
|
"dark": "resources/dark/list-tree.svg"
|
|
}
|
|
},
|
|
{
|
|
"command": "gradle.killRefreshProcess",
|
|
"title": "Gradle: Kill refresh process"
|
|
}
|
|
],
|
|
"menus": {
|
|
"commandPalette": [
|
|
{
|
|
"command": "gradle.runTask",
|
|
"when": "false"
|
|
},
|
|
{
|
|
"command": "gradle.runTaskWithArgs",
|
|
"when": "false"
|
|
},
|
|
{
|
|
"command": "gradle.stopTask",
|
|
"when": "false"
|
|
},
|
|
{
|
|
"command": "gradle.explorerFlat",
|
|
"when": "false"
|
|
},
|
|
{
|
|
"command": "gradle.explorerTree",
|
|
"when": "false"
|
|
}
|
|
],
|
|
"view/title": [
|
|
{
|
|
"command": "gradle.refresh",
|
|
"when": "view == gradleTreeView",
|
|
"group": "navigation"
|
|
},
|
|
{
|
|
"command": "gradle.explorerFlat",
|
|
"when": "view == gradleTreeView && !gradle:explorerCollapsed",
|
|
"group": "navigation"
|
|
},
|
|
{
|
|
"command": "gradle.explorerTree",
|
|
"when": "view == gradleTreeView && gradle:explorerCollapsed",
|
|
"group": "navigation"
|
|
}
|
|
],
|
|
"view/item/context": [
|
|
{
|
|
"command": "gradle.runTask",
|
|
"when": "view == gradleTreeView && viewItem == task"
|
|
},
|
|
{
|
|
"command": "gradle.runTaskWithArgs",
|
|
"when": "view == gradleTreeView && viewItem == task"
|
|
},
|
|
{
|
|
"command": "gradle.runTask",
|
|
"when": "view == gradleTreeView && viewItem == task",
|
|
"group": "inline"
|
|
},
|
|
{
|
|
"command": "gradle.stopTask",
|
|
"when": "view == gradleTreeView && viewItem == runningTask",
|
|
"group": "inline"
|
|
}
|
|
]
|
|
},
|
|
"configuration": {
|
|
"id": "gradle",
|
|
"type": "object",
|
|
"title": "Gradle",
|
|
"properties": {
|
|
"gradle.autoDetect": {
|
|
"type": "string",
|
|
"enum": [
|
|
"off",
|
|
"on"
|
|
],
|
|
"default": "on",
|
|
"scope": "resource",
|
|
"description": "Controls whether gradle tasks should be automatically detected"
|
|
},
|
|
"gradle.enableTasksExplorer": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "Enable an explorer view for gradle tasks"
|
|
}
|
|
}
|
|
},
|
|
"jsonValidation": [
|
|
{
|
|
"fileMatch": "package.json",
|
|
"url": "https://schemastore.azurewebsites.net/schemas/json/package.json"
|
|
}
|
|
],
|
|
"taskDefinitions": [
|
|
{
|
|
"type": "gradle",
|
|
"required": [
|
|
"script"
|
|
],
|
|
"properties": {
|
|
"script": {
|
|
"type": "string",
|
|
"description": "The task script name"
|
|
},
|
|
"description": {
|
|
"type": "string",
|
|
"description": "Description of the task"
|
|
},
|
|
"group": {
|
|
"type": "string",
|
|
"description": "Task group"
|
|
},
|
|
"project": {
|
|
"type": "string",
|
|
"description": "The project this task belongs to"
|
|
},
|
|
"buildFile": {
|
|
"type": "string",
|
|
"description": "The full path to task project build file"
|
|
},
|
|
"rootProject": {
|
|
"type": "string",
|
|
"description": "The root project this task belongs to"
|
|
},
|
|
"path": {
|
|
"type": "string",
|
|
"description": "The full task path"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"scripts": {
|
|
"vscode:prepublish": "npm run compile",
|
|
"compile": "tsc -p ./",
|
|
"watch": "tsc -watch -p ./",
|
|
"test": "node ./out/test/runTest.js",
|
|
"pretest": "npm run compile",
|
|
"lint": "npm run lint:prettier && npm run lint:eslint",
|
|
"lint:prettier": "prettier --check \"**/*.{ts,js,json,svg,md,yml}\"",
|
|
"lint:eslint": "eslint . --ext .js,.ts",
|
|
"format": "npm run format:prettier && npm run lint:eslint -- --fix",
|
|
"format:prettier": "prettier --write '**/*.{json,svg,md,yml}'",
|
|
"compile:java": "cd java-gradle-tasks && ./gradlew build copyLibToParent"
|
|
},
|
|
"dependencies": {},
|
|
"devDependencies": {
|
|
"@types/glob": "^7.1.1",
|
|
"@types/mocha": "^5.2.7",
|
|
"@types/node": "^12.12.14",
|
|
"@types/sinon": "^7.5.1",
|
|
"@types/vscode": "^1.39.0",
|
|
"@typescript-eslint/eslint-plugin": "^2.10.0",
|
|
"@typescript-eslint/parser": "^2.10.0",
|
|
"eslint": "^6.7.2",
|
|
"eslint-config-prettier": "^6.7.0",
|
|
"eslint-plugin-prettier": "^3.1.1",
|
|
"glob": "^7.1.6",
|
|
"mocha": "^6.2.2",
|
|
"prettier": "^1.19.1",
|
|
"sinon": "^7.5.0",
|
|
"typescript": "^3.7.3",
|
|
"vscode-test": "^1.2.3"
|
|
}
|
|
}
|