This repository has been archived by the owner on Mar 12, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
package.json
319 lines (319 loc) · 12.4 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
{
"name": "es6-css-minify",
"displayName": "JS & CSS Minifier (Minify)",
"description": "Easily Minify ES5/ES6/ES7/ES8 and CSS. Supports minify on save, minify selection & custom configurations!",
"version": "3.3.3",
"publisher": "olback",
"icon": "icon.png",
"galleryBanner": {
"color": "#333",
"theme": "dark"
},
"license": "SEE LICENSE IN LICENSE.md",
"homepage": "https://github.com/olback/es6-css-minify",
"bugs": "https://github.com/olback/es6-css-minify/issues",
"qna": "https://github.com/olback/es6-css-minify/issues/new?template=question.md",
"repository": {
"type": "git",
"url": "https://github.com/olback/es6-css-minify.git"
},
"author": {
"name": "olback",
"email": "[email protected]"
},
"keywords": [
"ECMA Script",
"CSS",
"js",
"javascript",
"minify"
],
"categories": [
"Other"
],
"engines": {
"vscode": "^1.30.0"
},
"activationEvents": [
"onCommand:es6-css-minify.loadConfig",
"onCommand:es6-css-minify.minify",
"onCommand:es6-css-minify.minifySelection",
"onCommand:es6-css-minify.minifyExplorer",
"onCommand:es6-css-minify.exportConfig",
"onLanguage:css",
"onLanguage:javascript",
"onLanguage:json",
"workspaceContains:**/*.css",
"workspaceContains:**/*.js",
"workspaceContains:**/*.json"
],
"main": "./dist/extension",
"contributes": {
"languages": [
{
"id": "json",
"aliases": [
"json",
"Json",
"JSON"
],
"extensions": [
".autoprefixerrc",
".cleancssrc",
".uglifyrc",
".terserrc"
]
}
],
"jsonValidation": [
{
"fileMatch": ".autoprefixerrc",
"url": "./schemas/autoprefixerrc.schema.json"
},
{
"fileMatch": ".cleancssrc",
"url": "./schemas/cleancssrc.schema.json"
},
{
"fileMatch": ".uglifyrc",
"url": "./schemas/terserrc.schema.json"
},
{
"fileMatch": ".terserrc",
"url": "./schemas/terserrc.schema.json"
}
],
"commands": [
{
"command": "es6-css-minify.loadConfig",
"title": "Minify: Reload config"
},
{
"command": "es6-css-minify.minify",
"title": "Minify: Document"
},
{
"command": "es6-css-minify.minifySelection",
"title": "Minify: Selection"
},
{
"command": "es6-css-minify.minifyExplorer",
"title": "Minify: File"
},
{
"command": "es6-css-minify.exportConfig",
"title": "Minify: Export Configuration"
}
],
"configuration": {
"type": "object",
"title": "JS & CSS Minifier",
"properties": {
"es6-css-minify.minifyOnSave": {
"type": "string",
"description": "Automatically minify file when saving. Set to \"yes\" to always minify, \"no\" to never minify, \"exists\" to only minify if a minified version already exists.",
"default": "no",
"enum": [
"yes",
"no",
"exists"
]
},
"es6-css-minify.hideButton": {
"type": "string",
"description": "Hide the minify button in the status bar.\n\"always\": Always hidden\n\"never\": Always visible. Even when minification is not supported.\n\"auto\": Hide the button when minification is not available. This is not 100% reliable.",
"default": "never",
"enum": [
"always",
"never",
"auto"
]
},
"es6-css-minify.showLogOnWarning": {
"type": "boolean",
"description": "Show log if minification is successful but has warnings.",
"default": true
},
"es6-css-minify.showLogOnError": {
"type": "boolean",
"description": "When minification fails, show log with warnings and errors.",
"default": true
},
"es6-css-minify.onSaveDelay": {
"type": "number",
"description": "The amount of milliseconds to wait before minifying after a save. This might be needed on slower systems. Setting this to 0 disables the timeout. You should never have to set this to over 50.",
"default": 0
},
"es6-css-minify.uglifyConfigFile": {
"type": "string",
"description": "If this file exists, overwrite uglify-es settings with the ones specified in this file. For more info visit https://www.npmjs.com/package/uglify-es#minify-options-structure.",
"default": ".uglifyrc"
},
"es6-css-minify.genJSmap": {
"description": "Generate JavaScript sourcemap files. Setting this to null will give control to js.sourceMap.",
"default": false,
"enum": [
true,
false,
null
]
},
"es6-css-minify.jsMapSource": {
"type": "string",
"description": "Prefix for sources in map files.",
"default": ""
},
"es6-css-minify.jsMinPath": {
"type": "string",
"description": "Where to save the minified file.\nDefault: '' - saves in the same directory.\n'/' - Save in workspace root.",
"default": ""
},
"es6-css-minify.jsPostfix": {
"type": "string",
"description": "Filename postfix",
"default": "min"
},
"es6-css-minify.js": {
"type": "object",
"description": "Terser/Uglify-es settings. For more info visit https://www.npmjs.com/package/terser#minify-options.",
"default": {
"mangle": false,
"compress": {
"unused": false
},
"output": {
"quote_style": 0
},
"warnings": true
}
},
"es6-css-minify.cleancssConfigFile": {
"type": "string",
"description": "If this file exists, overwrite clean-css settings with the ones specified in this file. For more info visit https://www.npmjs.com/package/clean-css.",
"default": ".cleancssrc"
},
"es6-css-minify.genCSSmap": {
"description": "Generate CSS sourcemap files. Setting this to null will give control to css.sourceMap.",
"default": false,
"enum": [
true,
false,
null
]
},
"es6-css-minify.cssMapSource": {
"type": "string",
"description": "Prefix for sources in map files.",
"default": ""
},
"es6-css-minify.cssMinPath": {
"type": "string",
"description": "Where to save the minified file.\nDefault: '' - saves in the same directory.\n'/' - Save in workspace root.",
"default": ""
},
"es6-css-minify.cssPostfix": {
"type": "string",
"description": "Filename postfix",
"default": "min"
},
"es6-css-minify.css": {
"type": "object",
"description": "Clean-CSS settings. For more info visit https://www.npmjs.com/package/clean-css.",
"properties": {
"rebase": {
"description": "",
"type": "boolean",
"default": false
}
},
"default": {
"rebase": false
}
},
"es6-css-minify.enableAutoprefixer": {
"type": "boolean",
"description": "Enable autoprefixer?",
"default": false
},
"es6-css-minify.enableAutoprefixerSelection": {
"type": "boolean",
"description": "Enable autoprefixer for selection minification?",
"default": false
},
"es6-css-minify.autoprefixer": {
"type": "object",
"description": "Autoprefixer options object. For more info visit https://github.com/postcss/autoprefixer#options",
"default": {}
},
"es6-css-minify.autoprefixerConfigFile": {
"type": "string",
"description": "",
"default": ".autoprefixerrc"
}
}
},
"menus": {
"editor/context": [
{
"command": "es6-css-minify.minify",
"group": "es6-css-minify",
"when": "editorLangId == javascript || editorLangId == css"
},
{
"command": "es6-css-minify.minifySelection",
"group": "es6-css-minify",
"when": "editorLangId == javascript && editorHasSelection"
},
{
"command": "es6-css-minify.minifySelection",
"group": "es6-css-minify",
"when": "editorLangId == css && editorHasSelection"
},
{
"command": "es6-css-minify.minifySelection",
"group": "es6-css-minify",
"when": "editorLangId == json && editorHasSelection"
}
],
"explorer/context": [
{
"command": "es6-css-minify.minifyExplorer",
"group": "es6-css-minify",
"when": "resourceLangId == javascript || resourceLangId == css"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm test && npm run compile",
"compile": "node --max-old-space-size=1024 node_modules/webpack/bin/webpack --mode production",
"watch": "node node_modules/webpack/bin/webpack --mode development --watch",
"pretest": "npm run compile && npm run ts:compile",
"ts:compile": "tsc -p ./",
"test": "node --max-old-space-size=1024 ./out/test/runTest.js",
"lint": "tslint -p ./"
},
"devDependencies": {
"@types/autoprefixer": "^9.6.1",
"@types/clean-css": "^4.2.1",
"@types/glob": "^7.1.1",
"@types/mocha": "^5.2.6",
"@types/node": "^10.14.18",
"@types/vscode": "^1.30.0",
"@types/webpack": "^4.39.1",
"autoprefixer": "^9.6.1",
"clean-css": "^4.2.1",
"cross-env": "^5.2.1",
"fork-ts-checker-webpack-plugin": "^1.5.0",
"glob": "^7.1.4",
"mocha": "^6.1.4",
"terser": "^4.6.2",
"ts-loader": "^6.1.0",
"tslint": "^5.20.0",
"typescript": "^3.6.3",
"vscode-test": "^1.2.0",
"webpack": "^4.39.3",
"webpack-cli": "^3.3.8"
},
"dependencies": {}
}