87 lines
2.4 KiB
JSON
87 lines
2.4 KiB
JSON
{
|
|
"name": "@dayu/vscode",
|
|
"displayName": "vscode",
|
|
"description": "Dayu VsCode Plugin",
|
|
"publisher": "MiaoWoo",
|
|
"version": "0.0.1",
|
|
"engines": {
|
|
"vscode": "^1.35.0"
|
|
},
|
|
"categories": [
|
|
"Other"
|
|
],
|
|
"activationEvents": [
|
|
"onView:docker-explorer"
|
|
],
|
|
"main": "./dist/extension.js",
|
|
"contributes": {
|
|
"viewsContainers": {
|
|
"activitybar": [
|
|
{
|
|
"id": "dayu-explorer",
|
|
"title": "Dayu Explorer",
|
|
"icon": "src/images/logo.svg"
|
|
}
|
|
]
|
|
},
|
|
"views": {
|
|
"dayu-explorer": [
|
|
{
|
|
"id": "docker-explorer",
|
|
"name": "Docker"
|
|
}
|
|
]
|
|
},
|
|
"commands": [
|
|
{
|
|
"command": "dayu.container.logs",
|
|
"title": "View Container Logs",
|
|
"icon": {
|
|
"dark": "src/images/browser.svg"
|
|
}
|
|
},
|
|
{
|
|
"command": "dayu.service.logs",
|
|
"title": "View Service Logs",
|
|
"icon": {
|
|
"dark": "src/images/browser.svg"
|
|
}
|
|
}
|
|
],
|
|
"menus": {
|
|
"view/item/context": [
|
|
{
|
|
"command": "dayu.container.logs",
|
|
"when": "view == docker-explorer && viewItem =~ /.*\"type\":\"CONTAINER\".*/",
|
|
"group": "inline"
|
|
},
|
|
{
|
|
"command": "dayu.service.logs",
|
|
"when": "view == docker-explorer && viewItem =~ /.*\"type\":\"SERVICE\".*/",
|
|
"group": "inline"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"scripts": {
|
|
"package": "vsce package",
|
|
"vscode:prepublish": "yarn run compile",
|
|
"compile": "tsc -p ./",
|
|
"watch": "tsc -watch -p ./",
|
|
"postinstall": "node ../../node_modules/vscode/bin/install",
|
|
"test": "yarn run compile && node ../../node_modules/vscode/bin/test"
|
|
},
|
|
"dependencies": {
|
|
"@dayu/docker-api": "^0.0.1",
|
|
"@dayu/faas": "^0.0.1",
|
|
"axios": "^0.19.0",
|
|
"lerna": "^3.14.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/mocha": "^2.2.42",
|
|
"@types/node": "^10.12.21",
|
|
"tslint": "^5.12.1",
|
|
"typescript": "^3.3.1",
|
|
"vscode": "^1.1.36"
|
|
}
|
|
} |