mirror of
https://github.com/alibaba/open-code-review.git
synced 2026-11-14 15:29:27 +08:00
134 lines
3.4 KiB
JSON
134 lines
3.4 KiB
JSON
{
|
|
"name": "open-code-review-vscode",
|
|
"displayName": "Open Code Review",
|
|
"description": "%ocr.description%",
|
|
"version": "0.1.2",
|
|
"publisher": "open-code-review",
|
|
"license": "Apache-2.0",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/alibaba/open-code-review.git",
|
|
"directory": "extensions/vscode"
|
|
},
|
|
"engines": {
|
|
"vscode": "^1.74.0"
|
|
},
|
|
"categories": [
|
|
"Other"
|
|
],
|
|
"icon": "resources/icon.png",
|
|
"main": "./out/extension.js",
|
|
"activationEvents": [
|
|
"onStartupFinished"
|
|
],
|
|
"contributes": {
|
|
"viewsContainers": {
|
|
"activitybar": [
|
|
{
|
|
"id": "ocr-container",
|
|
"title": "%ocr.activitybar.title%",
|
|
"icon": "resources/icon.svg"
|
|
}
|
|
]
|
|
},
|
|
"views": {
|
|
"ocr-container": [
|
|
{
|
|
"id": "ocr.sidebar",
|
|
"type": "webview",
|
|
"name": "%ocr.sidebar.name%"
|
|
}
|
|
]
|
|
},
|
|
"commands": [
|
|
{
|
|
"command": "ocr.review.start",
|
|
"title": "%ocr.review.start%"
|
|
},
|
|
{
|
|
"command": "ocr.review.cancel",
|
|
"title": "%ocr.review.cancel%"
|
|
},
|
|
{
|
|
"command": "ocr.config.open",
|
|
"title": "%ocr.config.open%"
|
|
},
|
|
{
|
|
"command": "ocr.comment.apply",
|
|
"title": "%ocr.comment.apply%"
|
|
},
|
|
{
|
|
"command": "ocr.comment.discard",
|
|
"title": "%ocr.comment.discard%"
|
|
},
|
|
{
|
|
"command": "ocr.comment.falsePositive",
|
|
"title": "%ocr.comment.falsePositive%"
|
|
}
|
|
],
|
|
"menus": {
|
|
"comments/commentThread/title": [
|
|
{
|
|
"command": "ocr.comment.apply",
|
|
"group": "navigation@1",
|
|
"when": "commentController == ocr-review && commentThread == pending"
|
|
},
|
|
{
|
|
"command": "ocr.comment.discard",
|
|
"group": "navigation@2",
|
|
"when": "commentController == ocr-review && commentThread =~ /^pending/"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"scripts": {
|
|
"compile": "webpack --mode development",
|
|
"watch": "webpack --mode development --watch",
|
|
"build": "npm run build:extension && npm run build:webview",
|
|
"test": "jest",
|
|
"lint": "eslint src --ext ts,tsx",
|
|
"package": "vsce package --no-yarn",
|
|
"vscode:prepublish": "npm run build",
|
|
"build:extension": "webpack --mode production",
|
|
"build:webview": "cd ../frontend && npm install && OCR_TARGET=vscode npm run build"
|
|
},
|
|
"devDependencies": {
|
|
"@types/jest": "^30.0.0",
|
|
"@types/node": "^18.0.0",
|
|
"@types/vscode": "^1.74.0",
|
|
"@typescript-eslint/eslint-plugin": "^6.18.0",
|
|
"@typescript-eslint/parser": "^6.18.0",
|
|
"@vscode/vsce": "^3.0.0",
|
|
"css-loader": "^7.1.5",
|
|
"eslint": "^8.56.0",
|
|
"jest": "^30.5.0",
|
|
"style-loader": "^4.0.0",
|
|
"ts-jest": "^29.4.12",
|
|
"ts-loader": "^9.5.0",
|
|
"typescript": "^5.3.0",
|
|
"webpack": "^5.110.1",
|
|
"webpack-cli": "^7.2.3"
|
|
},
|
|
"resolutions": {
|
|
"undici": "^8.10.2",
|
|
"form-data": ">=4.0.6",
|
|
"js-yaml": "^5.4.1",
|
|
"minimatch": "^10.2.6",
|
|
"@typescript-eslint/typescript-estree/minimatch": "^10.2.6",
|
|
"brace-expansion": "^5.0.12",
|
|
"fast-uri": "^4.1.5",
|
|
"handlebars": "^4.7.10",
|
|
"markdown-it": "^14.3.1",
|
|
"nanoid": "^3.3.18",
|
|
"postcss-selector-parser": "^7.1.6",
|
|
"qs": "^6.16.0",
|
|
"source-map-js": "^1.2.2",
|
|
"postcss": ">=8.5.23",
|
|
"linkify-it": ">=5.0.2 <6",
|
|
"browserslist": ">=4.28.7 <5"
|
|
},
|
|
"dependencies": {
|
|
"preact": "^10.29.8"
|
|
}
|
|
}
|