codetour/package.json

671 строка
18 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.52",
"author": {
"name": "Microsoft Corporation"
},
"enableProposedApi": true,
"repository": {
"type": "git",
"url": "https://github.com/microsoft/codetour"
},
"bugs": {
"url": "https://github.com/microsoft/codetour/issues"
},
"homepage": "https://github.com/microsoft/codetour#readme",
"license": "MIT",
"icon": "images/icon.png",
"engines": {
"vscode": "^1.48.0"
},
"categories": [
"Other"
],
"keywords": [
"Collaboration",
"Sharing"
],
"extensionKind": [
"web",
"workspace"
],
"activationEvents": [
"*",
"onNotebookEditor:codetour"
],
"main": "./dist/extension-node.js",
"browser": "./dist/extension-web.js",
"contributes": {
"configuration": {
"type": "object",
"title": "CodeTour",
"properties": {
"codetour.promptForWorkspaceTours": {
"type": "boolean",
"default": true,
"description": "Specifies whether or not to display a notification when opening a workspace with tours for the first time."
},
"codetour.recordMode": {
"type": "string",
"enum": [
"lineNumber",
"pattern"
],
"default": "lineNumber",
"description": "Specifies how the tour recorder will behave when capturing a new step."
},
"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.addSelectionStep",
"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.changeTourStepLine",
"title": "Change Line"
},
{
"command": "codetour.changeTourStepTitle",
"title": "Change Title"
},
{
"command": "codetour.changeTourTitle",
"title": "Change Title"
},
{
"command": "codetour.resetProgress",
"title": "Reset Progress",
"category": "CodeTour"
},
{
"command": "codetour.resetTourProgress",
"title": "Reset Progress"
},
{
"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": "$(primitive-square)"
},
{
"command": "codetour.exportTour",
"title": "Export Tour..."
},
{
"command": "codetour.hideMarkers",
"title": "Hide Tour Markers",
"category": "CodeTour",
"icon": "$(eye-closed)"
},
{
"command": "codetour.makeTourPrimary",
"title": "Make Primary"
},
{
"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.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": "$(play)"
},
{
"command": "codetour.unmakeTourPrimary",
"title": "Unmake Primary"
},
{
"command": "codetour.viewNotebook",
"title": "View Notebook",
"category": "CodeTour"
}
],
"menus": {
"commandPalette": [
{
"command": "codetour.addContentStep",
"when": "codetour:inTour && codetour:recording && codetour:canEditTour"
},
{
"command": "codetour.endTour",
"when": "codetour:inTour"
},
{
"command": "codetour.recordTour",
"when": "workspaceFolderCount != 0"
},
{
"command": "codetour.resetProgress",
"when": "codetour:hasProgress"
},
{
"command": "codetour.resumeTour",
"when": "codetour:inTour"
},
{
"command": "codetour.startTour",
"when": "codetour:hasTours"
},
{
"command": "codetour.addDirectoryStep",
"when": "false"
},
{
"command": "codetour.addSelectionStep",
"when": "false"
},
{
"command": "codetour.addTourStep",
"when": "false"
},
{
"command": "codetour.changeTourRef",
"when": "false"
},
{
"command": "codetour.changeTourStepLine",
"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.editTour",
"when": "false"
},
{
"command": "codetour.editTourAtStep",
"when": "false"
},
{
"command": "codetour.exportTour",
"when": "false"
},
{
"command": "codetour.hideMarkers",
"when": "false"
},
{
"command": "codetour.makeTourPrimary",
"when": "false"
},
{
"command": "codetour.nextTourStep",
"when": "false"
},
{
"command": "codetour.previewTour",
"when": "false"
},
{
"command": "codetour.previousTourStep",
"when": "false"
},
{
"command": "codetour.resetTourProgress",
"when": "false"
},
{
"command": "codetour.saveTourStep",
"when": "false"
},
{
"command": "codetour.showMarkers",
"when": "false"
},
{
"command": "codetour.unmakeTourPrimary",
"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:isEditing && codetour:canEditTour"
},
{
"command": "codetour.previewTour",
"group": "inline@4",
"when": "commentController == codetour && codetour:isEditing && !commentThreadIsEmpty"
},
{
"command": "codetour.viewNotebook",
"when": "viewItem =~ /^codetour.tour/",
"group": "basic@2"
}
],
"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.changeTourStepLine",
"group": "mutate@1",
"when": "commentController == codetour && codetour:canEditTour"
},
{
"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(.primary)?$/",
"group": "inline@1"
},
{
"command": "codetour.resumeTour",
"when": "viewItem =~ /^codetour.tour(.primary)?(.recording)?.active$/",
"group": "active@1"
},
{
"command": "codetour.endTour",
"when": "viewItem =~ /^codetour.tour(.primary)?(.recording)?.active$/",
"group": "active@2"
},
{
"command": "codetour.startTour",
"when": "viewItem =~ /^codetour.tour(.primary)?$/",
"group": "basic@1"
},
{
"command": "codetour.addContentStep",
"when": "viewItem =~ /^codetour.tour(.primary)?.recording/",
"group": "basic@1"
},
{
"command": "codetour.resetTourProgress",
"when": "false",
"group": "basic@2"
},
{
"command": "codetour.changeTourTitle",
"when": "viewItem =~ /^codetour.tour(.primary)?(.recording)?(.active)?$/",
"group": "change@1"
},
{
"command": "codetour.changeTourDescription",
"when": "viewItem =~ /^codetour.tour(.primary)?(.recording)?(.active)?$/",
"group": "change@2"
},
{
"command": "codetour.changeTourRef",
"when": "viewItem =~ /^codetour.tour(.primary)?(.recording)?(.active)?$/ && gitOpenRepositoryCount != 0",
"group": "change@3"
},
{
"command": "codetour.makeTourPrimary",
"when": "viewItem =~ /^codetour.tour(.recording)?(.active)?$/",
"group": "edit@1"
},
{
"command": "codetour.unmakeTourPrimary",
"when": "viewItem =~ /^codetour.tour.primary(.recording)?(.active)?$/",
"group": "edit@2"
},
{
"command": "codetour.editTour",
"when": "viewItem =~ /^codetour.tour(.primary)?(.active)?$/",
"group": "edit@2"
},
{
"command": "codetour.previewTour",
"when": "viewItem =~ /^codetour.tour(.primary)?.recording/",
"group": "edit@2"
},
{
"command": "codetour.deleteTour",
"when": "viewItem =~ /^codetour.tour(.primary)?(.recording)?(.active)?$/",
"group": "edit@3"
},
{
"command": "codetour.exportTour",
"when": "viewItem =~ /^codetour.tour(.primary)?(.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.addContentStep",
"when": "viewItem =~ /^codetour.tourStep/ && codetour:recording",
"group": "change@2"
},
{
"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"
}
],
"editor/context": [
{
"command": "codetour.addSelectionStep",
"when": "codetour:recording && editorHasSelection",
"group": "codetour@1"
}
]
},
"views": {
"explorer": [
{
"id": "codetour.tours",
"name": "CodeTour",
"when": "workspaceFolderCount != 0 || codetour:inTour"
}
]
},
"viewsWelcome": [
{
"view": "codetour.tours",
"contents": "In order to create a guided walkthrough, you can begin recording a tour for the currently opened workspace ([Learn More](https://github.com/vsls-contrib/codetour#recording-tours)).\n\n[Record Tour](command:codetour.recordTour)\n\nYou can also open tours that were shared with you by others ([Learn More](https://github.com/vsls-contrib/codetour#opening-tours)).\n\n[Open Tour File](command:codetour.openTourFile)\n\n[Open Tour URL](command:codetour.openTourUrl)"
}
],
"jsonValidation": [
{
"fileMatch": "*.tour",
"url": "./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"
},
{
"command": "codetour.endTour",
"when": "codetour:inTour && !textInputFocus && !terminalFocus",
"key": "ctrl+down ctrl+down",
"mac": "cmd+down cmd+down"
},
{
"command": "codetour.startTour",
"when": "!textInputFocus && !terminalFocus",
"key": "ctrl+up ctrl+up",
"mac": "cmd+up cmd+up"
}
],
"languages": [
{
"id": "json",
"extensions": [
".tour"
]
}
],
"notebookProvider": [
{
"viewType": "codetour",
"displayName": "CodeTour Notebook",
"selector": [
{
"filenamePattern": "*.tour"
}
]
}
]
},
"dependencies": {
"@types/jexl": "^2.2.0",
"axios": "^0.21.1",
"jexl": "^2.3.0",
"mobx": "^5.14.2",
"throttle-debounce": "^3.0.1",
"vsls": "^1.0.2532"
},
"devDependencies": {
"@types/axios": "^0.14.0",
"@types/node": "^8.10.66",
"@types/throttle-debounce": "^2.1.0",
"@types/vscode": "~1.48.0",
"ts-loader": "^7.0.4",
"tslint": "^5.8.0",
"typescript": "^3.1.4",
"vsce": "^1.75.0",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.11",
"webpack-merge": "^4.2.2"
},
"scripts": {
"build": "webpack --mode production",
"vscode:prepublish": "npm run build",
"watch": "webpack --mode development --watch --info-verbosity verbose",
"package": "vsce package"
},
"prettier": {
"arrowParens": "avoid",
"trailingComma": "none"
}
}