Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
316 lines (316 loc) · 12.1 KB
/
Copy pathpackage.json
File metadata and controls
316 lines (316 loc) · 12.1 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
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
{
"name": "mf-explorer",
"displayName": "Module Federation Explorer",
"description": "Explore your module federation's projects in a tree or graph view, inspect dependencies, and manage all in your own terminals",
"version": "2.3.0",
"engines": {
"vscode": "^1.80.0"
},
"repository": {
"type": "git",
"url": "https://github.com/andrecrjr/module-federation-explorer"
},
"icon": "/media/mf-explorer-logo.png",
"categories": [
"Other"
],
"author": {
"name": "André Carlos Jr.",
"email": "andre-carlos@ac-jr.com"
},
"publisher": "acjr",
"activationEvents": [
"workspaceContains:**/webpack.config.js",
"workspaceContains:**/webpack.config.ts",
"workspaceContains:**/vite.config.js",
"workspaceContains:**/vite.config.ts",
"workspaceContains:**/rsbuild.config.js",
"workspaceContains:**/rsbuild.config.ts",
"workspaceContains:**/rspack.config.js",
"workspaceContains:**/rspack.config.ts",
"workspaceContains:**/modern.config.js",
"workspaceContains:**/modern.config.ts",
"workspaceContains:**/module-federation.config.js",
"workspaceContains:**/module-federation.config.ts",
"workspaceContains:**/.vscode/mf-explorer.roots.json"
],
"main": "./dist/extension.js",
"contributes": {
"views": {
"explorer": [
{
"id": "moduleFederation",
"name": "Module Federation Explorer"
}
]
},
"viewsWelcome": [
{
"view": "moduleFederation",
"contents": "👋 Welcome to Module Federation Explorer!\n\nTo get started, follow these simple steps:\n\n🔧 STEP 1: Set Up Your Configuration File\n Configure where your settings will be stored.\n [Configure Settings](command:moduleFederation.changeConfigFile)\n\n📁 STEP 2: Add Host Folders\n Add folders containing your Module Federation configurations\n (e.g., Webpack, Vite, or ModernJS setups).\n [Add Host Folder](command:moduleFederation.addRoot)\n\n🚀 STEP 3: Explore Features\n Once configured, you can visualize dependencies, manage remotes,\n and interact with your Module Federation architecture.\n\n📖 [Learn more in the Documentation](https://github.com/andrecrjr/module-federation-explorer)\n\n💬 [Share Feedback](command:moduleFederation.showFeedback)",
"when": "!moduleFederation.hasRoots"
}
],
"commands": [
{
"command": "moduleFederation.refresh",
"title": "Refresh",
"icon": "$(refresh)"
},
{
"command": "moduleFederation.addRoot",
"title": "Add New Host Folder",
"icon": "$(add)"
},
{
"command": "moduleFederation.editRootAppCommand",
"title": "Edit Host App Command",
"icon": "$(gear)"
},
{
"command": "moduleFederation.editCommand",
"title": "Edit Remote Command",
"icon": "$(gear)"
},
{
"command": "moduleFederation.removeRoot",
"title": "Remove Host Folder",
"icon": "$(trash)"
},
{
"command": "moduleFederation.changeConfigFile",
"title": "Module Federation: Change Configuration File",
"icon": "$(gear)"
},
{
"command": "moduleFederation.startRootApp",
"title": "Start Host App",
"icon": "$(play)"
},
{
"command": "moduleFederation.stopRootApp",
"title": "Stop Host App",
"icon": "$(stop)"
},
{
"command": "moduleFederation.configureRootApp",
"title": "Configure Root App",
"icon": "$(gear)"
},
{
"command": "moduleFederation.showDependencyGraph",
"title": "Show Dependency Graph",
"icon": "$(graph)"
},
{
"command": "moduleFederation.startRemote",
"title": "Start Remote"
},
{
"command": "moduleFederation.stopRemote",
"title": "Stop Remote",
"icon": "$(stop)"
},
{
"command": "moduleFederation.showWelcome",
"title": "Module Federation Explorer: Show Welcome"
},
{
"command": "moduleFederation.reveal",
"title": "Module Federation Explorer: Show View"
},
{
"command": "moduleFederation.focus",
"title": "Module Federation Explorer: Focus View"
},
{
"command": "moduleFederation.openView",
"title": "Module Federation Explorer: Open View"
},
{
"command": "moduleFederation.showFeedback",
"title": "Module Federation Explorer: Share Feedback",
"icon": "$(feedback)"
},
{
"command": "moduleFederation.rateExtension",
"title": "Module Federation Explorer: Rate Extension",
"icon": "$(star-full)"
},
{
"command": "moduleFederation.addExternalRemote",
"title": "Add External Remote",
"icon": "$(add)"
},
{
"command": "moduleFederation.removeExternalRemote",
"title": "Remove External Remote",
"icon": "$(trash)"
}
],
"menus": {
"view/title": [
{
"command": "moduleFederation.refresh",
"when": "view == moduleFederation",
"group": "navigation"
},
{
"command": "moduleFederation.addRoot",
"when": "view == moduleFederation",
"group": "navigation"
},
{
"command": "moduleFederation.showDependencyGraph",
"when": "view == moduleFederation",
"group": "navigation"
},
{
"command": "moduleFederation.changeConfigFile",
"when": "view == moduleFederation",
"group": "navigation"
},
{
"command": "moduleFederation.showFeedback",
"when": "view == moduleFederation",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "moduleFederation.removeRoot",
"when": "view == moduleFederation && (viewItem == rootFolder || viewItem == configurableRootApp || viewItem == runningRootApp)",
"group": "inline"
},
{
"command": "moduleFederation.startRootApp",
"when": "view == moduleFederation && (viewItem == rootFolder || viewItem == configurableRootApp || viewItem == runningRootApp)",
"group": "inline"
},
{
"command": "moduleFederation.editRootAppCommand",
"when": "view == moduleFederation && (viewItem == rootFolder || viewItem == configurableRootApp || viewItem == runningRootApp)",
"group": "inline",
"icon": "$(gear)"
},
{
"command": "moduleFederation.stopRootApp",
"when": "view == moduleFederation && viewItem == runningRootApp",
"group": "inline"
},
{
"command": "moduleFederation.configureRootApp",
"when": "view == moduleFederation && (viewItem == rootFolder || viewItem == configurableRootApp || viewItem == runningRootApp)",
"group": "rootApp@1"
},
{
"command": "moduleFederation.addExternalRemote",
"when": "view == moduleFederation && viewItem == remotesFolder",
"group": "inline"
},
{
"command": "moduleFederation.startRemote",
"when": "view == moduleFederation && viewItem == remote",
"group": "inline"
},
{
"command": "moduleFederation.startRemote",
"when": "view == moduleFederation && viewItem == unconfiguredRemote",
"group": "inline",
"icon": "$(gear)"
},
{
"command": "moduleFederation.stopRemote",
"when": "view == moduleFederation && viewItem == runningRemote",
"group": "inline"
},
{
"command": "moduleFederation.editCommand",
"when": "view == moduleFederation && (viewItem == remote || viewItem == runningRemote)",
"group": "inline",
"icon": "$(edit)"
},
{
"command": "moduleFederation.removeExternalRemote",
"when": "view == moduleFederation && viewItem == externalRemote",
"group": "inline"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "rspack",
"watch": "rspack --watch",
"package": "rspack --mode production",
"pretest": "npm run compile",
"test": "node ./out/test/runTest.js",
"lint": "eslint src --ext ts"
},
"devDependencies": {
"@rspack/cli": "^1.2.8",
"@rspack/core": "^1.2.8",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/commit-analyzer": "^13.0.1",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^12.0.6",
"@semantic-release/npm": "^13.1.5",
"@semantic-release/release-notes-generator": "^14.1.0",
"@types/d3": "^7.4.3",
"@types/estraverse": "^5.1.3",
"@types/node": "^16.11.7",
"@types/vscode": "^1.80.0",
"@typescript-eslint/parser": "^8.27.0",
"conventional-changelog-conventionalcommits": "^9.2.0",
"d3": "^7.8.5",
"estraverse": "^5.3.0",
"semantic-release": "^25.0.3",
"semantic-release-vsce": "^6.0.24",
"ts-loader": "^9.5.2",
"typescript": "^5.1.3"
},
"release": {
"branches": [
"master"
],
"tagFormat": "${version}",
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits"
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits"
}
],
"@semantic-release/changelog",
[
"@semantic-release/npm",
{
"npmPublish": false
}
],
"semantic-release-vsce",
[
"@semantic-release/git",
{
"assets": [
"package.json",
"CHANGELOG.md"
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
[
"@semantic-release/github",
{
"assets": "*.vsix"
}
]
]
}
}