@cenk1cenk2/md-printer 2.4.2 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/dev.js +1 -1
- package/dist/commands/index.js +51 -45
- package/dist/constants/file.constants.js +1 -2
- package/dist/constants/template.constants.js +1 -2
- package/dist/hooks/not-found.hook.js +1 -2
- package/dist/hooks/update-notifier.hook.js +1 -2
- package/oclif.manifest.json +1 -1
- package/package.json +7 -7
- package/dist/commands/index.js.map +0 -1
- package/dist/constants/file.constants.js.map +0 -1
- package/dist/constants/template.constants.js.map +0 -1
- package/dist/hooks/not-found.hook.js.map +0 -1
- package/dist/hooks/update-notifier.hook.js.map +0 -1
package/bin/dev.js
CHANGED
package/dist/commands/index.js
CHANGED
|
@@ -13,49 +13,56 @@ import { Args, Command, ConfigService, FileSystemService, Flags, JsonParser, Par
|
|
|
13
13
|
|
|
14
14
|
//#region src/commands/index.ts
|
|
15
15
|
var MDPrinter = class extends Command {
|
|
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
|
-
|
|
16
|
+
constructor(..._args) {
|
|
17
|
+
super(..._args);
|
|
18
|
+
this.nunjucks = Nunjucks.configure({
|
|
19
|
+
autoescape: false,
|
|
20
|
+
throwOnUndefined: true,
|
|
21
|
+
trimBlocks: true,
|
|
22
|
+
lstripBlocks: false
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
static {
|
|
26
|
+
this.description = "Generates a PDF from the given markdown file with the selected HTML template.";
|
|
27
|
+
}
|
|
28
|
+
static {
|
|
29
|
+
this.flags = {
|
|
30
|
+
template: Flags.string({
|
|
31
|
+
char: "t",
|
|
32
|
+
default: "default",
|
|
33
|
+
description: "HTML template for the generated PDF file."
|
|
34
|
+
}),
|
|
35
|
+
title: Flags.string({
|
|
36
|
+
char: "T",
|
|
37
|
+
description: "Overwrite document title."
|
|
38
|
+
}),
|
|
39
|
+
browser: Flags.string({
|
|
40
|
+
char: "b",
|
|
41
|
+
description: "Browser path that is going to be used for the PDF generation.",
|
|
42
|
+
default: "/usr/bin/brave"
|
|
43
|
+
}),
|
|
44
|
+
watch: Flags.boolean({
|
|
45
|
+
char: "w",
|
|
46
|
+
description: "Watch the changes on the given file."
|
|
47
|
+
}),
|
|
48
|
+
dev: Flags.boolean({
|
|
49
|
+
char: "d",
|
|
50
|
+
description: "Run with Chrome browser instead of publishing the file."
|
|
51
|
+
})
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
static {
|
|
55
|
+
this.args = {
|
|
56
|
+
file: Args.string({
|
|
57
|
+
description: "File to be processed.",
|
|
58
|
+
required: true
|
|
59
|
+
}),
|
|
60
|
+
output: Args.string({
|
|
61
|
+
description: "Output file that will be generated. Overwrites the one define in front-matter.",
|
|
62
|
+
required: false
|
|
63
|
+
})
|
|
64
|
+
};
|
|
65
|
+
}
|
|
59
66
|
async shouldRunBefore() {
|
|
60
67
|
this.cs = this.app.get(ConfigService);
|
|
61
68
|
this.fs = this.app.get(FileSystemService);
|
|
@@ -181,5 +188,4 @@ var MDPrinter = class extends Command {
|
|
|
181
188
|
};
|
|
182
189
|
|
|
183
190
|
//#endregion
|
|
184
|
-
export { MDPrinter as default };
|
|
185
|
-
//# sourceMappingURL=index.js.map
|
|
191
|
+
export { MDPrinter as default };
|
|
@@ -12,5 +12,4 @@ const RequiredTemplateFiles = [TemplateFiles.SETTINGS];
|
|
|
12
12
|
const TEMPLATE_DIRECTORY = "templates";
|
|
13
13
|
|
|
14
14
|
//#endregion
|
|
15
|
-
export { RequiredTemplateFiles, TEMPLATE_DIRECTORY, TemplateFiles };
|
|
16
|
-
//# sourceMappingURL=template.constants.js.map
|
|
15
|
+
export { RequiredTemplateFiles, TEMPLATE_DIRECTORY, TemplateFiles };
|
|
@@ -4,5 +4,4 @@ import { updateNotifierHook } from "@cenk1cenk2/oclif-common";
|
|
|
4
4
|
var update_notifier_hook_default = updateNotifierHook;
|
|
5
5
|
|
|
6
6
|
//#endregion
|
|
7
|
-
export { update_notifier_hook_default as default };
|
|
8
|
-
//# sourceMappingURL=update-notifier.hook.js.map
|
|
7
|
+
export { update_notifier_hook_default as default };
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cenk1cenk2/md-printer",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"description": "A markdown printer.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"cenk1cenk2"
|
|
71
71
|
],
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@cenk1cenk2/oclif-common": "^6.
|
|
73
|
+
"@cenk1cenk2/oclif-common": "^6.4.0",
|
|
74
74
|
"@listr2/manager": "^3.0.1",
|
|
75
75
|
"@oclif/core": "^4.5.1",
|
|
76
76
|
"@oclif/plugin-help": "^6.2.31",
|
|
@@ -89,24 +89,24 @@
|
|
|
89
89
|
"tailwindcss": "^4.1.11"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
|
-
"@cenk1cenk2/cz-cc": "^2.0
|
|
93
|
-
"@cenk1cenk2/eslint-config": "^3.1.
|
|
92
|
+
"@cenk1cenk2/cz-cc": "^2.1.0",
|
|
93
|
+
"@cenk1cenk2/eslint-config": "^3.1.58",
|
|
94
94
|
"@types/config": "^3.3.5",
|
|
95
95
|
"@types/fs-extra": "^11.0.4",
|
|
96
|
-
"@types/node": "^24.0
|
|
96
|
+
"@types/node": "^24.1.0",
|
|
97
97
|
"@types/nunjucks": "^3.2.6",
|
|
98
98
|
"@types/showdown": "^2.0.6",
|
|
99
99
|
"eslint": "^9.31.0",
|
|
100
100
|
"execa": "^9.6.0",
|
|
101
101
|
"globby": "^14.1.0",
|
|
102
102
|
"lint-staged": "^16.1.2",
|
|
103
|
-
"oclif": "^4.
|
|
103
|
+
"oclif": "^4.22.0",
|
|
104
104
|
"prettier": "^3.6.2",
|
|
105
105
|
"simple-git-hooks": "^2.13.0",
|
|
106
106
|
"theme-colors": "^0.1.0",
|
|
107
107
|
"ts-node": "^10.9.2",
|
|
108
108
|
"tsconfig-paths": "^4.2.0",
|
|
109
|
-
"tsdown": "^0.
|
|
109
|
+
"tsdown": "^0.13.0",
|
|
110
110
|
"typescript": "^5.8.3"
|
|
111
111
|
},
|
|
112
112
|
"config": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["markdown: string","paths: Record<TemplateFiles, string>","ctx: MdPrinterCtx","pdf: PdfOutput"],"sources":["../../src/commands/index.ts"],"sourcesContent":["import tailwind from '@tailwindcss/postcss'\nimport { watch } from 'chokidar'\nimport { default as graymatter } from 'gray-matter'\nimport { mdToPdf } from 'md-to-pdf'\nimport type { PdfConfig } from 'md-to-pdf/dist/lib/config.js'\nimport type { PdfOutput } from 'md-to-pdf/dist/lib/generate-output.js'\nimport Nunjucks from 'nunjucks'\nimport { basename, dirname, extname, join } from 'path'\nimport postcss from 'postcss'\nimport showdown from 'showdown'\n\nimport type { ShouldRunAfterHook, ShouldRunBeforeHook } from '@cenk1cenk2/oclif-common'\nimport { Args, Flags, Command, ConfigService, FileSystemService, ParserService, JsonParser, YamlParser } from '@cenk1cenk2/oclif-common'\nimport { OUTPUT_FILE_ACCEPTED_TYPES, RequiredTemplateFiles, TEMPLATE_DIRECTORY, TemplateFiles } from '@constants'\nimport type { MdPrinterCtx } from '@interfaces'\n\nexport default class MDPrinter extends Command<typeof MDPrinter, MdPrinterCtx> implements ShouldRunBeforeHook, ShouldRunAfterHook {\n static description = 'Generates a PDF from the given markdown file with the selected HTML template.'\n\n static flags = {\n template: Flags.string({\n char: 't',\n default: 'default',\n description: 'HTML template for the generated PDF file.'\n }),\n title: Flags.string({\n char: 'T',\n description: 'Overwrite document title.'\n }),\n browser: Flags.string({\n char: 'b',\n description: 'Browser path that is going to be used for the PDF generation.',\n default: '/usr/bin/brave'\n }),\n watch: Flags.boolean({\n char: 'w',\n description: 'Watch the changes on the given file.'\n }),\n dev: Flags.boolean({\n char: 'd',\n description: 'Run with Chrome browser instead of publishing the file.'\n })\n }\n\n static args = {\n file: Args.string({\n description: 'File to be processed.',\n required: true\n }),\n output: Args.string({\n description: 'Output file that will be generated. Overwrites the one define in front-matter.',\n required: false\n })\n }\n\n private nunjucks = Nunjucks.configure({\n autoescape: false,\n throwOnUndefined: true,\n trimBlocks: true,\n lstripBlocks: false\n })\n private cs: ConfigService\n private fs: FileSystemService\n\n public async shouldRunBefore(): Promise<void> {\n this.cs = this.app.get(ConfigService)\n this.fs = this.app.get(FileSystemService)\n\n await this.app.get(ParserService).register(JsonParser, YamlParser)\n\n this.nunjucks.addFilter('markdown_to_html', (markdown: string) => {\n return new showdown.Converter().makeHtml(markdown)\n })\n this.tasks.options = { silentRendererCondition: true }\n }\n\n public async run(): Promise<void> {\n this.tasks.add([\n {\n task: async(ctx): Promise<void> => {\n const file = join(process.cwd(), this.args.file)\n\n if (!this.fs.exists(file)) {\n throw new Error(`File does not exists: ${file}`)\n }\n\n this.logger.info('Loading file: %s', file)\n\n ctx.file = file\n switch (extname(ctx.file)) {\n case '.md': {\n const data = graymatter.read(ctx.file)\n\n ctx.content = await this.fs.read(file)\n ctx.content = data.content\n\n ctx.metadata = data.data\n\n break\n }\n\n case '.yml': {\n ctx.content = await this.fs.read(file)\n\n ctx.metadata = await this.app.get(ParserService).parse(ctx.file, ctx.content)\n\n break\n }\n\n default:\n throw new Error('File type is not accepted.')\n }\n }\n },\n\n {\n task: async(ctx): Promise<void> => {\n const template = ctx.metadata?.template ?? this.flags.template\n\n ctx.templates = new RegExp(/\\.\\.?\\//).test(template) ? join(process.cwd(), template) : join(this.config.root, TEMPLATE_DIRECTORY, template)\n\n this.logger.info('Loading template: %s from %s', template, ctx.templates)\n\n await Promise.all(\n RequiredTemplateFiles.map(async(file) => {\n const current = join(ctx.templates, file)\n\n if (!this.fs.exists(current)) {\n throw new Error(`Template does not exists: ${current}`)\n }\n })\n )\n\n const paths: Record<TemplateFiles, string> = {\n [TemplateFiles.SETTINGS]: join(ctx.templates, TemplateFiles.SETTINGS),\n [TemplateFiles.CSS]: join(ctx.templates, TemplateFiles.CSS),\n [TemplateFiles.TAILWIND_CSS]: join(ctx.templates, TemplateFiles.TAILWIND_CSS),\n [TemplateFiles.HEADER]: join(ctx.templates, TemplateFiles.HEADER),\n [TemplateFiles.FOOTER]: join(ctx.templates, TemplateFiles.FOOTER),\n [TemplateFiles.TEMPLATE]: join(ctx.templates, TemplateFiles.TEMPLATE)\n }\n\n ctx.options = await this.cs.extend<PdfConfig>([\n paths[TemplateFiles.SETTINGS],\n {\n dest: this.args?.output ?? ctx.metadata?.dest ?? `${basename(this.args.file, extname(this.args.file))}.pdf`,\n document_title: ctx.metadata?.document_title ?? this.flags.title ?? this.args.file,\n // https://github.com/simonhaenisch/md-to-pdf/issues/247\n launch_options: {\n executablePath: this.flags.browser\n // headless: true\n }\n }\n ])\n\n this.logger.debug('Options: %o', ctx.options)\n\n if (this.fs.exists(paths[TemplateFiles.HEADER])) {\n this.logger.debug('Header exists for template.')\n\n ctx.options.pdf_options.headerTemplate = await this.fs.read(paths[TemplateFiles.HEADER])\n }\n\n if (this.fs.exists(paths[TemplateFiles.FOOTER])) {\n this.logger.debug('Footer exists for template.')\n\n ctx.options.pdf_options.footerTemplate = await this.fs.read(paths[TemplateFiles.FOOTER])\n }\n\n if (this.fs.exists(paths[TemplateFiles.TEMPLATE])) {\n this.logger.debug('Design template exists for template.')\n\n ctx.template = await this.fs.read(paths[TemplateFiles.TEMPLATE])\n\n this.logger.debug('Metadata: %o', ctx.metadata)\n }\n\n if (this.fs.exists(paths[TemplateFiles.CSS])) {\n this.logger.debug('CSS exists for template.')\n ctx.options.css = await this.fs.read(paths[TemplateFiles.CSS])\n }\n\n if (this.fs.exists(paths[TemplateFiles.TAILWIND_CSS])) {\n this.logger.debug('Tailwind CSS exists for template: %s -> %s', paths[TemplateFiles.TAILWIND_CSS])\n\n ctx.options.css = await postcss([\n tailwind({\n // content: [{ raw: ctx.template, extension: 'html' }],\n base: ctx.templates\n })\n ])\n .process(await this.fs.read(paths[TemplateFiles.TAILWIND_CSS]), { from: paths[TemplateFiles.TAILWIND_CSS] })\n .then((result) => result.css)\n }\n }\n },\n\n {\n task: async(ctx): Promise<void> => {\n if (this.flags.dev) {\n ctx.options.devtools = true\n\n this.logger.info('Running in dev mode.')\n }\n }\n }\n ])\n }\n\n public async shouldRunAfter(ctx: MdPrinterCtx): Promise<void> {\n if (this.flags.watch) {\n this.logger.info('Running in watch mode.')\n\n watch([TEMPLATE_DIRECTORY, this.args.file, join(ctx.templates, '**/*')]).on('change', async() => {\n await this.run()\n await this.runTasks()\n\n this.logger.info('Waiting for the next change.')\n\n return this.runMd2Pdf(ctx)\n })\n }\n\n return this.runMd2Pdf(ctx)\n }\n\n private async runMd2Pdf(ctx: MdPrinterCtx): Promise<void> {\n let pdf: PdfOutput\n\n if (ctx.template) {\n this.logger.info('Rendering as template.')\n pdf = await mdToPdf({ content: this.nunjucks.renderString(ctx.template, { ...(ctx.metadata ?? {}), content: ctx.content }) }, ctx.options)\n } else {\n this.logger.info('Rendering as plain file.')\n pdf = await mdToPdf({ content: ctx.content }, ctx.options)\n }\n\n const output = pdf.filename\n\n await this.fs.mkdir(dirname(output))\n\n if (!output) {\n throw new Error('Output should either be defined with the variable or front-matter.')\n } else if (!OUTPUT_FILE_ACCEPTED_TYPES.includes(extname(output))) {\n throw new Error(`Output file should be ending with the extension: ${OUTPUT_FILE_ACCEPTED_TYPES.join(', ')} -> current: ${extname(output)}`)\n }\n\n this.logger.info('Output file will be: %s', output)\n\n if (pdf) {\n this.logger.info('Writing file to output: %s', output)\n\n await this.fs.write(output, pdf.content)\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AAgBA,IAAqB,YAArB,cAAuC,QAA2F;CAChI,OAAO,cAAc;CAErB,OAAO,QAAQ;EACb,UAAU,MAAM,OAAO;GACrB,MAAM;GACN,SAAS;GACT,aAAa;EACd,EAAC;EACF,OAAO,MAAM,OAAO;GAClB,MAAM;GACN,aAAa;EACd,EAAC;EACF,SAAS,MAAM,OAAO;GACpB,MAAM;GACN,aAAa;GACb,SAAS;EACV,EAAC;EACF,OAAO,MAAM,QAAQ;GACnB,MAAM;GACN,aAAa;EACd,EAAC;EACF,KAAK,MAAM,QAAQ;GACjB,MAAM;GACN,aAAa;EACd,EAAC;CACH;CAED,OAAO,OAAO;EACZ,MAAM,KAAK,OAAO;GAChB,aAAa;GACb,UAAU;EACX,EAAC;EACF,QAAQ,KAAK,OAAO;GAClB,aAAa;GACb,UAAU;EACX,EAAC;CACH;CAED,AAAQ,WAAW,SAAS,UAAU;EACpC,YAAY;EACZ,kBAAkB;EAClB,YAAY;EACZ,cAAc;CACf,EAAC;CACF,AAAQ;CACR,AAAQ;CAER,MAAa,kBAAiC;AAC5C,OAAK,KAAK,KAAK,IAAI,IAAI,cAAc;AACrC,OAAK,KAAK,KAAK,IAAI,IAAI,kBAAkB;AAEzC,QAAM,KAAK,IAAI,IAAI,cAAc,CAAC,SAAS,YAAY,WAAW;AAElE,OAAK,SAAS,UAAU,oBAAoB,CA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IAAI,YAAY,CAAE;IAAG,SAAS,IAAI;GAAS,EAAC,CAAE,GAAE,IAAI,QAAQ;EAC3I,OAAM;AACL,QAAK,OAAO,KAAK,2BAA2B;AAC5C,SAAM,MAAM,QAAQ,EAAE,SAAS,IAAI,QAAS,GAAE,IAAI,QAAQ;EAC3D;EAED,MAAM,SAAS,IAAI;AAEnB,QAAM,KAAK,GAAG,MAAM,QAAQ,OAAO,CAAC;AAEpC,OAAK,OACH,OAAM,IAAI,MAAM;YACN,2BAA2B,SAAS,QAAQ,OAAO,CAAC,CAC9D,OAAM,IAAI,MAAM,CAAC,iDAAiD,EAAE,2BAA2B,KAAK,KAAK,CAAC,aAAa,EAAE,QAAQ,OAAO,EAAE;AAG5I,OAAK,OAAO,KAAK,2BAA2B,OAAO;AAEnD,MAAI,KAAK;AACP,QAAK,OAAO,KAAK,8BAA8B,OAAO;AAEtD,SAAM,KAAK,GAAG,MAAM,QAAQ,IAAI,QAAQ;EACzC;CACF;AACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file.constants.js","names":[],"sources":["../../src/constants/file.constants.ts"],"sourcesContent":["export const OUTPUT_FILE_ACCEPTED_TYPES = ['.pdf']\n"],"mappings":";AAAA,MAAa,6BAA6B,CAAC,MAAO"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"template.constants.js","names":[],"sources":["../../src/constants/template.constants.ts"],"sourcesContent":["export enum TemplateFiles {\n FOOTER = 'footer.html',\n HEADER = 'header.html',\n TEMPLATE = 'template.html.j2',\n TAILWIND_CSS = 'tailwind.css',\n CSS = 'main.css',\n SETTINGS = 'settings.json'\n}\n\nexport const RequiredTemplateFiles = [TemplateFiles.SETTINGS]\n\nexport const TEMPLATE_DIRECTORY = 'templates'\n"],"mappings":";AAAA,IAAY,0DAAL;AACL;AACA;AACA;AACA;AACA;AACA;;AACD;AAED,MAAa,wBAAwB,CAAC,cAAc,QAAS;AAE7D,MAAa,qBAAqB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"not-found.hook.js","names":[],"sources":["../../src/hooks/not-found.hook.ts"],"sourcesContent":["import { notFoundHook } from '@cenk1cenk2/oclif-common'\n\nexport default notFoundHook\n"],"mappings":";;;AAEA,6BAAe"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-notifier.hook.js","names":[],"sources":["../../src/hooks/update-notifier.hook.ts"],"sourcesContent":["import { updateNotifierHook } from '@cenk1cenk2/oclif-common'\n\nexport default updateNotifierHook\n"],"mappings":";;;AAEA,mCAAe"}
|