-
Notifications
You must be signed in to change notification settings - Fork 68
/
package.json
209 lines (209 loc) · 6.13 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
197
198
199
200
201
202
203
204
205
206
207
208
209
{
"name": "vscode-import-cost",
"displayName": "Import Cost",
"description": "Display import/require package size in the editor",
"license": "MIT",
"version": "3.3.0",
"publisher": "wix",
"main": "./dist/extension.electron.js",
"browser": "./dist/extension.browser.js",
"engines": {
"vscode": "^1.64.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:javascript",
"onLanguage:javascriptreact",
"onLanguage:typescript",
"onLanguage:typescriptreact",
"onLanguage:vue",
"onLanguage:svelte"
],
"keywords": [
"import",
"require",
"size",
"weight",
"webpack"
],
"contributes": {
"configuration": {
"type": "object",
"title": "Import Cost configuration",
"properties": {
"importCost.bundleSizeColoring": {
"type": "string",
"default": "minified",
"enum": [
"minified",
"compressed"
],
"description": "Which bundle size to use for selecting the color"
},
"importCost.smallPackageSize": {
"type": "number",
"default": 50,
"description": "Upper size limit, in KB, that will count a package as a small package"
},
"importCost.mediumPackageSize": {
"type": "number",
"default": 100,
"description": "Upper size limit, in KB, that will count a package as a medium package"
},
"importCost.smallPackageDarkColor": {
"type": "string",
"default": "#7cc36e",
"description": "Decoration color for small packages in dark theme"
},
"importCost.mediumPackageDarkColor": {
"type": "string",
"default": "#7cc36e",
"description": "Decoration color for medium packages in dark theme"
},
"importCost.largePackageDarkColor": {
"type": "string",
"default": "#d44e40",
"description": "Decoration color for large packages in dark theme"
},
"importCost.smallPackageLightColor": {
"type": "string",
"default": "#7cc36e",
"description": "Decoration color for small packages in light theme"
},
"importCost.mediumPackageLightColor": {
"type": "string",
"default": "#7cc36e",
"description": "Decoration color for medium packages in light theme"
},
"importCost.largePackageLightColor": {
"type": "string",
"default": "#d44e40",
"description": "Decoration color for large packages in light theme"
},
"importCost.margin": {
"type": "number",
"default": 1,
"description": "Decoration margin from end of line"
},
"importCost.fontStyle": {
"type": "string",
"default": "normal",
"enum": [
"normal",
"italic",
"oblique"
],
"description": "Decoration font style"
},
"importCost.typescriptExtensions": {
"type": "array",
"default": [
"\\.tsx?$"
],
"description": "File extensions to be parsed by the Typescript parser"
},
"importCost.javascriptExtensions": {
"type": "array",
"default": [
"\\.jsx?$"
],
"description": "File extensions to be parsed by the Javascript parser"
},
"importCost.vueExtensions": {
"type": "array",
"default": [
"\\.vue$"
],
"description": "File extensions to be parsed by the Vue parser"
},
"importCost.svelteExtensions": {
"type": "array",
"default": [
"\\.svelte$"
],
"description": "File extensions to be parsed by the Svelte parser"
},
"importCost.bundleSizeDecoration": {
"type": "string",
"default": "both",
"enum": [
"both",
"minified",
"compressed"
],
"description": "Which bundle size to display"
},
"importCost.showCalculatingDecoration": {
"type": "boolean",
"default": true,
"description": "Display the 'calculating' decoration when starting to calculate the size"
},
"importCost.debug": {
"type": "boolean",
"default": false,
"description": "Enable debug logging"
},
"importCost.timeout": {
"type": "number",
"default": 20000,
"description": "Size calculation timeout in milliseconds"
}
}
},
"commands": [
{
"command": "importCost.toggle",
"title": "Toggle import cost"
}
]
},
"scripts": {
"pretest": "webpack -c ./webpack.browser.js && webpack -c ./webpack.electron.js",
"build": "npm run pretest && vsce package --no-dependencies",
"test": "node ./test/index.js"
},
"devDependencies": {
"@types/glob": "^7.2.0",
"@types/mocha": "^9.1.0",
"@types/node": "16.x",
"@types/vscode": "^1.64.0",
"@vscode/test-electron": "^2.1.2",
"@vscode/test-web": "^0.0.24",
"assert": "^2.0.0",
"browser-process-hrtime": "^1.0.0",
"browserify-zlib": "^0.2.0",
"buffer": "^6.0.3",
"chai": "^4.2.0",
"constants-browserify": "^1.0.0",
"crypto-browserify": "^3.12.0",
"filesize": "^8.0.7",
"glob": "^7.2.0",
"https-browserify": "^1.0.0",
"import-cost": "^3.1.0",
"memfs": "^3.4.1",
"mocha": "^9.2.2",
"os-browserify": "^0.3.0",
"path-browserify": "^1.0.1",
"process": "^0.11.10",
"stream-browserify": "^3.0.0",
"stream-http": "^3.2.0",
"url": "^0.11.0",
"util": "^0.12.4",
"vm-browserify": "^1.1.2",
"vsce": "^2.11.0",
"webpack": "5.70.0",
"webpack-cli": "^4.9.2"
},
"icon": "images/import-cost-logo.png",
"galleryBanner": {
"color": "#1C78C0",
"theme": "dark"
},
"homepage": "https://github.com/wix/import-cost/blob/master/packages/vscode-import-cost/README.md",
"repository": {
"type": "git",
"url": "https://github.com/wix/import-cost.git"
}
}