-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
package.json
329 lines (329 loc) Β· 9.77 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
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
317
318
319
320
321
322
323
324
325
326
327
328
329
{
"name": "minifyall",
"displayName": "MinifyAll",
"description": "Minifier for JSON, CSS, HTML, XML, TWIG, LESS, SASS, SCSS, JavaScript, JSONC, and JavaScriptReact(testing). Compressor of files and folders. You will love its simplicity!",
"version": "2.10.1",
"publisher": "josee9988",
"license": "SEE LICENSE IN LICENSE",
"scripts": {
"publish:vscode": "vsce publish",
"vscode:prepublish": "rm -r out/ || : && webpack --mode production",
"webpack": "webpack --mode development && tsc --outDir out/test/",
"build": "rm -r out/ || : && tsc",
"compile": "npm run build",
"publish:vsx": "npx ovsx publish --pat $1",
"watch": "tsc --watch",
"pretest": "npm run build",
"test": "node node_modules/mocha/bin/mocha out/test/",
"posttest": "rm -R .vscode-test || :",
"update:minifyallcore": "bash bin/coreUpdater.sh"
},
"author": {
"name": "Jose Gracia Berenguer",
"email": "[email protected]"
},
"icon": "Screenshots/icon.png",
"engines": {
"vscode": "^1.55.0"
},
"categories": [
"Other",
"Formatters",
"Programming Languages"
],
"keywords": [
"minify",
"minifier",
"formatter",
"format",
"compressor",
"compress",
"css",
"json",
"jsonc",
"html",
"xml",
"less",
"sass",
"scss",
"jsonc",
"size",
"reduce",
"javascript",
"js",
"javascriptreact",
"react",
"ts",
"terser"
],
"bugs": {
"url": "https://github.com/Josee9988/MinifyAll/issues",
"email": "[email protected]"
},
"homepage": "https://github.com/Josee9988/MinifyAll",
"galleryBanner": {
"color": "#1b1a1a",
"theme": "dark"
},
"repository": {
"type": "git",
"url": "https://github.com/Josee9988/MinifyAll.git"
},
"activationEvents": [
"onLanguage:json",
"onLanguage:jsonc",
"onLanguage:css",
"onLanguage:scss",
"onLanguage:less",
"onLanguage:sass",
"onLanguage:html",
"onLanguage:xml",
"onLanguage:php",
"onLanguage:twig",
"onLanguage:javascript",
"onLanguage:javascriptreact",
"onCommand:extension.MinifyAll",
"onCommand:extension.MinifyAll2OtherDoc",
"onCommand:extension.MinifyAll2OtherDocSelected",
"onCommand:extension.MinifyAllSelectedText",
"onCommand:extension.Compress"
],
"main": "./out/main.js",
"contributes": {
"commands": [
{
"command": "extension.MinifyAll",
"title": "Minify this document β‘"
},
{
"command": "extension.MinifyAll2OtherDoc",
"title": "Minify this document and preserve the original β"
},
{
"command": "extension.MinifyAll2OtherDocSelected",
"title": "Minify the selected document and preserve the original π"
},
{
"command": "extension.Compress",
"title": "Compress the selected file/folder π¦"
},
{
"command": "extension.MinifyAllSelectedText",
"title": "Minify the selected text π―"
}
],
"keybindings": [
{
"command": "extension.MinifyAll",
"title": "Minify this document β‘",
"key": "Ctrl+alt+M",
"mac": "cmd+alt+M",
"linux": "Ctrl+alt+M",
"win": "Ctrl+alt+M"
},
{
"command": "extension.MinifyAll2OtherDoc",
"title": "Minify this document and preserve the original β",
"key": "Ctrl+alt+N",
"mac": "cmd+alt+N",
"linux": "Ctrl+alt+N",
"win": "Ctrl+alt+N"
},
{
"command": "extension.MinifyAllSelectedText",
"title": "Minify the selected text π―",
"key": "Ctrl+alt+. Ctrl+alt+M",
"mac": "Ctrl+alt+. Ctrl+alt+M",
"linux": "Ctrl+alt+. Ctrl+alt+M",
"win": "Ctrl+alt+. Ctrl+alt+M"
}
],
"configuration": {
"title": "MinifyAll",
"properties": {
"MinifyAll.disableHexadecimalShortener": {
"type": "boolean",
"default": true,
"description": "If you want MinifyAll to stop shortening colors, such as rgb to 3 digit hex, or rgba to hex, or 6 digit hex to 3 digit hex. (True for disabling hex.)"
},
"MinifyAll.disableHtml": {
"type": "boolean",
"default": false,
"description": "If you want MinifyAll to stop minimizing HTML. (True for disabling)"
},
"MinifyAll.disableTwig": {
"type": "boolean",
"default": false,
"description": "If you want MinifyAll to stop minimizing TWIG. (True for disabling)"
},
"MinifyAll.disableCss": {
"type": "boolean",
"default": false,
"description": "If you want MinifyAll to stop minimizing CSS. (True for disabling)"
},
"MinifyAll.disableScss": {
"type": "boolean",
"default": false,
"description": "If you want MinifyAll to stop minimizing SCSS. (True for disabling)"
},
"MinifyAll.disableLess": {
"type": "boolean",
"default": false,
"description": "If you want MinifyAll to stop minimizing LESS. (True for disabling)"
},
"MinifyAll.disableSass": {
"type": "boolean",
"default": false,
"description": "If you want MinifyAll to stop minimizing SASS. (True for disabling)"
},
"MinifyAll.disableJson": {
"type": "boolean",
"default": false,
"description": "If you want MinifyAll to stop minimizing JSON. (True for disabling)"
},
"MinifyAll.disableJsonc": {
"type": "boolean",
"default": false,
"description": "If you want MinifyAll to stop minimizing JSONC. (True for disabling)"
},
"MinifyAll.disableJavascript": {
"type": "boolean",
"default": false,
"description": "If you want MinifyAll to stop minimizing JavaScript. (True for disabling)"
},
"MinifyAll.disableJavascriptReact": {
"type": "boolean",
"default": true,
"description": "If you want MinifyAll to stop minimizing JavaScriptReact. (True for disabling)"
},
"MinifyAll.disablePhp": {
"type": "boolean",
"default": false,
"description": "If you want MinifyAll to stop minimizing PHP. (True for disabling)"
},
"MinifyAll.disableXml": {
"type": "boolean",
"default": false,
"description": "If you want MinifyAll to stop minimizing XML. (True for disabling)"
},
"MinifyAll.disableMessages": {
"type": "boolean",
"default": false,
"description": "If you want MinifyAll to stop showing error, warning or information messages. (True for disabling)"
},
"MinifyAll.disableCodeContextMenu": {
"type": "boolean",
"default": false,
"description": "If you want MinifyAll to not showing a context menu when right-clicking in your code. (True for disabling)."
},
"MinifyAll.disableFileExplorerContextMenu": {
"type": "boolean",
"default": false,
"description": "If you want MinifyAll to not showing a context menu when right-clicking in the file explorer. (True for disabling).."
},
"MinifyAll.minifyOnSave": {
"type": "boolean",
"default": false,
"description": "If you want MinifyAll to minify every time you save in the same file. (True for enabling)"
},
"MinifyAll.minifyOnSaveToNewFile": {
"type": "boolean",
"default": false,
"description": "If you want MinifyAll to minify every time you save in other file. (True for enabling)"
},
"MinifyAll.minifyOnSaveToNewFIle": {
"type": "boolean",
"default": false,
"description": "[DEPRECATED use 'minifyOnSaveToNewFile' instead]If you want MinifyAll to minify every time you save in other file. (True for enabling)"
},
"MinifyAll.PrefixOfNewMinifiedFiles": {
"type": "string",
"default": "-min",
"enum": [
"-min",
".min",
"-minified",
".minified"
],
"enumDescriptions": [
"Sets the future filename to example-min.extension",
"Sets the future filename to example.min.extension",
"Sets the future filename to example-minified.extension",
"Sets the future filename to example.minified.extension"
],
"description": "The prefix of the extension of the new file. Default (-min)"
},
"MinifyAll.openMinifiedDocument": {
"type": "boolean",
"default": true,
"description": "If you want MinifyAll to open the new minified document after you minify. (False for not opening it every time you create a minified file)"
},
"MinifyAll.terserMinifyOptions": {
"type": "object",
"default": {
"mangle": true,
"compress": {
"drop_console": true,
"dead_code": false,
"keep_fnames": false,
"keep_classnames": false
}
},
"description": "Terser options, please visit: https://github.com/terser/terser#minify-options for more information."
}
}
},
"menus": {
"editor/context": [
{
"command": "extension.MinifyAll",
"when": "!config.MinifyAll.disableCodeContextMenu && editorLangId in extension.supportedFiletypes",
"group": "MinifyAll"
},
{
"command": "extension.MinifyAll2OtherDoc",
"when": "!config.MinifyAll.disableCodeContextMenu && editorLangId in extension.supportedFiletypes",
"group": "MinifyAll"
},
{
"command": "extension.MinifyAllSelectedText",
"when": "!config.MinifyAll.disableCodeContextMenu && editorLangId in extension.supportedFiletypes || !config.MinifyAll.disableCodeContextMenu && editorLangId == php",
"group": "MinifyAll"
}
],
"explorer/context": [
{
"command": "extension.MinifyAll2OtherDocSelected",
"when": "!config.MinifyAll.disableFileExplorerContextMenu",
"group": "MinifyAll"
},
{
"command": "extension.Compress",
"when": "!config.MinifyAll.disableFileExplorerContextMenu",
"group": "MinifyAll"
}
]
}
},
"devDependencies": {
"@types/glob": "^7.1.3",
"@types/mocha": "^5.2.7",
"@types/node": "^12.19.15",
"@types/vscode": "^1.66.0",
"glob": "^7.1.5",
"mocha": "^9.1.3",
"ts-loader": "^8.1.0",
"tslib": "^1.14.1",
"tslint": "^5.20.0",
"typescript": "^3.9.7",
"vscode-test": "^1.5.0",
"webpack": "^5.31.2",
"webpack-cli": "^4.6.0"
},
"dependencies": {
"@josee9988/minifyall": "^1.2.2",
"terser": "^5.12.1",
"zip-a-folder": "^1.1.0",
"zip-lib": "^0.7.2"
}
}