-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpackage.json
More file actions
175 lines (175 loc) · 6.02 KB
/
package.json
File metadata and controls
175 lines (175 loc) · 6.02 KB
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
{
"name": "tinypng",
"displayName": "TinyPNG",
"description": "Use TinyPNG from within VSCode",
"version": "1.4.0",
"publisher": "andi1984",
"engines": {
"vscode": "^1.81.0"
},
"categories": [
"Other"
],
"icon": "images/icon.png",
"galleryBanner": {
"color": "#404040",
"theme": "dark"
},
"activationEvents": [
"onCommand:extension.compressFile",
"onCommand:extension.compressFolder",
"onCommand:extension.getCompressionCount",
"onCommand:extension.setApiKey"
],
"main": "./out/src/extension.js",
"contributes": {
"configuration": [
{
"title": "TinyPNG Configuration",
"properties": {
"tinypng.apiKey": {
"type": "string",
"description": "DEPRECATED: Use Command Palette > 'TinyPNG: Set API Key' instead. Your TinyPNG API Key",
"deprecationMessage": "Please use the Command Palette command 'TinyPNG: Set API Key' to store your key securely."
},
"tinypng.forceOverwrite": {
"type": "boolean",
"default": false,
"description": "Only check this option if you want to force TinyPNG to overwrite your existing file instead of creating always a new file."
},
"tinypng.compressedFilePostfix": {
"type": "string",
"default": ".min",
"description": "Postfix which is appended to the compressed file unless you are forcing the extension to overwrite the source file."
},
"tinypng.concurrency": {
"type": "number",
"default": 3,
"minimum": 1,
"maximum": 10,
"description": "Maximum number of images to compress simultaneously in batch operations."
}
}
}
],
"commands": [
{
"command": "extension.compressFile",
"title": "TinyPNG: Compress",
"category": "TinyPNG"
},
{
"command": "extension.compressFolder",
"title": "TinyPNG: Compress images in here",
"category": "TinyPNG"
},
{
"command": "extension.getCompressionCount",
"title": "Compression Count",
"category": "TinyPNG"
},
{
"command": "extension.compressGitStage",
"title": "Compress images in git stage",
"category": "TinyPNG"
},
{
"command": "extension.setApiKey",
"title": "TinyPNG: Set API Key",
"category": "TinyPNG"
}
],
"menus": {
"commandPalette": [
{
"command": "extension.getCompressionCount"
},
{
"command": "extension.setApiKey"
},
{
"command": "extension.compressFile",
"when": "False"
},
{
"command": "extension.compressFolder",
"when": "False"
}
],
"editor/title/context": [
{
"when": "resourceLangId == tinypng_file",
"command": "extension.compressFile",
"group": "1_modification"
}
],
"explorer/context": [
{
"when": "resourceLangId == tinypng_file",
"command": "extension.compressFile",
"group": "1_modification"
},
{
"when": "explorerResourceIsFolder",
"command": "extension.compressFolder",
"group": "1_modification"
}
]
},
"languages": [
{
"id": "tinypng_file",
"extensions": [
".png",
".jpg",
".jpeg",
".webp"
]
}
]
},
"scripts": {
"test": "npm run compile && node --trace-warnings ./out/test/runTest.js",
"test:unit": "npm run compile && npm test",
"pretest": "npm run compile",
"vscode:prepublish": "npm run compile",
"compile": "tsc -p tsconfig.json",
"watch": "tsc -watch -p tsconfig.json",
"lint": "eslint --ext .js,.ts . test"
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "^22.19.1",
"@types/vscode": "^1.81.0",
"@typescript-eslint/parser": "^5.59.5",
"@vscode/test-electron": "^2.5.2",
"eslint": "^8.56.0",
"glob": "^13.0.0",
"mocha": "^11.7.5",
"typescript": "^5.9.3"
},
"dependencies": {
"tinify": "^1.8.2"
},
"bugs": {
"url": "https://github.com/andi1984/vscode-tinypng/issues",
"email": "andreas.sander@hotmail.de"
},
"repository": {
"type": "git",
"url": "https://github.com/andi1984/vscode-tinypng.git"
},
"badges": [
{
"url": "https://api.codeclimate.com/v1/badges/22bab9e7a8e1660326b1/maintainability",
"href": "https://codeclimate.com/github/andi1984/vscode-tinypng/maintainability",
"description": "Maintainability"
},
{
"url": "https://david-dm.org/andi1984/vscode-tinypng/status.png",
"href": "https://david-dm.org/andi1984/vscode-tinypng",
"description": "Dependencies"
}
],
"homepage": "https://github.com/andi1984/vscode-tinypng/blob/master/README.md"
}