-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
65 lines (65 loc) · 2.48 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
{
"name": "tinify-client",
"version": "5.1.2",
"description": "A CLI to compress your images not only intelligently but also to the EXTREME!",
"files": [
"dist"
],
"main": "dist/index.js",
"bin": {
"tinify-client": "dist/cli.js",
"tinify": "dist/cli.js"
},
"scripts": {
"prepublish": "npm run build && npm run test:compiled",
"build": "rm -rf ./dist && time tsc",
"dev": "tsc --watch",
"preversion": "npm run test",
"test": "jest && npm run compress:dir:dry-run && npm run compress:base64 && npm run compress:no-base64 && npm run base64 && npm run test:quota && npm run test:set-key",
"test:quota": "npm run tinify:dev -- --show-quota",
"test:set-key": "npm run tinify:dev -- set-key hello-world",
"test:compiled": "npm run compress:multiple:compiled",
"compress:multiple:compiled": "npm run tinify -- alipay-logo.png hejiong20200401165556815.jpg --max-count=1",
"tinify": "node dist/cli",
"tinify:dev": "ts-node src/cli",
"test:help": "ts-node src/cli -h",
"compress:multiple": "npm run tinify:dev -- alipay-logo.png hejiong20200401165556815.jpg -m 1",
"compress:dir:dry-run": "npm run tinify:dev -- ./ -m 1 --in-place --dry-run",
"compress:base64": "LANG=zh-CN npm run tinify:dev -- https://gw.alipayobjects.com/mdn/member_frontWeb/afts/img/A*h7o9Q4g2KiUAAAAAAAAAAABkARQnAQ -m 1 -o ./ --open-dir-after-compressed false",
"compress:no-base64": "npm run tinify:dev -- https://gw.alipayobjects.com/mdn/member_frontWeb/afts/img/A*h7o9Q4g2KiUAAAAAAAAAAABkARQnAQ --output ./alipay-logo.png -no-base64 -m 1 --open-dir-after-compressed false",
"base64": "LANG=zh-CN npm run tinify:dev -- base64 https://gw.alipayobjects.com/mdn/member_frontWeb/afts/img/A*h7o9Q4g2KiUAAAAAAAAAAABkARQnAQ"
},
"keywords": [
"tinify",
"compress",
"optimize",
"tinypng",
"tinyjpg",
"picture",
"image"
],
"author": "",
"homepage": "https://github.com/legend80s/tinify-client",
"repository": {
"type": "git",
"url": "git+https://github.com/legend80s/tinify-client.git"
},
"license": "MIT",
"dependencies": {
"@legend80s/image-to-base64": "^1.0.0",
"cli-aid": "^6.2.0",
"clipboardy": "^2.3.0",
"fast-glob": "^3.2.4",
"ora": "^5.0.0",
"tinify": "^1.6.0-beta.2"
},
"devDependencies": {
"@types/jest": "^26.0.15",
"git-commit-msg-linter": "^2.4.4",
"jest": "^26.6.1",
"tinify-client": "^3.1.1",
"ts-jest": "^26.4.3",
"ts-node": "^9.0.0",
"typescript": "^4.0.5"
}
}