forked from folke/vscode-monorepo-workspace
-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
196 lines (196 loc) · 6.5 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
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
{
"name": "vscode-mono-workspace",
"displayName": "Mono Workspace",
"description": "Manage monorepos with multi-root workspaces. Supports Cargo, NX, Lerna, Yarn, Pnpm, Rushjs and recursive package directories",
"version": "1.4.1",
"publisher": "melMass",
"repository": "https://github.com/mtb-tools/vscode-mono-workspace",
"license": "MIT",
"engines": {
"vscode": ">=1.72.0"
},
"categories": [
"Other"
],
"keywords": [
"workspace",
"monorepo",
"project",
"yarn",
"folder",
"nx",
"cargo"
],
"activationEvents": [
"workspaceContains:**/package.json",
"workspaceContains:**/Cargo.toml",
"workspaceContains:**/nx.json",
"onCommand:mono-workspace.openPackageCurrentWindow",
"onCommand:mono-workspace.openPackageNewWindow",
"onCommand:mono-workspace.openPackageWorkspaceFolder",
"onCommand:mono-workspace.select",
"onCommand:mono-workspace.updateAll"
],
"main": "./out/extension.js",
"browser": "./out/extension-web.js",
"icon": "images/icon.png",
"contributes": {
"commands": [
{
"command": "mono-workspace.openPackageCurrentWindow",
"title": "Monorepo: Open Package (Current Window)"
},
{
"command": "mono-workspace.openPackageNewWindow",
"title": "Monorepo: Open Package (New Window)"
},
{
"command": "mono-workspace.openPackageWorkspaceFolder",
"title": "Monorepo: Open Package (Workspace Folder)"
},
{
"command": "mono-workspace.select",
"title": "Monorepo: Select Workspace Folders"
},
{
"command": "mono-workspace.updateAll",
"title": "Monorepo: Sync Workspace Folders"
}
],
"configuration": {
"title": "Mono Workspace",
"properties": {
"monoWorkspace.includeRoot": {
"type": "boolean",
"default": true,
"description": "Inlcude the top-level monorepo root path as a workspace folder"
},
"monoWorkspace.providers_suffix": {
"type": "boolean",
"default": true,
"description": "Append the provider source to project names."
},
"monoWorkspace.fetch_descriptions": {
"type": "boolean",
"default": true,
"description": "Tries to get the descriptions from packages."
},
"monoWorkspace.providers.cargo": {
"type": "boolean",
"default": true,
"description": "Resolve projects from Cargo workspace members."
},
"monoWorkspace.providers.core": {
"type": "boolean",
"default": true,
"description": "Resolve projects from Lerna, Yarn, Pnpm, Rushjs, and recursive package discovery."
},
"monoWorkspace.providers.nx": {
"type": "boolean",
"default": true,
"description": "Resolve projects from NX Workspace"
},
"monoWorkspace.folders.regex.apps": {
"type": "string",
"default": "^app|web|api|frontend|backend",
"description": "Regex to match app-like package paths"
},
"monoWorkspace.folders.prefix.apps": {
"type": "string",
"default": "🚀 ",
"description": "Folder prefix for apps"
},
"monoWorkspace.folders.regex.libs": {
"type": "string",
"default": "^common|package|lib|private",
"description": "Regex to match library-like package paths"
},
"monoWorkspace.folders.prefix.libs": {
"type": "string",
"default": "📦 ",
"description": "Folder prefix for libraries"
},
"monoWorkspace.folders.regex.tools": {
"type": "string",
"default": "^tool|script|util",
"description": "Regex to match tool-like package paths"
},
"monoWorkspace.folders.prefix.tools": {
"type": "string",
"default": "⚙️ ",
"description": "Folder prefix for tools"
},
"monoWorkspace.folders.prefix.unknown": {
"type": "string",
"default": "",
"description": "Folder prefix for unknown packages"
},
"monoWorkspace.folders.prefix.root": {
"type": "string",
"default": "✨ ",
"description": "Folder prefix for the root folder"
},
"monoWorkspace.folders.custom": {
"type": "array",
"default": [],
"description": "An array of custom 'regex/prefix' pairs like: [{regex:'foo', prefix:'bar'}, {regex:'fffoo', prefix:'bbbar'}]"
}
}
}
},
"scripts": {
"vscode:prepublish": "pnpm run compile && pnpm run compile:web",
"compile": "node build.mjs",
"compile:web": "node build_web.mjs",
"compile:dev": "node build.mjs -dev",
"compile:dev-web": "node build_web.mjs -dev",
"lint": "eslint src --ext ts",
"pretest": "pnpm run compile && pnpm run lint",
"test": "node ./out/test/run-test.js",
"package": "vsce package --no-dependencies",
"package:install": "vsce package --no-dependencies && code --install-extension ./*vsix",
"release": "[[ $FORCE -eq 1 ]] && vsce package && vsce publish || echo 'Sure you dont want to run pre? Else preprend FORCE=1 to the command'",
"release:pre": "vsce package --pre-release && vsce publish --pre-release"
},
"devDependencies": {
"@esbuild-plugins/node-globals-polyfill": "^0.1.1",
"@esbuild-plugins/node-modules-polyfill": "^0.1.4",
"@types/glob": "7.1.3",
"@types/lodash": "^4.14.186",
"@types/mocha": "8.2.1",
"@types/node": "16.4.10",
"@types/vscode": "1.72.0",
"@types/yamljs": "^0.2.31",
"@typescript-eslint/eslint-plugin": "5.40.1",
"@typescript-eslint/parser": "5.40.1",
"@vscode/test-electron": "2.1.5",
"@vscode/test-web": "^0.0.32",
"devmoji": "2.2.0",
"esbuild": "^0.15.11",
"eslint": "8.25.0",
"eslint-config-prettier": "8.1.0",
"eslint-plugin-chai-expect": "3.0.0",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-jest": "27.1.1",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-prettier": "3.3.1",
"eslint-plugin-promise": "4.3.1",
"eslint-plugin-unicorn": "44.0.2",
"glob": "7.1.6",
"husky": "5.1.1",
"mocha": "10.0.0",
"prettier": "2.2.1",
"type-fest": "^3.1.0",
"typescript": "4.8.4",
"vsce": "^2.11.0"
},
"dependencies": {
"compare-versions": "^5.0.1",
"globrex": "^0.1.2",
"json5": "^2.2.1",
"lodash": "^4.17.21",
"toml": "^3.0.0",
"tslib": "2.1.0",
"yamljs": "^0.3.0"
}
}