|
| 1 | +{ |
| 2 | + "name": "tutorialkit-vscode", |
| 3 | + "displayName": "TutorialKit", |
| 4 | + "description": "TutorialKit support in VS Code", |
| 5 | + "icon": "resources/tutorialkit-icon.png", |
| 6 | + "publisher": "StackBlitz", |
| 7 | + "version": "0.0.11", |
| 8 | + "engines": { |
| 9 | + "vscode": "^1.80.0" |
| 10 | + }, |
| 11 | + "repository": { |
| 12 | + "url": "https://github.com/stackblitz/tutorialkit" |
| 13 | + }, |
| 14 | + "categories": [ |
| 15 | + "Other" |
| 16 | + ], |
| 17 | + "activationEvents": [ |
| 18 | + "onStartupFinished" |
| 19 | + ], |
| 20 | + "main": "./dist/extension.js", |
| 21 | + "contributes": { |
| 22 | + "commands": [ |
| 23 | + { |
| 24 | + "command": "tutorialkit.select-tutorial", |
| 25 | + "title": "Select Tutorial", |
| 26 | + "icon": "$(book)" |
| 27 | + }, |
| 28 | + { |
| 29 | + "command": "tutorialkit.add-lesson", |
| 30 | + "title": "Add Lesson" |
| 31 | + }, |
| 32 | + { |
| 33 | + "command": "tutorialkit.add-chapter", |
| 34 | + "title": "Add Chapter" |
| 35 | + }, |
| 36 | + { |
| 37 | + "command": "tutorialkit.add-part", |
| 38 | + "title": "Add Part" |
| 39 | + }, |
| 40 | + { |
| 41 | + "command": "tutorialkit.refresh", |
| 42 | + "title": "Refresh Lessons", |
| 43 | + "icon": "$(refresh)" |
| 44 | + } |
| 45 | + ], |
| 46 | + "viewsWelcome": [ |
| 47 | + { |
| 48 | + "view": "tutorialkit-lessons-tree", |
| 49 | + "id": "tutorialkit-splashscreen", |
| 50 | + "contents": "", |
| 51 | + "title": "Tutorial", |
| 52 | + "description": "TutorialKit", |
| 53 | + "when": "!tutorialkit:initialized" |
| 54 | + }, |
| 55 | + { |
| 56 | + "view": "tutorialkit-lessons-tree", |
| 57 | + "id": "tutorialkit-splashscreen", |
| 58 | + "contents": "Looks like there is no TutorialKit project in this workspace.\n[Rescan workspace](command:tutorialkit.initialize?true)", |
| 59 | + "title": "Tutorial", |
| 60 | + "description": "TutorialKit", |
| 61 | + "when": "tutorialkit:initialized && !tutorialkit:multiple-tutorials" |
| 62 | + }, |
| 63 | + { |
| 64 | + "view": "tutorialkit-lessons-tree", |
| 65 | + "id": "tutorialkit-multiple-tutorials", |
| 66 | + "contents": "Welcome to TutorialKit!\nLooks like there is more than one tutorial in your workspace.\n[Select a tutorial](command:tutorialkit.select-tutorial)", |
| 67 | + "title": "Tutorial", |
| 68 | + "description": "TutorialKit", |
| 69 | + "when": "tutorialkit:multiple-tutorials" |
| 70 | + } |
| 71 | + ], |
| 72 | + "views": { |
| 73 | + "explorer": [ |
| 74 | + { |
| 75 | + "id": "tutorialkit-lessons-tree", |
| 76 | + "name": "Tutorial", |
| 77 | + "visibility": "visible", |
| 78 | + "initialSize": 3 |
| 79 | + } |
| 80 | + ] |
| 81 | + }, |
| 82 | + "menus": { |
| 83 | + "view/title": [ |
| 84 | + { |
| 85 | + "command": "tutorialkit.select-tutorial", |
| 86 | + "when": "view == tutorialkit-lessons-tree && tutorialkit:multiple-tutorials", |
| 87 | + "group": "navigation" |
| 88 | + }, |
| 89 | + { |
| 90 | + "command": "tutorialkit.refresh", |
| 91 | + "when": "view == tutorialkit-lessons-tree && tutorialkit:tree", |
| 92 | + "group": "navigation" |
| 93 | + } |
| 94 | + ], |
| 95 | + "view/item/context": [ |
| 96 | + { |
| 97 | + "command": "tutorialkit.add-lesson", |
| 98 | + "when": "view == tutorialkit-lessons-tree && viewItem == chapter" |
| 99 | + }, |
| 100 | + { |
| 101 | + "command": "tutorialkit.add-chapter", |
| 102 | + "when": "view == tutorialkit-lessons-tree && viewItem == part" |
| 103 | + } |
| 104 | + ] |
| 105 | + } |
| 106 | + }, |
| 107 | + "scripts": { |
| 108 | + "__esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=dist/extension.js --external:vscode --format=cjs --platform=node", |
| 109 | + "__dev": "pnpm run esbuild-base -- --sourcemap --watch", |
| 110 | + "__vscode:prepublish": "pnpm run esbuild-base -- --minify", |
| 111 | + "__build": "vsce package", |
| 112 | + "compile": "pnpm run check-types && node build.mjs", |
| 113 | + "check-types": "tsc --noEmit", |
| 114 | + "dev": "node build.mjs --watch", |
| 115 | + "vscode:prepublish": "pnpm run package", |
| 116 | + "package": "pnpm run check-types && node build.mjs --production" |
| 117 | + }, |
| 118 | + "dependencies": { |
| 119 | + "case-anything": "^3.1.0", |
| 120 | + "gray-matter": "^4.0.3" |
| 121 | + }, |
| 122 | + "devDependencies": { |
| 123 | + "@types/mocha": "^10.0.6", |
| 124 | + "@types/node": "20.14.11", |
| 125 | + "@types/vscode": "^1.80.0", |
| 126 | + "@vscode/test-cli": "^0.0.9", |
| 127 | + "@vscode/test-electron": "^2.4.0", |
| 128 | + "esbuild": "^0.21.5", |
| 129 | + "execa": "^9.2.0", |
| 130 | + "typescript": "^5.4.5" |
| 131 | + } |
| 132 | +} |
0 commit comments