forked from fabiospampinato/vscode-optimize-images
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
executable file
·152 lines (152 loc) · 3.99 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
{
"name": "vscode-optimize-images",
"displayName": "Optimize Images",
"description": "Optimize one or all the images in your project using your favorite app.",
"icon": "resources/logo-128x128.png",
"version": "1.0.7",
"license": "MIT",
"main": "out/extension.js",
"publisher": "fabiospampinato",
"activationEvents": [
"onCommand:optimizeImages.optimize",
"onCommand:optimizeImages.optimizeFile"
],
"contributes": {
"languages": [
{
"id": "image",
"aliases": [
"Image"
],
"extensions": [
".gif",
".jpg",
".jpeg",
".png"
]
}
],
"configuration": {
"type": "object",
"title": "Optimize Images - Configuration",
"properties": {
"optimizeImages.app": {
"type": "string",
"description": "Name of the app to use for optimizating the images",
"default": ""
},
"optimizeImages.appOptions": {
"type": "array",
"description": "An array of options to be passed to the app on execution.\nUse the placeholder '[filepath]' (without quotes) to insert the filepath to the currently processed file",
"default": []
},
"optimizeImages.imageRegex": {
"type": "string",
"description": "Regex used for matching images",
"default": ".*\\.(png|gif|jpe?g)$"
},
"optimizeImages.searchDepth": {
"type": "number",
"description": "Maximum depth to look at when searching images",
"default": 10
},
"optimizeImages.searchStartingPath": {
"type": "string",
"description": "Path relative to the root where to start searching images",
"default": "."
},
"optimizeImages.searchIgnoreFolders": {
"type": "array",
"items": {
"type": "string"
},
"description": "Ignore these folders when searching images",
"default": [
".git",
".svn",
"bower_components",
"node_modules",
"typings"
]
}
}
},
"commands": [
{
"command": "optimizeImages.optimize",
"title": "Optimize Images: Optimize All"
},
{
"command": "optimizeImages.optimizeFile",
"title": "Optimize Image"
}
],
"menus": {
"commandPalette": [
{
"command": "optimizeImages.optimizeFile",
"when": "false"
}
],
"explorer/context": [
{
"command": "optimizeImages.optimizeFile",
"group": "optimization",
"when": "resourceLangId == image"
}
],
"editor/title/context": [
{
"command": "optimizeImages.optimizeFile",
"group": "optimization",
"when": "resourceLangId == image"
}
]
}
},
"scripts": {
"vscode:prepublish": "rm -rf out && webpack --mode production",
"publish": "vsce publish && npm publish",
"compile": "webpack --mode development",
"compile:watch": "webpack --mode development --watch",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "node ./node_modules/vscode/bin/test"
},
"bugs": {
"url": "https://github.com/fabiospampinato/vscode-optimize-images/issues"
},
"author": {
"name": "Fabio Spampinato",
"email": "spampinabio@gmail.com"
},
"repository": {
"type": "git",
"url": "https://github.com/fabiospampinato/vscode-optimize-images.git"
},
"engines": {
"vscode": "^1.15.0"
},
"keywords": [
"vscode",
"vsc",
"extension",
"optimize",
"images"
],
"categories": [
"Other"
],
"dependencies": {
"@types/node": "^10.12.8",
"lodash": "^4.17.4",
"opn": "^5.4.0",
"walker": "^1.0.7"
},
"devDependencies": {
"ts-loader": "^5.2.1",
"typescript": "~2.4.1",
"vscode": "^1.1.4",
"webpack": "^4.20.2",
"webpack-cli": "^3.1.2"
}
}