md2pdf-meow/package.json
2024-08-12 17:21:13 +09:00

36 lines
1.4 KiB
JSON

{
"name": "md2pdf-mod",
"version": "1.0.0",
"description": "Convert Markdown documents to PDF (modified version)",
"scripts": {
"build:doc-1": "npx minicat documents/*.md > work/all.md",
"build:doc-2": "npx doctoc --notitle --maxlevel 3 work/all.md",
"build:doc-3": "node scripts/mdit.js work/all.md work/all_md.html",
"build:doc-4": "node scripts/ejs.js template/template.html work/all.html",
"build:doc-5": "npx html-inline work/all.html -b doc -o dist/all.html",
"build:doc-6": "AHFCmd -d dist/all.html -p @PDF -pdfver 1.5 -base \" \" -x 4 -pgbar -o dist/all.pdf",
"build:test": "npx tsx scripts/convert.ts",
"build": "npm run build:doc-1 && npm run build:doc-2 && npm run build:doc-3 && npm run build:doc-4 && npm run build:doc-5 && npm run build:test"
},
"author": "rca",
"license": "MIT",
"devDependencies": {
"anchor-markdown-header": "^0.5.7",
"doctoc": "^1.4.0",
"ejs": "^2.6.1",
"eslint": "^5.16.0",
"html-inline": "^1.2.0",
"htmltidy2": "^0.3.0",
"markdown-it": "^8.4.2",
"markdown-it-implicit-figures": "^0.9.0",
"markdown-it-named-headers": "0.0.4",
"minicat": "^1.0.0",
"tsc": "^2.0.4",
"typescript": "^5.5.4"
},
"dependencies": {
"puppeteer-html-pdf": "^4.0.8",
"tsx": "^4.17.0"
}
}