-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
141 lines (141 loc) · 3.79 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
{
"name": "script-box",
"displayName": "Script Box",
"publisher": "ninglo",
"description": "This extension provides a script box in Visual Studio Code, allowing users to run scripts directly in the editor.",
"version": "0.0.3",
"repository": {
"type": "git",
"url": "https://github.com/ninglo/script-box.git"
},
"icon": "./logo.png",
"engines": {
"vscode": "^1.91.0"
},
"license": "MIT",
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "script-box.refresh",
"title": "Refresh Scripts",
"icon": "$(refresh)",
"enablement": "false"
},
{
"command": "script-box.new-script",
"title": "New Script...",
"icon": "$(new-file)"
},
{
"command": "script-box.new-folder",
"title": "New Folder...",
"icon": "$(new-folder)",
"enablement": "false"
},
{
"command": "script-box.deleteScript",
"title": "Delete",
"icon": "$(trash)",
"enablement": "view == script-box"
},
{
"command": "script-box.renameScript",
"title": "Rename...",
"enablement": "view == script-box"
},
{
"command": "script-box.runScript",
"title": "Run",
"icon": "$(play)",
"enablement": "resourceExtname == .js || view == script-box"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "script-box-container",
"title": "Script Box Container",
"icon": "$(archive)"
}
]
},
"views": {
"script-box-container": [
{
"id": "script-box",
"name": "Script Box",
"type": "tree",
"icon": "./logo.svg"
}
]
},
"menus": {
"editor/title": [
{
"command": "script-box.runScript",
"group": "navigation",
"when": "resourceExtname == .js"
}
],
"view/title": [
{
"command": "script-box.new-script",
"when": "view == script-box",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "script-box.runScript",
"when": "view == script-box && viewItem == file",
"group": "inline"
},
{
"command": "script-box.renameScript",
"when": "view == script-box && viewItem == file",
"group": "1_edit"
},
{
"command": "script-box.deleteScript",
"when": "view == script-box && viewItem == file",
"group": "1_edit"
}
]
}
},
"scripts": {
"vscode:prepublish": "pnpm run check-types && pnpm run lint && node esbuild.js --production",
"compile": "pnpm run check-types && pnpm run lint && node esbuild.js",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "node esbuild.js --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"package": "pnpm vsce package --no-dependencies",
"publish": "pnpm vsce publish --no-dependencies",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "pnpm run compile-tests && pnpm run compile && pnpm run lint",
"check-types": "tsc --noEmit",
"lint": "eslint src --ext ts",
"test": "vscode-test"
},
"devDependencies": {
"@types/vscode": "^1.91.0",
"@types/mocha": "^10.0.7",
"@types/node": "20.x",
"@typescript-eslint/eslint-plugin": "^7.14.1",
"@typescript-eslint/parser": "^7.11.0",
"eslint": "^8.57.0",
"esbuild": "^0.21.5",
"npm-run-all": "^4.1.5",
"typescript": "^5.4.5",
"@vscode/test-cli": "^0.0.9",
"@vscode/test-electron": "^2.4.0"
}
}