codetour/package.json

533 строки
14 KiB
JSON

{
"name": "codetour",
"displayName": "CodeTour",
"description": "VS Code extension that allows you to record and playback guided tours of codebases, directly within the editor",
"publisher": "vsls-contrib",
"version": "0.0.25",
"repository": {
"type": "git",
"url": "https://github.com/vsls-contrib/codetour"
},
"bugs": {
"url": "https://github.com/vsls-contrib/codetour/issues"
},
"homepage": "https://github.com/vsls-contrib/codetour#readme",
"license": "ISC",
"icon": "images/icon.png",
"engines": {
"vscode": "^1.40.0"
},
"categories": [
"Other"
],
"keywords": [
"Collaboration",
"Sharing"
],
"extensionKind": [
"workspace"
],
"activationEvents": [
"*"
],
"main": "./out/extension.js",
"contributes": {
"configuration": {
"type": "object",
"title": "CodeTour",
"properties": {
"codetour.showMarkers": {
"type": "boolean",
"default": true,
"description": "Specifies whether or not to show tour markers in the editor gutter."
}
}
},
"commands": [
{
"command": "codetour.addContentStep",
"title": "Add Tour Step",
"category": "CodeTour"
},
{
"command": "codetour.addDirectoryStep",
"title": "Add CodeTour Step"
},
{
"command": "codetour.addTourStep",
"title": "Add Step to Tour",
"enablement": "!commentIsEmpty"
},
{
"command": "codetour.changeTourDescription",
"title": "Change Description"
},
{
"command": "codetour.changeTourRef",
"title": "Change Git Ref"
},
{
"command": "codetour.changeTourStepTitle",
"title": "Change Title"
},
{
"command": "codetour.changeTourTitle",
"title": "Change Title"
},
{
"command": "codetour.deleteTourStep",
"title": "Delete Step"
},
{
"command": "codetour.deleteTour",
"title": "Delete Tour"
},
{
"command": "codetour.editTourAtStep",
"title": "Edit Step"
},
{
"command": "codetour.editTour",
"title": "Edit Tour",
"category": "CodeTour",
"icon": "$(edit)"
},
{
"command": "codetour.endTour",
"title": "End Tour",
"category": "CodeTour",
"icon": "$(debug-stop)"
},
{
"command": "codetour.exportTour",
"title": "Export Tour..."
},
{
"command": "codetour.hideMarkers",
"title": "Hide Tour Markers",
"category": "CodeTour",
"icon": "$(eye-closed)"
},
{
"command": "codetour.moveTourStepForward",
"title": "Move Down",
"icon": "$(arrow-down)"
},
{
"command": "codetour.moveTourStepBack",
"title": "Move Up",
"icon": "$(arrow-up)"
},
{
"command": "codetour.nextTourStep",
"title": "Next",
"icon": "$(arrow-right)"
},
{
"command": "codetour.openTourFile",
"title": "Open Tour File...",
"icon": "$(folder-opened)",
"category": "CodeTour"
},
{
"command": "codetour.openTourUrl",
"title": "Open Tour URL...",
"category": "CodeTour"
},
{
"command": "codetour.previewTour",
"title": "Preview Tour",
"icon": "$(preview)"
},
{
"command": "codetour.previousTourStep",
"title": "Previous",
"icon": "$(arrow-left)"
},
{
"command": "codetour.recordTour",
"title": "Record Tour",
"category": "CodeTour",
"icon": "$(add)"
},
{
"command": "codetour.refreshTours",
"title": "Refresh Tours",
"category": "CodeTour"
},
{
"command": "codetour.resumeTour",
"title": "Resume Tour",
"category": "CodeTour"
},
{
"command": "codetour.saveTourStep",
"title": "Save Step",
"enablement": "!commentIsEmpty"
},
{
"command": "codetour.showMarkers",
"title": "Show Tour Markers",
"category": "CodeTour",
"icon": "$(eye)"
},
{
"command": "codetour.startTour",
"title": "Start Tour",
"category": "CodeTour",
"icon": "$(debug-start)"
},
{
"command": "codetour.viewNotebook",
"title": "View Notebook",
"category": "CodeTour"
}
],
"menus": {
"commandPalette": [
{
"command": "codetour.addContentStep",
"when": "codetour:inTour && codetour:recording && codetour:canEditTour"
},
{
"command": "codetour.editTour",
"when": "codetour:inTour && !codetour:recording && codetour:canEditTour"
},
{
"command": "codetour.endTour",
"when": "codetour:inTour"
},
{
"command": "codetour.hideMarkers",
"when": "codetour:hasTours && codetour:showingMarkers"
},
{
"command": "codetour.previewTour",
"when": "codetour:inTour && codetour:recording"
},
{
"command": "codetour.refreshTours",
"when": "codetour:hasTours"
},
{
"command": "codetour.resumeTour",
"when": "codetour:inTour"
},
{
"command": "codetour.showMarkers",
"when": "codetour:hasTours && !codetour:showingMarkers"
},
{
"command": "codetour.startTour",
"when": "codetour:hasTours"
},
{
"command": "codetour.addDirectoryStep",
"when": "false"
},
{
"command": "codetour.addTourStep",
"when": "false"
},
{
"command": "codetour.changeTourRef",
"when": "false"
},
{
"command": "codetour.changeTourStepTitle",
"when": "false"
},
{
"command": "codetour.changeTourTitle",
"when": "false"
},
{
"command": "codetour.changeTourDescription",
"when": "false"
},
{
"command": "codetour.deleteTour",
"when": "false"
},
{
"command": "codetour.deleteTourStep",
"when": "false"
},
{
"command": "codetour.editTourAtStep",
"when": "false"
},
{
"command": "codetour.exportTour",
"when": "false"
},
{
"command": "codetour.nextTourStep",
"when": "false"
},
{
"command": "codetour.previewTour",
"when": "false"
},
{
"command": "codetour.previousTourStep",
"when": "false"
},
{
"command": "codetour.saveTourStep",
"when": "false"
},
{
"command": "codetour.viewNotebook",
"when": "false"
}
],
"comments/commentThread/title": [
{
"command": "codetour.previousTourStep",
"group": "inline@1",
"when": "commentController == codetour && commentThread =~ /hasPrevious/"
},
{
"command": "codetour.nextTourStep",
"group": "inline@2",
"when": "commentController == codetour && commentThread =~ /hasNext/"
},
{
"command": "codetour.endTour",
"group": "inline@3",
"when": "commentController == codetour"
},
{
"command": "codetour.editTour",
"group": "inline@4",
"when": "commentController == codetour && !codetour:recording && codetour:canEditTour"
},
{
"command": "codetour.previewTour",
"group": "inline@4",
"when": "commentController == codetour && codetour:recording && !commentThreadIsEmpty"
}
],
"comments/commentThread/context": [
{
"command": "codetour.addTourStep",
"group": "inline",
"when": "commentController == codetour && commentThreadIsEmpty"
}
],
"comments/comment/title": [
{
"command": "codetour.moveTourStepBack",
"group": "move@1",
"when": "commentController == codetour && codetour:canEditTour && commentThread =~ /hasPrevious/"
},
{
"command": "codetour.moveTourStepForward",
"group": "move@2",
"when": "commentController == codetour && && codetour:canEditTour commentThread =~ /hasNext/"
},
{
"command": "codetour.deleteTourStep",
"group": "mutate@2",
"when": "commentController == codetour && codetour:canEditTour"
}
],
"comments/comment/context": [
{
"command": "codetour.saveTourStep",
"group": "inline@2",
"when": "commentController == codetour && codetour:recording"
}
],
"view/title": [
{
"command": "codetour.hideMarkers",
"when": "view == codetour.tours && codetour:showingMarkers",
"group": "navigation@1"
},
{
"command": "codetour.showMarkers",
"when": "view == codetour.tours && !codetour:showingMarkers",
"group": "navigation@1"
},
{
"command": "codetour.openTourFile",
"when": "view == codetour.tours",
"group": "navigation@2"
},
{
"command": "codetour.recordTour",
"when": "view == codetour.tours",
"group": "navigation@3"
}
],
"view/item/context": [
{
"command": "codetour.endTour",
"when": "viewItem =~ /codetour.tour(.recording)?.active/",
"group": "inline@1"
},
{
"command": "codetour.startTour",
"when": "viewItem == codetour.tour",
"group": "inline@2"
},
{
"command": "codetour.resumeTour",
"when": "viewItem =~ /codetour.tour(.recording)?.active$/",
"group": "active@1"
},
{
"command": "codetour.endTour",
"when": "viewItem =~ /codetour.tour(.recording)?.active$/",
"group": "active@2"
},
{
"command": "codetour.startTour",
"when": "viewItem == codetour.tour",
"group": "basic@1"
},
{
"command": "codetour.changeTourTitle",
"when": "viewItem =~ /^codetour.tour(.recording)?(.active)?$/",
"group": "change@1"
},
{
"command": "codetour.changeTourDescription",
"when": "viewItem =~ /^codetour.tour(.recording)?(.active)?$/",
"group": "change@2"
},
{
"command": "codetour.changeTourRef",
"when": "viewItem =~ /^codetour.tour(.recording)?(.active)?$/ && gitOpenRepositoryCount != 0",
"group": "change@3"
},
{
"command": "codetour.editTour",
"when": "viewItem =~ /^codetour.tour(.active)?$/",
"group": "edit@1"
},
{
"command": "codetour.previewTour",
"when": "viewItem =~ /^codetour.tour(.recording)/",
"group": "edit@1"
},
{
"command": "codetour.deleteTour",
"when": "viewItem =~ /^codetour.tour(.recording)?(.active)?$/",
"group": "edit@2"
},
{
"command": "codetour.exportTour",
"when": "viewItem =~ /^codetour.tour(.active)?$/",
"group": "export@1"
},
{
"command": "codetour.moveTourStepBack",
"when": "viewItem =~ /^codetour.tourStep.hasPrevious/",
"group": "inline@1"
},
{
"command": "codetour.moveTourStepForward",
"when": "viewItem =~ /codetour.tourStep.*(.hasNext)/",
"group": "inline@2"
},
{
"command": "codetour.moveTourStepBack",
"when": "viewItem =~ /^codetour.tourStep.hasPrevious/",
"group": "basic@1"
},
{
"command": "codetour.moveTourStepForward",
"when": "viewItem =~ /codetour.tourStep.*(.hasNext)/",
"group": "basic@2"
},
{
"command": "codetour.changeTourStepTitle",
"when": "viewItem =~ /^codetour.tourStep/",
"group": "change@1"
},
{
"command": "codetour.editTourAtStep",
"when": "viewItem =~ /^codetour.tourStep/ && !codetour:recording",
"group": "manage@1"
},
{
"command": "codetour.deleteTourStep",
"when": "viewItem =~ /^codetour.tourStep/",
"group": "manage@2"
}
],
"explorer/context": [
{
"command": "codetour.addDirectoryStep",
"when": "codetour:recording && explorerResourceIsFolder"
}
]
},
"views": {
"explorer": [
{
"id": "codetour.tours",
"name": "CodeTour",
"when": "codetour:hasTours || codetour:inTour"
}
]
},
"jsonValidation": [
{
"fileMatch": "*.tour",
"url": "https://cdn.jsdelivr.net/gh/vsls-contrib/code-tour/schema.json"
}
],
"keybindings": [
{
"command": "codetour.previousTourStep",
"when": "codetour:inTour && !textInputFocus && !terminalFocus",
"key": "ctrl+left",
"mac": "cmd+left"
},
{
"command": "codetour.nextTourStep",
"when": "codetour:inTour && !textInputFocus && !terminalFocus",
"key": "ctrl+right",
"mac": "cmd+right"
}
],
"languages": [
{
"id": "json",
"extensions": [
".tour"
],
"aliases": [
"CodeTour"
]
}
]
},
"dependencies": {
"axios": "^0.19.2",
"mobx": "^5.14.2"
},
"devDependencies": {
"@types/node": "^8.10.25",
"tslint": "^5.8.0",
"typescript": "^3.1.4",
"vsce": "^1.75.0",
"vscode": "^1.1.25"
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"package": "vsce package"
},
"prettier": {
"arrowParens": "avoid",
"trailingComma": "none"
}
}