-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
104 lines (104 loc) · 2.63 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
"name": "code-explainer",
"displayName": "Code Explainer",
"description": "Explains every bit of code inside your editor",
"version": "1.0.2",
"repository": {
"type": "git",
"url": "https://github.com/Sadeedpv/codeExplainer"
},
"license": "MIT",
"publisher": "Sadeedpv",
"engines": {
"vscode": "^1.81.0"
},
"categories": [
"Other"
],
"main": "./extension.js",
"icon": "assets/code-explainer-logo-ext.png",
"activationEvents": [
"onCommand:code-explainer.hello-world",
"onCommand:code-explainer.explain",
"onLanguage",
"onView:code-explainer"
],
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "code-explainer",
"title": "Code Explainer",
"icon": "assets/code-explainer-logo.svg"
}
]
},
"views": {
"code-explainer": [
{
"id": "code-explainer",
"name": "Code Explainer",
"type": "webview",
"icon": "assets/code-explainer-logo.svg",
"contextualTitle": "CodeExplainer"
}
]
},
"commands": [
{
"command": "code-explainer.hello-world",
"category": "CodeExplainer",
"title": "Hello World!"
},
{
"command": "code-explainer.explain",
"category": "CodeExplainer",
"title": "Explain"
}
],
"configuration": [
{
"type": "object",
"title": "code-explainer",
"properties": {
"code-explainer.apiKey": {
"type": "string",
"default": "",
"description": "OPENAI API Key"
},
"code-explainer.hover":{
"type":"boolean",
"default":false,
"description":"Show Explanation on Hover (Beta)"
}
}
}
]
},
"scripts": {
"lint": "eslint .",
"pretest": "npm run lint",
"test": "node ./test/runTest.js",
"vscode:prepublish": "npm run esbuild-base -- --minify",
"esbuild-base": "esbuild ./extension.js --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run esbuild-base -- --sourcemap",
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch",
"test-compile": "tsc -p ./"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.1",
"@types/node": "20.2.5",
"@types/vscode": "^1.81.0",
"@vscode/test-electron": "^2.3.2",
"esbuild": "^0.19.2",
"eslint": "^8.41.0",
"glob": "^8.1.0",
"mocha": "^10.2.0",
"typescript": "^5.1.3"
},
"dependencies": {
"markdown-it": "^13.0.1",
"openai": "^3.3.0"
}
}