gitcommitfilter/package.json

112 lines
2.9 KiB
JSON

{
"name": "gitcommitfilter",
"displayName": "gitcommitfilter",
"description": "过滤显示当前git分支的commit",
"version": "0.0.2",
"engines": {
"vscode": "^1.97.0"
},
"categories": [
"Other"
],
"extensionKind": [
"ui",
"workspace"
],
"icon": "media/commit.png",
"publisher": "elfcheng",
"extensionDependencies": [
"vscode.git"
],
"activationEvents": [],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "gitcommitfilter.showastree",
"title": "Show as tree"
},
{
"command": "gitcommitfilter.showaslist",
"title": "Show as list"
},
{
"command": "gitcommitfilter.compare",
"title": "比较文件变化"
}
],
"menus": {
"view/title":[
{
"command": "gitcommitfilter.showastree",
"when": "view == gitcommitfilter.commit-list && gitcommitfilter.viewState=='list'",
"group": "navigation",
"icon":"${list-tree}"
},
{
"command": "gitcommitfilter.showaslist",
"when": "view == gitcommitfilter.commit-list && gitcommitfilter.viewState=='tree'",
"group": "navigation",
"icon":"${list-flat}"
}
]
},
"viewsContainers": {
"activitybar": [
{
"id": "gitCommitFilterView",
"title": "Git Commits",
"icon": "media/commit-fill.svg"
}
]
},
"views": {
"gitCommitFilterView": [
{
"type": "webview",
"id": "gitcommitfilter.view",
"name": "MyCustomView",
"when": "true"
},
{
"id": "gitcommitfilter.commit-list",
"name": "Commitlist",
"type": "tree"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "npm run check-types && npm run lint && node esbuild.js",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "node esbuild.js --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"package": "npm run check-types && npm run lint && node esbuild.js --production",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"check-types": "tsc --noEmit",
"lint": "eslint src",
"test": "vscode-test"
},
"devDependencies": {
"@types/vscode": "^1.97.0",
"@types/mocha": "^10.0.10",
"@types/node": "20.x",
"@typescript-eslint/eslint-plugin": "^8.22.0",
"@typescript-eslint/parser": "^8.22.0",
"eslint": "^9.19.0",
"esbuild": "^0.24.2",
"npm-run-all": "^4.1.5",
"typescript": "^5.7.3",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1"
},
"repository": {
"type": "git",
"url": "https://git.pyer.club/kingecg/gitcommitfilter.git"
}
}