-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
169 lines (169 loc) · 5.03 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
{
"name": "image-editor",
"displayName": "Image editor",
"publisher": "lemehovskiy",
"description": "Visual Studio Code extension for basic image edit operations like converting to WebP, compression, resizing, rotate.",
"version": "0.0.6",
"icon": "resources/logo.png",
"engines": {
"vscode": "^1.86.0"
},
"repository": {
"type": "git",
"url": "https://github.com/lemehovskiy/vs-code-image-editor"
},
"categories": [
"Other"
],
"activationEvents": [],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "image-editor.rotateLeft",
"title": "Rotate Left"
},
{
"command": "image-editor.rotateRight",
"title": "Rotate Right"
},
{
"command": "image-editor.resize",
"title": "Resize by max width and height"
},
{
"command": "image-editor.resizeByWidth",
"title": "Resize by width"
},
{
"command": "image-editor.resizeByHeight",
"title": "Resize by height"
},
{
"command": "image-editor.compress",
"title": "Compress"
},
{
"command": "image-editor.convertToWebP",
"title": "Convert to WebP"
},
{
"command": "image-editor.compressWithAutoFormat",
"title": "Compress with autoformat"
}
],
"menus": {
"explorer/context": [
{
"submenu": "image-editor.ImageEditor",
"group": "image-editor"
}
],
"image-editor.ImageEditor": [
{
"command": "image-editor.rotateLeft",
"when": "resourceScheme == 'file' && resourceFilename =~ /\\.(png|jpg|jpeg|gif|webp)$/i"
},
{
"command": "image-editor.rotateRight",
"when": "resourceScheme == 'file' && resourceFilename =~ /\\.(png|jpg|jpeg|gif|webp)$/i"
},
{
"command": "image-editor.resize",
"when": "resourceScheme == 'file' && resourceFilename =~ /\\.(png|jpg|jpeg|gif|webp)$/i"
},
{
"command": "image-editor.resizeByWidth",
"when": "resourceScheme == 'file' && resourceFilename =~ /\\.(png|jpg|jpeg|gif|webp)$/i"
},
{
"command": "image-editor.resizeByHeight",
"when": "resourceScheme == 'file' && resourceFilename =~ /\\.(png|jpg|jpeg|gif|webp)$/i"
},
{
"command": "image-editor.compress",
"when": "resourceScheme == 'file' && resourceFilename =~ /\\.(png|jpg|jpeg|webp)$/i"
},
{
"command": "image-editor.convertToWebP",
"when": "resourceScheme == 'file' && resourceFilename =~ /\\.(png|jpg|jpeg|gif)$/i"
},
{
"command": "image-editor.compressWithAutoFormat",
"when": "resourceScheme == 'file' && resourceFilename =~ /\\.(png|jpg|jpeg|gif|webp)$/i"
}
]
},
"submenus": [
{
"command": "image-editor.ImageEditor",
"id": "image-editor.ImageEditor",
"label": "Image Editor"
}
],
"configuration": {
"title": "Image editor",
"properties": {
"image-editor.quality": {
"type": "number",
"default": 80,
"description": "Quality, integer 1-100 (optional, default 80)"
},
"image-editor.overwrite-original": {
"type": "boolean",
"default": true,
"description": "Should a file be overwritten after commands resize and compress (optional, default true)"
},
"image-editor.save-limit": {
"type": "number",
"default": 15,
"description": "Save limit in percents (optional, default 15)"
},
"image-editor.webp-delete-original": {
"type": "boolean",
"default": true,
"description": "Should a file be deleted when converting to WebP (optional, default true)"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"lint:fix": "eslint src --ext ts --fix",
"test": "vscode-test",
"prepare": "husky install"
},
"lint-staged": {
"*.ts": [
"eslint --fix --max-warnings=0"
]
},
"devDependencies": {
"@types/mocha": "^10.0.6",
"@types/node": "18.x",
"@types/vscode": "^1.86.0",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@vscode/test-cli": "^0.0.4",
"@vscode/test-electron": "^2.3.9",
"eslint": "^8.56.0",
"eslint-plugin-prettier": "^5.1.3",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"prettier": "^3.2.5",
"ts-loader": "^9.5.1",
"typescript": "^5.3.3",
"webpack": "^5.90.0",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"sharp": "^0.32.5"
}
}