@cenk1cenk2/md-printer 2.15.3 → 2.15.5
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/dist/commands/index.mjs
CHANGED
|
@@ -168,9 +168,9 @@ var MDPrinter = class extends Command {
|
|
|
168
168
|
join(ctx.templates, "**/*")
|
|
169
169
|
]).on("change", async () => {
|
|
170
170
|
await this.run();
|
|
171
|
-
const ctx
|
|
171
|
+
const ctx = await this.runTasks();
|
|
172
172
|
this.logger.info("Waiting for the next change.");
|
|
173
|
-
return this.runMd2Pdf(ctx
|
|
173
|
+
return this.runMd2Pdf(ctx).catch((err) => {
|
|
174
174
|
this.logger.error(err);
|
|
175
175
|
});
|
|
176
176
|
});
|
|
@@ -5,16 +5,16 @@ const INPUT_FILE_ACCEPTED_TYPES = [
|
|
|
5
5
|
".yml",
|
|
6
6
|
".yaml"
|
|
7
7
|
];
|
|
8
|
-
let OutputFileType = /* @__PURE__ */ function(OutputFileType
|
|
9
|
-
OutputFileType
|
|
10
|
-
OutputFileType
|
|
11
|
-
return OutputFileType
|
|
8
|
+
let OutputFileType = /* @__PURE__ */ function(OutputFileType) {
|
|
9
|
+
OutputFileType["PDF"] = "pdf";
|
|
10
|
+
OutputFileType["HTML"] = "html";
|
|
11
|
+
return OutputFileType;
|
|
12
12
|
}({});
|
|
13
|
-
let InputFileType = /* @__PURE__ */ function(InputFileType
|
|
14
|
-
InputFileType
|
|
15
|
-
InputFileType
|
|
16
|
-
InputFileType
|
|
17
|
-
return InputFileType
|
|
13
|
+
let InputFileType = /* @__PURE__ */ function(InputFileType) {
|
|
14
|
+
InputFileType["MARKDOWN"] = "md";
|
|
15
|
+
InputFileType["YAML"] = "yaml";
|
|
16
|
+
InputFileType["YAML_SHORT"] = "yml";
|
|
17
|
+
return InputFileType;
|
|
18
18
|
}({});
|
|
19
19
|
|
|
20
20
|
//#endregion
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
//#region src/constants/template.constants.ts
|
|
2
|
-
let TemplateFiles = /* @__PURE__ */ function(TemplateFiles
|
|
3
|
-
TemplateFiles
|
|
4
|
-
TemplateFiles
|
|
5
|
-
TemplateFiles
|
|
6
|
-
TemplateFiles
|
|
7
|
-
TemplateFiles
|
|
8
|
-
TemplateFiles
|
|
9
|
-
return TemplateFiles
|
|
2
|
+
let TemplateFiles = /* @__PURE__ */ function(TemplateFiles) {
|
|
3
|
+
TemplateFiles["FOOTER"] = "footer.html";
|
|
4
|
+
TemplateFiles["HEADER"] = "header.html";
|
|
5
|
+
TemplateFiles["TEMPLATE"] = "template.html.j2";
|
|
6
|
+
TemplateFiles["TAILWIND_CSS"] = "tailwind.css";
|
|
7
|
+
TemplateFiles["CSS"] = "main.css";
|
|
8
|
+
TemplateFiles["SETTINGS"] = "settings.json";
|
|
9
|
+
return TemplateFiles;
|
|
10
10
|
}({});
|
|
11
11
|
const RequiredTemplateFiles = [TemplateFiles.SETTINGS];
|
|
12
12
|
const TEMPLATE_DIRECTORY = "templates";
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cenk1cenk2/md-printer",
|
|
3
|
-
"version": "2.15.
|
|
3
|
+
"version": "2.15.5",
|
|
4
4
|
"description": "A markdown printer.",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"type": "module",
|
|
@@ -70,55 +70,55 @@
|
|
|
70
70
|
"cenk1cenk2"
|
|
71
71
|
],
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@cenk1cenk2/oclif-common": "^7.0.
|
|
74
|
-
"@listr2/manager": "^4.
|
|
75
|
-
"@oclif/core": "^4.
|
|
76
|
-
"@oclif/plugin-help": "^6.2.
|
|
77
|
-
"@tailwindcss/forms": "^0.5.
|
|
78
|
-
"@tailwindcss/postcss": "^4.1.
|
|
79
|
-
"@tailwindcss/typography": "^0.5.
|
|
73
|
+
"@cenk1cenk2/oclif-common": "^7.0.7",
|
|
74
|
+
"@listr2/manager": "^4.1.0",
|
|
75
|
+
"@oclif/core": "^4.8.0",
|
|
76
|
+
"@oclif/plugin-help": "^6.2.37",
|
|
77
|
+
"@tailwindcss/forms": "^0.5.11",
|
|
78
|
+
"@tailwindcss/postcss": "^4.1.18",
|
|
79
|
+
"@tailwindcss/typography": "^0.5.19",
|
|
80
80
|
"chokidar": "^5.0.0",
|
|
81
|
-
"fs-extra": "^11.3.
|
|
81
|
+
"fs-extra": "^11.3.3",
|
|
82
82
|
"get-port": "^7.1.0",
|
|
83
83
|
"gray-matter": "^4.0.3",
|
|
84
|
-
"listr2": "^10.
|
|
85
|
-
"md-to-pdf": "^5.2.
|
|
84
|
+
"listr2": "^10.1.0",
|
|
85
|
+
"md-to-pdf": "^5.2.5",
|
|
86
86
|
"nunjucks": "^3.2.4",
|
|
87
87
|
"postcss": "^8.5.6",
|
|
88
|
-
"puppeteer": "^24.
|
|
88
|
+
"puppeteer": "^24.37.2",
|
|
89
89
|
"showdown": "^2.1.0",
|
|
90
90
|
"source-map-support": "^0.5.21",
|
|
91
|
-
"tailwindcss": "^4.1.
|
|
92
|
-
"yaml": "^2.8.
|
|
91
|
+
"tailwindcss": "^4.1.18",
|
|
92
|
+
"yaml": "^2.8.2"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
|
-
"@cenk1cenk2/cz-cc": "^2.
|
|
96
|
-
"@cenk1cenk2/eslint-config": "^3.1.
|
|
97
|
-
"@tsconfig/node24": "^24.0.
|
|
95
|
+
"@cenk1cenk2/cz-cc": "^2.2.3",
|
|
96
|
+
"@cenk1cenk2/eslint-config": "^3.1.72",
|
|
97
|
+
"@tsconfig/node24": "^24.0.4",
|
|
98
98
|
"@types/config": "^3.3.5",
|
|
99
99
|
"@types/fs-extra": "^11.0.4",
|
|
100
|
-
"@types/node": "^24.
|
|
100
|
+
"@types/node": "^24.10.11",
|
|
101
101
|
"@types/nunjucks": "^3.2.6",
|
|
102
102
|
"@types/showdown": "^2.0.6",
|
|
103
|
-
"eslint": "^9.
|
|
104
|
-
"execa": "^9.6.
|
|
103
|
+
"eslint": "^9.39.2",
|
|
104
|
+
"execa": "^9.6.1",
|
|
105
105
|
"globby": "^16.1.0",
|
|
106
|
-
"lint-staged": "^16.
|
|
107
|
-
"oclif": "^4.22.
|
|
108
|
-
"prettier": "^3.
|
|
106
|
+
"lint-staged": "^16.2.7",
|
|
107
|
+
"oclif": "^4.22.73",
|
|
108
|
+
"prettier": "^3.8.1",
|
|
109
109
|
"prettier-plugin-jinja-template": "^2.1.0",
|
|
110
110
|
"simple-git-hooks": "^2.13.1",
|
|
111
111
|
"theme-colors": "^0.1.0",
|
|
112
112
|
"tpm": "^1.4.14",
|
|
113
113
|
"ts-node": "^10.9.2",
|
|
114
114
|
"tsconfig-paths": "^4.2.0",
|
|
115
|
-
"tsdown": "^0.
|
|
116
|
-
"typescript": "^5.9.
|
|
115
|
+
"tsdown": "^0.20.3",
|
|
116
|
+
"typescript": "^5.9.3"
|
|
117
117
|
},
|
|
118
118
|
"config": {
|
|
119
119
|
"commitizen": {
|
|
120
120
|
"path": "./node_modules/@cenk1cenk2/cz-cc"
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
|
-
"packageManager": "pnpm@10.
|
|
123
|
+
"packageManager": "pnpm@10.29.1"
|
|
124
124
|
}
|