-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
112 lines (112 loc) · 2.9 KB
/
package.json
File metadata and controls
112 lines (112 loc) · 2.9 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
{
"name": "tinyimage",
"displayName": "TinyImage",
"description": "批量压缩 PNG/JPEG/SVG 图片,无需 API Key",
"version": "1.2.0",
"publisher": "linkhopes",
"engines": {
"vscode": "^1.105.0",
"node": ">=14"
},
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./dist/extension.js",
"bin": {
"tiny": "./dist/index.js"
},
"contributes": {
"commands": [
{
"command": "tinyimage.compressFile",
"title": "TinyImage: 压缩图片"
},
{
"command": "tinyimage.compressFolder",
"title": "TinyImage: 压缩文件夹内图片"
}
],
"menus": {
"explorer/context": [
{
"command": "tinyimage.compressFile",
"when": "resourceExtname =~ /\\.(png|jpg|jpeg|svg)$/i",
"group": "7_modification@1"
},
{
"command": "tinyimage.compressFolder",
"when": "explorerResourceIsFolder",
"group": "7_modification@2"
}
]
},
"configuration": {
"title": "TinyImage",
"properties": {
"tinyimage.minSize": {
"type": "number",
"default": 10,
"description": "最小压缩文件大小(KB),小于此值的文件将跳过"
},
"tinyimage.retain": {
"type": "boolean",
"default": false,
"description": "保留原文件,压缩结果另存为 .tiny 后缀文件"
},
"tinyimage.deep": {
"type": "boolean",
"default": true,
"description": "压缩文件夹时是否递归处理子目录"
}
}
}
},
"scripts": {
"prepare": "npm run build",
"build": "tsc",
"postbuild": "node -e \"require('fs').chmodSync('dist/index.js','755')\" && cp config.json dist/config.json",
"watch": "tsc --watch",
"test": "echo \"Error: no test specified\" && exit 1",
"package:vscode": "npm run build && vsce package",
"package:npm": "npm run build && npm pack"
},
"repository": {
"type": "git",
"url": "https://github.com/zlh-GitHub/inke-tinypng.git"
},
"files": [
"dist/",
"config.json",
"install-macos-service.sh"
],
"keywords": ["image", "compress", "png", "jpg", "svg", "tinypng", "cli", "vscode"],
"author": "zhanglinhao",
"license": "ISC",
"dependencies": {
"axios": "^0.21.4",
"cli-progress": "^3.9.1",
"commander": "^8.2.0",
"inquirer": "^8.2.7",
"inquirer-autocomplete-prompt": "^2.0.1",
"lodash": "^4.17.21",
"ora": "^5.4.1",
"p-queue": "^6.6.2",
"promise-retry": "^2.0.1",
"sharp": "^0.34.5",
"svgo": "^4.0.1"
},
"devDependencies": {
"@types/inquirer": "^8.2.12",
"@types/node": "^25.4.0",
"@types/promise-retry": "^1.1.6",
"@types/vscode": "^1.105.0",
"@vscode/vsce": "^3.7.1",
"typescript": "^5.9.3"
},
"volta": {
"node": "24.14.0"
}
}