forked from moonrepo/dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
274 lines (274 loc) · 8.12 KB
/
package.json
File metadata and controls
274 lines (274 loc) · 8.12 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
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
{
"private": true,
"version": "0.6.1",
"name": "moon-console",
"publisher": "moonrepo",
"displayName": "moon console",
"description": "Control panel and integrated console for moon.",
"icon": "assets/moon-banner.png",
"galleryBanner": {
"color": "#00111e",
"theme": "dark"
},
"markdown": "github",
"keywords": [
"moon",
"moonrepo",
"build",
"system",
"console",
"projects",
"tasks"
],
"engines": {
"vscode": "^1.66.0"
},
"categories": [
"Testing",
"Other"
],
"sponsor": {
"url": "https://github.com/moonrepo/dev"
},
"qna": "https://github.com/moonrepo/dev/discussions",
"homepage": "https://github.com/moonrepo/dev/tree/master/packages/vscode-extension",
"repository": {
"type": "git",
"url": "https://github.com/moonrepo/moon.git",
"directory": "packages/vscode-extension"
},
"activationEvents": [
"onCommand:moon.openSettings",
"onCommand:moon.runTargetByInput",
"onView:moonProjects",
"onView:moonProjectsExternal",
"onView:moonLastRun",
"workspaceContains:moon.yml"
],
"main": "./lib/extension.js",
"contributes": {
"configuration": {
"id": "moon",
"type": "object",
"title": "moon",
"properties": {
"moon.binPath": {
"type": "string",
"default": "node_modules/@moonrepo/cli/moon",
"markdownDescription": "Path to the moon binary, relative from the `moon.workspaceRoot` setting."
},
"moon.workspaceRoot": {
"type": "string",
"default": ".",
"markdownDescription": "Relative path from the editor root to moon's [workspace root](https://moonrepo.dev/docs/concepts/workspace)."
}
}
},
"commands": [
{
"command": "moon.openSettings",
"title": "moon: Open settings"
},
{
"command": "moon.refreshProjects",
"title": "moon: Refresh projects",
"icon": "$(refresh)"
},
{
"command": "moon.checkProject",
"title": "moon: Run all buildable and testable targets",
"icon": "$(run-all)"
},
{
"command": "moon.runTarget",
"title": "moon: Run the target",
"icon": "$(run)"
},
{
"command": "moon.runTargetByInput",
"title": "moon: Run one or many targets"
},
{
"command": "moon.viewProject",
"title": "moon: View selected project",
"icon": "$(open-preview)"
},
{
"command": "moon.viewDepGraph",
"title": "moon: View dependency graph",
"icon": "$(gather)"
},
{
"command": "moon.viewProjectGraph",
"title": "moon: View project graph",
"icon": "$(type-hierarchy-sub)"
}
],
"menus": {
"commandPalette": [
{
"command": "moon.refreshProjects",
"when": "moon.hasBinary"
},
{
"command": "moon.checkProject",
"when": "false"
},
{
"command": "moon.runTarget",
"when": "false"
},
{
"command": "moon.runTargetByInput",
"when": "moon.hasBinary"
},
{
"command": "moon.viewProject",
"when": "false"
},
{
"command": "moon.viewDepGraph",
"when": "moon.hasBinary"
},
{
"command": "moon.viewProjectGraph",
"when": "moon.hasBinary"
}
],
"view/title": [
{
"command": "moon.refreshProjects",
"when": "view == moonProjects && moon.hasBinary",
"group": "navigation"
},
{
"command": "moon.refreshProjects",
"when": "view == moonProjectsExternal && moon.hasBinary",
"group": "navigation"
},
{
"command": "moon.viewDepGraph",
"when": "view == moonProjects && moon.hasBinary",
"group": "navigation"
},
{
"command": "moon.viewDepGraph",
"when": "view == moonProjectsExternal && moon.hasBinary",
"group": "navigation"
},
{
"command": "moon.viewProjectGraph",
"when": "view == moonProjects && moon.hasBinary",
"group": "navigation"
},
{
"command": "moon.viewProjectGraph",
"when": "view == moonProjectsExternal && moon.hasBinary",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "moon.runTarget",
"when": "view == moonProjects && viewItem == projectTask",
"group": "inline"
},
{
"command": "moon.viewProject",
"when": "view == moonProjects && viewItem == project",
"group": "inline@0"
},
{
"command": "moon.checkProject",
"when": "view == moonProjects && viewItem == project",
"group": "inline@1"
},
{
"command": "moon.runTarget",
"when": "view == moonProjectsExternal && viewItem == projectTask",
"group": "inline"
},
{
"command": "moon.viewProject",
"when": "view == moonProjectsExternal && viewItem == project",
"group": "inline@0"
},
{
"command": "moon.checkProject",
"when": "view == moonProjectsExternal && viewItem == project",
"group": "inline@1"
}
]
},
"viewsContainers": {
"activitybar": [
{
"id": "moonConsole",
"title": "moon console",
"icon": "assets/moon.svg"
}
]
},
"views": {
"explorer": [
{
"id": "moonProjectsExternal",
"name": "moon"
}
],
"moonConsole": [
{
"id": "moonProjects",
"name": "Projects"
},
{
"id": "moonLastRun",
"name": "Last run",
"type": "webview",
"when": "moon.inWorkspaceRoot"
}
]
},
"viewsWelcome": [
{
"view": "moonProjects",
"contents": "Unable to find the workspace root. Has moon been installed?\n[Install moon](https://moonrepo.dev/docs/install)\nIf moon was installed in a sub-folder, update the [moon.workspaceRoot](command:moon.openSettings) setting.",
"when": "!moon.inWorkspaceRoot"
},
{
"view": "moonProjects",
"contents": "Unable to find moon's binary. Has the [@moonrepo/cli](https://www.npmjs.com/package/@moonrepo/cli) package been installed?\n[Learn more](https://moonrepo.dev/docs/install)\nThe path to moon's binary can be customized with the [moon.binPath](command:moon.openSettings) setting.",
"when": "moon.inWorkspaceRoot && !moon.hasBinary"
},
{
"view": "moonProjectsExternal",
"contents": "Unable to find the workspace root. Has moon been installed?\n[Install moon](https://moonrepo.dev/docs/install)\nIf moon was installed in a sub-folder, update the [moon.workspaceRoot](command:moon.openSettings) setting.",
"when": "!moon.inWorkspaceRoot"
},
{
"view": "moonProjectsExternal",
"contents": "Unable to find moon's binary. Has the [@moonrepo/cli](https://www.npmjs.com/package/@moonrepo/cli) package been installed?\n[Learn more](https://moonrepo.dev/docs/install)\nThe path to moon's binary can be customized with the [moon.binPath](command:moon.openSettings) setting.",
"when": "moon.inWorkspaceRoot && !moon.hasBinary"
}
]
},
"scripts": {
"compile": "esbuild src/extension.ts --bundle --outfile=lib/extension.js --external:vscode --format=cjs --platform=node --target=node14",
"watch": "yarn run compile --sourcemap --watch",
"package": "vsce package --no-dependencies",
"publish": "vsce publish --no-dependencies --no-git-tag-version --message 'Release [ci skip]'"
},
"dependencies": {
"@moonrepo/report": "^1.0.4",
"execa": "^5.1.1",
"semver": "^7.5.4"
},
"devDependencies": {
"@moonrepo/types": "^1.5.0",
"@types/semver": "^7.5.0",
"@types/vscode": "^1.66.0",
"@vscode/test-electron": "^2.2.1",
"esbuild": "^0.19.2",
"vsce": "^2.15.0"
}
}