-
Notifications
You must be signed in to change notification settings - Fork 4
/
package.json
30 lines (30 loc) · 1.5 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
{
"name": "kubernetes-migrate-book",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"build": "run-s clean gen:md gen:tex replace:tex copy:png copy:pdf gen:dvi gen:dvi gen:pdf",
"clean": "del-cli tex-workspace/article.* !tex-workspace/article.tex tex-workspace/sub !tex-workspace/sub/.gitkeep",
"replace:tex": "node ./scripts/tex-replace.mjs",
"gen:md": "node ./scripts/gen-md.mjs",
"gen:tex": "docker run --rm --volume $(pwd)/tex-workspace:/data pandoc/latex -d pandoc.yaml -r markdown-auto_identifiers --no-highlight",
"gen:dvi": "docker run --rm -v $(pwd)/tex-workspace:/workdir ghcr.io/himenon/texlive-ja-python uplatex -shell-escape article.tex",
"gen:pdf": "docker run --rm -v $(pwd)/tex-workspace:/workdir ghcr.io/himenon/texlive-ja-python dvipdfmx article.dvi",
"sep:pdf": "docker run --rm -v $(pwd):/app -w /app minidocks/poppler pdfseparate gallery.pdf gallery/%d.pdf",
"copy:png": "cpy \"./content/**/*.png\" ./tex-workspace/sub/ --flat",
"copy:pdf": "cpy \"./gallery/*.pdf\" ./tex-workspace/sub/ --flat",
"crop:pdf": "docker run --rm -v $(pwd)/gallery:/data -w /data ghcr.io/himenon/pdf-crop-margins bash -c \"ls -1 *.pdf | grep -v \"cropped.pdf\" | xargs -L 1 pdf-crop-margins -v -p 0 -a -6\""
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"@types/node": "^17.0.36",
"cpy-cli": "^4.1.0",
"del-cli": "^4.0.1",
"gray-matter": "^4.0.3",
"npm-run-all": "^4.1.5",
"zx": "^6.1.0"
}
}