-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
73 lines (73 loc) · 2.17 KB
/
package.json
File metadata and controls
73 lines (73 loc) · 2.17 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
{
"name": "epub-optimizer",
"version": "1.8.1",
"description": "Optimize EPUB files by compressing HTML, CSS, images, fonts and recompressing the archive",
"main": "dist/optimize-epub.js",
"type": "module",
"scripts": {
"# Build commands": "# Complete pipeline processes",
"build": "pnpm run build:prod",
"build:dev": "tsc",
"build:prod": "rm -rf dist && tsc -p tsconfig.prod.json && pnpm run minify:safe",
"minify:safe": "node --loader ts-node/esm scripts/minify-dist.ts",
"optimize": "node dist/src/pipeline.js",
"optimize:clean": "node dist/src/pipeline.js --clean",
"cleanup": "rm -rf temp_epub",
"# Dev tools": "# Development utilities",
"test": "vitest",
"test:run": "vitest run",
"test:coverage": "vitest run --coverage",
"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": {
"@types/yazl": "^3.3.0",
"cheerio": "^1.1.2",
"clean-css": "^5.3.3",
"fontmin": "^1.1.1",
"fs-extra": "^11.3.2",
"glob": "^13.0.0",
"html-minifier-terser": "^7.2.0",
"path": "^0.12.7",
"sharp": "^0.34.5",
"svgo": "^4.0.0",
"unzipper": "^0.12.3",
"yargs": "^18.0.0",
"yazl": "^3.3.1"
},
"engines": {
"node": ">=14.0.0"
},
"keywords": [
"epub",
"optimizer",
"compression",
"minification",
"ebook"
],
"devDependencies": {
"@eslint/js": "^9.39.1",
"@types/clean-css": "^4.2.11",
"@types/fs-extra": "^11.0.4",
"@types/html-minifier-terser": "^7.0.2",
"@types/node": "^24.10.2",
"@types/unzipper": "^0.10.11",
"@types/yargs": "^17.0.35",
"@typescript-eslint/eslint-plugin": "^8.49.0",
"@typescript-eslint/parser": "^8.49.0",
"@vitest/coverage-v8": "^4.0.15",
"@vitest/ui": "^4.0.15",
"eslint": "^9.39.1",
"eslint-config-prettier": "^10.1.8",
"prettier": "^3.7.4",
"terser": "^5.44.1",
"ts-node": "^10.9.2",
"typescript": "^5.9.3",
"typescript-eslint": "^8.49.0",
"vitest": "^4.0.15"
}
}