vscode-apimanagement/package.json

642 строки
26 KiB
JSON

{
"name": "vscode-apimanagement",
"displayName": "Azure API Management",
"description": "An Azure API Management extension for Visual Studio Code.",
"version": "0.1.5",
"publisher": "ms-azuretools",
"icon": "resources/azure-apim.png",
"aiKey": "AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217",
"engines": {
"vscode": "^1.31.0"
},
"categories": [
"Azure"
],
"repository": {
"type": "git",
"url": "https://github.com/Microsoft/vscode-apimanagement"
},
"galleryBanner": {
"color": "#0072c6",
"theme": "dark"
},
"keywords": [
"Azure",
"API Management",
"APIM",
"OpenAPI",
"swagger"
],
"preview": true,
"activationEvents": [
"onCommand:azureApiManagement.Refresh",
"onCommand:azureApiManagement.selectSubscriptions",
"onView:azureApiManagementExplorer",
"onLanguage:policy",
"onLanguage:apim-policy",
"onCommand:azureApiManagement.createService",
"onCommand:azureApiManagement.deleteService",
"onCommand:azureApiManagement.copySubscriptionKey",
"onCommand:azureApiManagement.deleteApi",
"onCommand:azureApiManagement.deleteOperation",
"onCommand:azureApiManagement.importOpenApiByFile",
"onCommand:azureApiManagement.importOpenApiByLink",
"onCommand:azureApiManagement.testOperation",
"onCommand:azureApiManagement.openInPortal",
"onCommand:azureApiManagement.showApi",
"onCommand:azureApiManagement.showArmApi",
"onCommand:azureApiManagement.showArmApiOperation",
"onCommand:azureApiManagement.showArmProduct",
"onCommand:azureApiManagement.showServicePolicy",
"onCommand:azureApiManagement.showApiPolicy",
"onCommand:azureApiManagement.showOperationPolicy",
"onCommand:azureApiManagement.createNamedValue",
"onCommand:azureApiManagement.deleteNamedValue",
"onCommand:azureApiManagement.updateNamedValue",
"onCommand:azureApiManagement.addApiToProduct",
"onCommand:azureApiManagement.removeApiFromProduct",
"onCommand:azureApiManagement.addApiToGateway",
"onCommand:azureApiManagement.removeApiFromGateway",
"onCommand:azureApiManagement.showProductPolicy",
"onCommand:azureApiManagement.openWorkingFolder",
"onCommand:azureApiManagement.setupWorkingFolder",
"onCommand:azureApiManagement.extractService",
"onCommand:azureApiManagement.extractApi",
"onCommand:azureApiManagement.importFunctionApp",
"onCommand:azureApiManagement.importFunctionAppToApi",
"onCommand:azureApiManagement.importWebApp",
"onCommand:azureApiManagement.importWebAppToApi",
"onCommand:azureApiManagement.copyDockerRunCommand",
"onCommand:azureApiManagement.generateKubernetesDeployment",
"onCommand:azureApiManagement.generateNewGatewayToken",
"onCommand:azureApiManagement.debugPolicy"
],
"main": "main",
"contributes": {
"breakpoints": [
{
"language": "apim-policy"
}
],
"languages": [
{
"id": "apim-policy",
"mimetypes": [
"application/vnd.ms-azure-apim.policy.raw+xml"
]
}
],
"debuggers": [
{
"type": "apim-policy",
"label": "Attach to APIM",
"runtime": "node",
"configurationAttributes": {
"launch": {
"properties": {
"stopOnEntry": {
"type": "boolean",
"description": "Automatically stop after launch.",
"default": true
}
}
}
},
"initialConfigurations": [
{
"type": "apim-policy",
"request": "launch",
"name": "Attach to APIM",
"stopOnEntry": true
}
]
}
],
"jsonValidation": [
{
"fileMatch": "/*-api-arm.json",
"url": "./resources/schemas/ApiCreateOrUpdateParameter.json"
},
{
"fileMatch": "/*-operation-arm.json",
"url": "./resources/schemas/OperationUpdateContract.json"
}
],
"snippets": [
{
"language": "aspnetcorerazor",
"path": "./aspnetcorerazor.json"
}
],
"commands": [
{
"command": "azureApiManagement.createService",
"title": "%azureApiManagement.createService%",
"category": "Azure API Management"
},
{
"command": "azureApiManagement.deleteService",
"title": "%azureApiManagement.deleteService%",
"category": "Azure API Management"
},
{
"command": "azureApiManagement.copySubscriptionKey",
"title": "%azureApiManagement.copySubscriptionKey%",
"category": "Azure API Management"
},
{
"command": "azureApiManagement.deleteApi",
"title": "%azureApiManagement.deleteApi%",
"category": "Azure API Management"
},
{
"command": "azureApiManagement.deleteOperation",
"title": "%azureApiManagement.deleteOperation%",
"category": "Azure API Management"
},
{
"command": "azureApiManagement.importOpenApiByFile",
"title": "%azureApiManagement.importOpenApiByFile%",
"category": "Azure API Management"
},
{
"command": "azureApiManagement.importOpenApiByLink",
"title": "%azureApiManagement.importOpenApiByLink%",
"category": "Azure API Management"
},
{
"command": "azureApiManagement.testOperation",
"title": "%azureApiManagement.testOperation%",
"category": "Azure API Management"
},
{
"command": "azureApiManagement.openInPortal",
"title": "%azureApiManagement.openInPortal%",
"category": "Azure API Management"
},
{
"command": "azureApiManagement.selectSubscriptions",
"title": "Select Subscription...",
"icon": {
"light": "resources/light/filter.svg",
"dark": "resources/dark/filter.svg"
}
},
{
"command": "azureApiManagement.Refresh",
"title": "Refresh",
"category": "Azure Api Management",
"icon": {
"light": "resources/light/refresh.svg",
"dark": "resources/dark/refresh.svg"
}
},
{
"command": "azureApiManagement.LoadMore",
"title": "Load More",
"category": "Azure Api Management",
"icon": {
"light": "resources/light/refresh.svg",
"dark": "resources/dark/refresh.svg"
}
},
{
"command": "azureApiManagement.showApi",
"title": "%azureApiManagement.showApi%",
"category": "Azure API Management"
},
{
"command": "azureApiManagement.showArmApi",
"title": "%azureApiManagement.showArmApi%",
"category": "Azure API Management"
},
{
"command": "azureApiManagement.showArmApiOperation",
"title": "%azureApiManagement.showArmApiOperation%",
"category": "Azure API Management"
},
{
"command": "azureApiManagement.showArmProduct",
"title": "%azureApiManagement.showArmProduct%",
"category": "Azure API Management"
},
{
"command": "azureApiManagement.showServicePolicy",
"title": "%azureApiManagement.showServicePolicy%",
"category": "Azure API Management"
},
{
"command": "azureApiManagement.showApiPolicy",
"title": "%azureApiManagement.showApiPolicy%",
"category": "Azure API Management"
},
{
"command": "azureApiManagement.showOperationPolicy",
"title": "%azureApiManagement.showOperationPolicy%",
"category": "Azure API Management"
},
{
"command": "azureApiManagement.createNamedValue",
"title": "%azureApiManagement.createNamedValue%",
"category": "Azure API Management"
},
{
"command": "azureApiManagement.deleteNamedValue",
"title": "%azureApiManagement.deleteNamedValue%",
"category": "Azure API Management"
},
{
"command": "azureApiManagement.updateNamedValue",
"title": "%azureApiManagement.updateNamedValue%",
"category": "Azure API Management"
},
{
"command": "azureApiManagement.addApiToProduct",
"title": "%azureApiManagement.addApiToProduct%",
"category": "Azure API Management"
},
{
"command": "azureApiManagement.removeApiFromProduct",
"title": "%azureApiManagement.removeApiFromProduct%",
"category": "Azure API Management"
},
{
"command": "azureApiManagement.addApiToGateway",
"title": "%azureApiManagement.addApiToGateway%",
"category": "Azure API Management"
},
{
"command": "azureApiManagement.removeApiFromGateway",
"title": "%azureApiManagement.removeApiFromGateway%",
"category": "Azure API Management"
},
{
"command": "azureApiManagement.showProductPolicy",
"title": "%azureApiManagement.showProductPolicy%",
"category": "Azure API Management"
},
{
"command": "azureApiManagement.openExtensionWorkspaceFolder",
"title": "%azureApiManagement.openExtensionWorkspaceFolder%",
"category": "Azure API Management"
},
{
"command": "azureApiManagement.initializeExtensionWorkspaceFolder",
"title": "%azureApiManagement.initializeExtensionWorkspaceFolder%",
"category": "Azure API Management"
},
{
"command": "azureApiManagement.extractService",
"title": "%azureApiManagement.extractService%",
"category": "Azure API Management"
},
{
"command": "azureApiManagement.extractApi",
"title": "%azureApiManagement.extractApi%",
"category": "Azure API Management"
},
{
"command": "azureApiManagement.importFunctionApp",
"title": "%azureApiManagement.importFunctionApp%",
"category": "Azure API Management"
},
{
"command": "azureApiManagement.importFunctionAppToApi",
"title": "%azureApiManagement.importFunctionAppToApi%",
"category": "Azure API Management"
},
{
"command": "azureApiManagement.importWebApp",
"title": "%azureApiManagement.importWebApp%",
"category": "Azure API Management"
},
{
"command": "azureApiManagement.importWebAppToApi",
"title": "%azureApiManagement.importWebAppToApi%",
"category": "Azure API Management"
},
{
"command": "azureApiManagement.debugPolicy",
"title": "%azureApiManagement.debugPolicy%",
"category": "Azure API Management"
},
{
"command": "azureApiManagement.copyDockerRunCommand",
"title": "%azureApiManagement.copyDockerRunCommand%",
"category": "Azure API Management"
},
{
"command": "azureApiManagement.generateKubernetesDeployment",
"title": "%azureApiManagement.generateKubernetesDeployment%",
"category": "Azure API Management"
},
{
"command": "azureApiManagement.generateNewGatewayToken",
"title": "%azureApiManagement.generateNewGatewayToken%",
"category": "Azure API Management"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "azure",
"title": "Azure",
"icon": "resources/azure.svg"
}
]
},
"views": {
"azure": [
{
"id": "azureApiManagementExplorer",
"name": "Api Management",
"when": "config.azureApiManagement.showExplorer == true"
}
]
},
"menus": {
"editor/title": [],
"commandPalette": [
{
"command": "azureApiManagement.Refresh",
"when": "never"
},
{
"command": "azureApiManagement.LoadMore",
"when": "never"
}
],
"view/title": [
{
"command": "azureApiManagement.Refresh",
"when": "view == azureApiManagementExplorer",
"group": "navigation@1"
}
],
"view/item/context": [
{
"command": "azureApiManagement.selectSubscriptions",
"when": "view == azureApiManagementExplorer && viewItem == azureextensionui.azureSubscription",
"group": "inline"
},
{
"command": "azureApiManagement.Refresh",
"when": "view == azureApiManagementExplorer && viewItem == azureextensionui.azureSubscription",
"group": "3@1"
},
{
"command": "azureApiManagement.createService",
"when": "view == azureApiManagementExplorer && viewItem == azureextensionui.azureSubscription",
"group": "2@1"
},
{
"command": "azureApiManagement.openInPortal",
"when": "view == azureApiManagementExplorer && viewItem == azureextensionui.azureSubscription",
"group": "1@1"
},
{
"command": "azureApiManagement.openInPortal",
"when": "view == azureApiManagementExplorer && viewItem == azureApiManagementService",
"group": "1@1"
},
{
"command": "azureApiManagement.copySubscriptionKey",
"when": "view == azureApiManagementExplorer && viewItem == azureApiManagementService",
"group": "1@2"
},
{
"command": "azureApiManagement.extractService",
"when": "view == azureApiManagementExplorer && viewItem == azureApiManagementService",
"group": "2@1"
},
{
"command": "azureApiManagement.Refresh",
"when": "view == azureApiManagementExplorer && viewItem == azureApiManagementService",
"group": "3@1"
},
{
"command": "azureApiManagement.deleteService",
"when": "view == azureApiManagementExplorer && viewItem == azureApiManagementService",
"group": "4@1"
},
{
"command": "azureApiManagement.importOpenApiByFile",
"when": "view == azureApiManagementExplorer && viewItem == azureApiManagementApis",
"group": "1@1"
},
{
"command": "azureApiManagement.importOpenApiByLink",
"when": "view == azureApiManagementExplorer && viewItem == azureApiManagementApis",
"group": "1@2"
},
{
"command": "azureApiManagement.importFunctionApp",
"when": "view == azureApiManagementExplorer && viewItem == azureApiManagementApis",
"group": "2@1"
},
{
"command": "azureApiManagement.importWebApp",
"when": "view == azureApiManagementExplorer && viewItem == azureApiManagementApis",
"group": "2@2"
},
{
"command": "azureApiManagement.Refresh",
"when": "view == azureApiManagementExplorer && viewItem == azureApiManagementApis",
"group": "3@1"
},
{
"command": "azureApiManagement.showApi",
"when": "view == azureApiManagementExplorer && viewItem == azureApiManagementApi",
"group": "1@1"
},
{
"command": "azureApiManagement.importFunctionAppToApi",
"when": "view == azureApiManagementExplorer && viewItem == azureApiManagementApi",
"group": "2@1"
},
{
"command": "azureApiManagement.importWebAppToApi",
"when": "view == azureApiManagementExplorer && viewItem == azureApiManagementApi",
"group": "2@2"
},
{
"command": "azureApiManagement.extractApi",
"when": "view == azureApiManagementExplorer && viewItem == azureApiManagementApi",
"group": "3@1"
},
{
"command": "azureApiManagement.Refresh",
"when": "view == azureApiManagementExplorer && viewItem == azureApiManagementApi",
"group": "4@1"
},
{
"command": "azureApiManagement.deleteApi",
"when": "view == azureApiManagementExplorer && viewItem == azureApiManagementApi",
"group": "5@1"
},
{
"command": "azureApiManagement.Refresh",
"when": "view == azureApiManagementExplorer && viewItem == azureApiManagementOperations",
"group": "1@1"
},
{
"command": "azureApiManagement.deleteOperation",
"when": "view == azureApiManagementExplorer && viewItem == azureApiManagementApiOperation",
"group": "1@2"
},
{
"command": "azureApiManagement.testOperation",
"when": "view == azureApiManagementExplorer && viewItem == azureApiManagementApiOperation",
"group": "1@1"
},
{
"command": "azureApiManagement.debugPolicy",
"when": "view == azureApiManagementExplorer && viewItem == azureApiManagementApiOperation",
"group": "2@1"
},
{
"command": "azureApiManagement.createNamedValue",
"when": "view == azureApiManagementExplorer && viewItem == azureApiManagementNamedValues",
"group": "1@1"
},
{
"command": "azureApiManagement.deleteNamedValue",
"when": "view == azureApiManagementExplorer && viewItem == azureApiManagementNamedValue",
"group": "1@2"
},
{
"command": "azureApiManagement.updateNamedValue",
"when": "view == azureApiManagementExplorer && viewItem == azureApiManagementNamedValue",
"group": "1@1"
},
{
"command": "azureApiManagement.addApiToProduct",
"when": "view == azureApiManagementExplorer && viewItem == azureApiManagementProductApis",
"group": "1@1"
},
{
"command": "azureApiManagement.removeApiFromProduct",
"when": "view == azureApiManagementExplorer && viewItem == azureApiManagementProductApi",
"group": "1@1"
},
{
"command": "azureApiManagement.addApiToGateway",
"when": "view == azureApiManagementExplorer && viewItem == azureApiManagementGatewayApis",
"group": "1@1"
},
{
"command": "azureApiManagement.removeApiFromGateway",
"when": "view == azureApiManagementExplorer && viewItem == azureApiManagementGatewayApi",
"group": "1@1"
},
{
"command": "azureApiManagement.copyDockerRunCommand",
"when": "view == azureApiManagementExplorer && viewItem == azureApiManagementGatewayTreeItem",
"group": "1@1"
},
{
"command": "azureApiManagement.generateKubernetesDeployment",
"when": "view == azureApiManagementExplorer && viewItem == azureApiManagementGatewayTreeItem",
"group": "1@2"
},
{
"command": "azureApiManagement.generateNewGatewayToken",
"when": "view == azureApiManagementExplorer && viewItem == azureApiManagementGatewayTreeItem",
"group": "1@3"
}
]
},
"configuration": [
{
"title": "Azure API Management",
"properties": {
"azureApiManagement.showExplorer": {
"type": "boolean",
"default": true,
"description": "%azureApiManagement.showExplorer%"
},
"azureApiManagement.showSavePrompt": {
"type": "boolean",
"default": true,
"description": "%azureApiManagement.showSavePrompt%"
},
"azureApiManagement.advancedCreation": {
"type": "boolean",
"default": false,
"description": "%azureApiManagement.advancedCreationDescription%"
},
"azureApiManagement.advancedPolicyAuthoringExperience": {
"type": "boolean",
"default": false,
"description": "%azureApiManagement.advancedPolicyAuthoringExperience%"
}
}
}
]
},
"scripts": {
"vscode:prepublish": "npm run webpack-prod",
"build": "tsc -p ./",
"compile": "tsc -watch -p ./",
"package": "vsce package",
"lint": "tslint --project tsconfig.json -e src/*.d.ts -t verbose",
"lint-fix": "tslint --project tsconfig.json -t verbose --fix",
"postinstall": "node ./node_modules/vscode/bin/install",
"pretest": "npm run build && npm run webpack",
"test": "gulp test",
"watch": "tsc -watch -p ./",
"all": "npm i && npm run lint && npm test",
"webpack": "npm run build && gulp webpack-dev",
"webpack-prod": "npm run build && gulp webpack-prod",
"webpack-profile": "webpack --profile --json --mode production > webpack-stats.json && echo Use http://webpack.github.io/analyse to analyze the stats"
},
"devDependencies": {
"@types/fs-extra": "^4.0.3",
"@types/gulp": "^4.0.6",
"@types/mocha": "^5.2.6",
"@types/node": "^8.10.59",
"@types/request": "^2.48.4",
"@types/request-promise": "^4.1.46",
"@types/request-promise-native": "^1.0.17",
"@types/swagger-parser": "^4.0.3",
"@types/ws": "^6.0.4",
"gulp": "^4.0.0",
"mocha": "^5.2.0",
"mocha-junit-reporter": "^1.23.3",
"mocha-multi-reporters": "^1.1.7",
"ts-node": "^7.0.1",
"tslint": "^5.20.1",
"tslint-microsoft-contrib": "5.0.1",
"typescript": "^3.8.3",
"vsce": "^1.74.0",
"vscode": "^1.1.36",
"vscode-azureextensiondev": "0.1.8",
"vscode-debugadapter-testsupport": "1.40.2",
"vscode-extension-telemetry": "^0.0.18",
"webpack": "4.29.6",
"webpack-cli": "^3.3.11"
},
"dependencies": {
"@types/xml": "^1.0.4",
"await-notify": "1.0.1",
"azure-arm-apimanagement": "^6.0.0",
"azure-arm-resource": "^3.0.0-preview",
"azure-arm-website": "5.7.0",
"fs-extra": "^4.0.2",
"opn": "^5.3.0",
"request": "^2.88.2",
"request-promise": "^4.2.5",
"request-promise-native": "^1.0.8",
"swagger-parser": "^6.0.5",
"vscode-azureextensionui": "^0.23.3",
"vscode-debugadapter": "^1.39.1",
"vscode-debugprotocol": "^1.39.0",
"vscode-nls": "^4.1.2",
"ws": "^7.2.3"
},
"extensionDependencies": [
"ms-vscode.azure-account",
"humao.rest-client"
]
}