-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpackage.json
More file actions
248 lines (248 loc) · 8.56 KB
/
package.json
File metadata and controls
248 lines (248 loc) · 8.56 KB
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
{
"name": "rt-thread-smart",
"publisher": "rt-thread",
"displayName": "RT-Thread Smart Extension",
"description": "Smart Helper Extension for RT-Thread Development",
"version": "0.4.12",
"repository": {
"url": "https://github.com/RT-Thread/vscode-rt-smart"
},
"workspaces": [
"src/vue"
],
"engines": {
"vscode": "^1.96.0"
},
"categories": [
"Other"
],
"activationEvents": [
"workspaceContains:rtconfig.h",
"onView:rt-thread"
],
"main": "./out/extension.js",
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "rt-thread",
"title": "RT-Thread",
"icon": "resources/images/rt-thread.png"
}
]
},
"views": {
"explorer": [
{
"type": "tree",
"id": "groupsId",
"name": "RT-Thread Groups",
"contextualTitle": "RT-Thread Groups",
"when": "isRTThread"
}
],
"rt-thread": [
{
"type": "tree",
"id": "projectFilesId",
"name": "Project Files"
},
{
"type": "tree",
"id": "treeId",
"name": "Commands"
}
]
},
"commands": [
{
"command": "extension.showSetting",
"title": "Show RT-Thread Setting"
},
{
"command": "extension.showCreateProject",
"title": "Create RT-Thread Project"
},
{
"command": "extension.buildProject",
"title": "Build RT-Thread",
"icon": "$(github-action)"
},
{
"command": "extension.executeCommand",
"title": "Execute Cmd under RT-Thread Terminal"
},
{
"command": "extension.clickProject",
"title": "Open Project File"
},
{
"command": "extension.refreshRTThread",
"title": "Refresh",
"icon": "$(sync)"
},
{
"command": "extension.showWorkspaceSettings",
"title": "Show Workspace Settings",
"icon": "$(settings-gear)"
},
{
"command": "extension.switchProject",
"title": "Switch project to this bsp",
"icon": "$(pass-filled)"
},
{
"command": "extension.fastBuildProject",
"title": "Build (-j CPU)...",
"icon": "$(github-action)"
},
{
"command": "extension.configProject",
"title": "Menuconfig",
"icon": "$(gear)"
},
{
"command": "extension.openTerminalProject",
"title": "Open RT-Thread Terminal",
"icon": "$(console)"
},
{
"command": "extension.openProjectInNewWindow",
"title": "Open in New Window",
"icon": "$(empty-window)"
},
{
"command": "extension.handleTreeItemClick",
"title": "Handle Tree Item Click"
}
],
"menus": {
"view/title": [
{
"command": "extension.showWorkspaceSettings",
"when": "(view == projectFilesId || view == groupsId) && isRTThreadWorksapce",
"group": "navigation"
},
{
"command": "extension.refreshRTThread",
"when": "view == projectFilesId || view == groupsId",
"group": "navigation"
},
{
"command": "extension.buildProject",
"when": "(view == projectFilesId || view == groupsId) && isRTThread",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "extension.fastBuildProject",
"when": "view == projectFilesId && viewItem == project_bsp",
"group": "inline"
},
{
"command": "extension.configProject",
"when": "view == projectFilesId && viewItem == project_bsp",
"group": "inline"
},
{
"command": "extension.openTerminalProject",
"when": "view == projectFilesId && viewItem == project_bsp",
"group": "inline"
},
{
"command": "extension.openProjectInNewWindow",
"when": "view == projectFilesId && viewItem == project_bsp",
"group": "inline"
}
]
},
"configuration": {
"type": "object",
"title": "RT-Thread Smart",
"properties": {
"smart.menuCommands": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "自定义构建菜单命令列表,使用 Ctrl+Shift+M 快捷键打开菜单。",
"markdownDescription": "自定义构建菜单命令列表,使用 `Ctrl+Shift+M` 快捷键打开菜单。\n\n**示例:**\n```json\n[\n \"scons -c\",\n \"scons --dist\",\n \"scons --target=mdk5\"\n]\n```",
"scope": "resource",
"order": 0
},
"smart.parallelBuidNumber": {
"type": "number",
"default": 1,
"minimum": 1,
"description": "并行编译使用的 CPU 核心数(默认为 1)。设置大于 1 的值可以加快编译速度。",
"markdownDescription": "并行编译使用的 CPU 核心数(默认为 1)。\n\n设置大于 1 的值可以加快编译速度,例如:\n- `1`: 单核编译\n- `4`: 使用 4 个核心并行编译\n- `8`: 使用 8 个核心并行编译",
"scope": "resource",
"order": 1
}
}
},
"keybindings": [
{
"command": "extension.buildProject",
"key": "ctrl+shift+b"
},
{
"command": "extension.openMenu",
"key": "ctrl+shift+m"
}
]
},
"scripts": {
"package:vs": "vsce package --no-dependencies",
"vscode:prepublish": "npm run compile",
"build:vue": "npm run build --workspace=smart-vue",
"compile": "npm run build:vue && tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src",
"test": "vscode-test"
},
"dependencies": {
"element-plus": "^2.4.2",
"highlight.js": "^11.10.0",
"markdown-it": "^13.0.2",
"markdown-it-deflist": "^2.1.0",
"markdown-it-emoji": "^3.0.0",
"markdown-it-footnote": "^4.0.0",
"markdown-it-github-alerts": "^0.1.2",
"markdown-it-sub": "^1.0.0",
"markdown-it-sup": "^1.0.0",
"markdown-it-task-lists": "^2.1.1",
"vue": "^3.3.8",
"vue-router": "^4.5.0"
},
"extensionDependencies": [
"ms-python.python"
],
"devDependencies": {
"@types/jest": "^29.5.12",
"@types/markdown-it": "^14.0.1",
"@types/mocha": "^10.0.7",
"@types/node": "^20.19.11",
"@types/vscode": "^1.96.0",
"@typescript-eslint/eslint-plugin": "^8.3.0",
"@typescript-eslint/parser": "^8.3.0",
"@vitejs/plugin-vue": "^5.2.1",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1",
"eslint": "^9.9.1",
"jest": "^29.7.0",
"less": "^4.2.2",
"svgo": "^4.0.0",
"terser": "^5.43.1",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
"typescript": "^5.8.3",
"unplugin-auto-import": "^19.3.0",
"unplugin-vue-components": "^28.8.0",
"vite": "^6.0.11",
"vue-tsc": "^2.2.0"
}
}