-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackage.json
More file actions
93 lines (93 loc) · 3.1 KB
/
Copy pathpackage.json
File metadata and controls
93 lines (93 loc) · 3.1 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
{
"name": "epub-optimizer",
"version": "3.5.0",
"description": "Optimize EPUB files by compressing HTML, CSS, images and recompressing the archive",
"main": "dist/src/index.js",
"type": "module",
"bin": {
"epub-optimizer": "dist/src/pipeline.js"
},
"files": [
"dist",
"README.md",
"LICENSE"
],
"packageManager": "pnpm@10.30.3+sha512.c961d1e0a2d8e354ecaa5166b822516668b7f44cb5bd95122d590dd81922f606f5473b6d23ec4a5be05e7fcd18e8488d47d978bbe981872f1145d06e9a740017",
"scripts": {
"# Build commands": "# Complete pipeline processes",
"build": "pnpm run build:prod",
"build:dev": "tsc",
"build:prod": "node --experimental-strip-types scripts/clean-path.ts dist && tsc -p tsconfig.prod.json && pnpm run minify:safe",
"minify:safe": "node --experimental-strip-types scripts/minify-dist.ts",
"optimize": "node dist/src/pipeline.js",
"optimize:author": "node dist/src/pipeline.js --preset author",
"optimize:repair": "node dist/src/pipeline.js --repair",
"optimize:lossless": "node dist/src/pipeline.js --preset lossless",
"optimize:clean": "node dist/src/pipeline.js --clean",
"cleanup": "node --experimental-strip-types scripts/clean-path.ts temp_epub",
"# Dev tools": "# Development utilities",
"test": "vitest",
"test:run": "vitest run",
"test:coverage": "vitest run --coverage",
"test:e2e": "node --experimental-strip-types scripts/e2e-epubcheck.ts",
"test:docker": "node --experimental-strip-types scripts/docker-e2e.ts",
"release:check": "node --experimental-strip-types scripts/validate-release.ts",
"release:prepare": "node --experimental-strip-types scripts/prepare-release.ts",
"lint": "eslint src scripts --ext .ts",
"lint:fix": "eslint src scripts --ext .ts --fix",
"format": "prettier --write \"**/*.{ts,json,md}\"",
"format:check": "prettier --check \"**/*.{ts,json,md}\""
},
"author": "kiki-le-singe",
"license": "MIT",
"dependencies": {
"cheerio": "^1.2.0",
"clean-css": "^5.3.3",
"fs-extra": "^11.3.4",
"html-minifier-terser": "^7.2.0",
"p-limit": "^7.3.0",
"sharp": "^0.34.5",
"svgo": "^4.0.1",
"terser": "^5.46.2",
"unzipper": "^0.12.3",
"yargs": "^18.0.0",
"yazl": "^3.3.1"
},
"engines": {
"node": ">=22"
},
"pnpm": {
"overrides": {
"brace-expansion@5.0.5": "5.0.6",
"vite": "^7.3.5"
}
},
"keywords": [
"epub",
"optimizer",
"compression",
"minification",
"ebook"
],
"devDependencies": {
"@eslint/js": "^10.0.1",
"@types/clean-css": "^4.2.11",
"@types/fs-extra": "^11.0.4",
"@types/html-minifier-terser": "^7.0.2",
"@types/node": "^24.12.2",
"@types/unzipper": "^0.10.11",
"@types/yargs": "^17.0.35",
"@types/yazl": "^3.3.1",
"@typescript-eslint/eslint-plugin": "^8.60.1",
"@typescript-eslint/parser": "^8.60.1",
"@vitest/coverage-v8": "^4.1.8",
"@vitest/ui": "^4.1.8",
"eslint": "^10.2.1",
"eslint-config-prettier": "^10.1.8",
"prettier": "^3.8.3",
"typescript": "^6.0.3",
"typescript-eslint": "^8.60.1",
"vite": "^7.3.5",
"vitest": "^4.1.8"
}
}