@cenk1cenk2/md-printer 2.13.1 → 2.15.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/dist/commands/{index.js → index.mjs} +4 -3
- package/dist/constants/{index.js → index.mjs} +2 -2
- package/oclif.manifest.json +1 -1
- package/package.json +9 -9
- package/templates/invoice/template.html.j2 +13 -13
- /package/dist/constants/{file.constants.js → file.constants.mjs} +0 -0
- /package/dist/constants/{template.constants.js → template.constants.mjs} +0 -0
- /package/dist/hooks/{not-found.hook.js → not-found.hook.mjs} +0 -0
- /package/dist/hooks/{update-notifier.hook.js → update-notifier.hook.mjs} +0 -0
- /package/dist/interfaces/commands/{index.js → index.mjs} +0 -0
- /package/dist/interfaces/commands/{run.interface.js → run.interface.mjs} +0 -0
- /package/dist/interfaces/{index.js → index.mjs} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RequiredTemplateFiles, TEMPLATE_DIRECTORY, TemplateFiles } from "../constants/template.constants.
|
|
2
|
-
import { InputFileType, OutputFileType } from "../constants/file.constants.
|
|
3
|
-
import "../constants/index.
|
|
1
|
+
import { RequiredTemplateFiles, TEMPLATE_DIRECTORY, TemplateFiles } from "../constants/template.constants.mjs";
|
|
2
|
+
import { InputFileType, OutputFileType } from "../constants/file.constants.mjs";
|
|
3
|
+
import "../constants/index.mjs";
|
|
4
4
|
import tailwind from "@tailwindcss/postcss";
|
|
5
5
|
import { watch } from "chokidar";
|
|
6
6
|
import graymatter from "gray-matter";
|
|
@@ -88,6 +88,7 @@ var MDPrinter = class extends Command {
|
|
|
88
88
|
return new showdown.Converter().makeHtml(markdown);
|
|
89
89
|
});
|
|
90
90
|
this.tasks.options = { silentRendererCondition: true };
|
|
91
|
+
if (!this.args.file && !this.flags.stdin) throw new Error("Either --stdin or file argument must be provided.");
|
|
91
92
|
}
|
|
92
93
|
async run() {
|
|
93
94
|
this.tasks.add([{ task: async (ctx) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RequiredTemplateFiles, TEMPLATE_DIRECTORY, TemplateFiles } from "./template.constants.
|
|
2
|
-
import { INPUT_FILE_ACCEPTED_TYPES, InputFileType, OUTPUT_FILE_ACCEPTED_TYPES, OutputFileType } from "./file.constants.
|
|
1
|
+
import { RequiredTemplateFiles, TEMPLATE_DIRECTORY, TemplateFiles } from "./template.constants.mjs";
|
|
2
|
+
import { INPUT_FILE_ACCEPTED_TYPES, InputFileType, OUTPUT_FILE_ACCEPTED_TYPES, OutputFileType } from "./file.constants.mjs";
|
|
3
3
|
|
|
4
4
|
export { INPUT_FILE_ACCEPTED_TYPES, InputFileType, OUTPUT_FILE_ACCEPTED_TYPES, OutputFileType, RequiredTemplateFiles, TEMPLATE_DIRECTORY, TemplateFiles };
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cenk1cenk2/md-printer",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.15.0",
|
|
4
4
|
"description": "A markdown printer.",
|
|
5
|
-
"
|
|
5
|
+
"module": "dist/index.mjs",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"repository": "https://gitlab.kilic.dev/utils/md-printer",
|
|
8
8
|
"author": "Cenk Kilic",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"dirname": "md-printer",
|
|
50
50
|
"commands": {
|
|
51
51
|
"strategy": "single",
|
|
52
|
-
"target": "./dist/commands/index.
|
|
52
|
+
"target": "./dist/commands/index.mjs"
|
|
53
53
|
},
|
|
54
54
|
"plugins": [
|
|
55
55
|
"@oclif/plugin-help"
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"topicSeparator": " "
|
|
64
64
|
},
|
|
65
65
|
"engines": {
|
|
66
|
-
"node": ">=
|
|
66
|
+
"node": ">=24.0.0"
|
|
67
67
|
},
|
|
68
68
|
"keywords": [
|
|
69
69
|
"oclif",
|
|
@@ -77,8 +77,7 @@
|
|
|
77
77
|
"@tailwindcss/forms": "^0.5.10",
|
|
78
78
|
"@tailwindcss/postcss": "^4.1.13",
|
|
79
79
|
"@tailwindcss/typography": "^0.5.16",
|
|
80
|
-
"
|
|
81
|
-
"chokidar": "^4.0.3",
|
|
80
|
+
"chokidar": "^5.0.0",
|
|
82
81
|
"fs-extra": "^11.3.1",
|
|
83
82
|
"get-port": "^7.1.0",
|
|
84
83
|
"gray-matter": "^4.0.3",
|
|
@@ -95,6 +94,7 @@
|
|
|
95
94
|
"devDependencies": {
|
|
96
95
|
"@cenk1cenk2/cz-cc": "^2.1.5",
|
|
97
96
|
"@cenk1cenk2/eslint-config": "^3.1.69",
|
|
97
|
+
"@tsconfig/node24": "^24.0.3",
|
|
98
98
|
"@types/config": "^3.3.5",
|
|
99
99
|
"@types/fs-extra": "^11.0.4",
|
|
100
100
|
"@types/node": "^24.3.1",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"@types/showdown": "^2.0.6",
|
|
103
103
|
"eslint": "^9.35.0",
|
|
104
104
|
"execa": "^9.6.0",
|
|
105
|
-
"globby": "^
|
|
105
|
+
"globby": "^16.1.0",
|
|
106
106
|
"lint-staged": "^16.1.6",
|
|
107
107
|
"oclif": "^4.22.18",
|
|
108
108
|
"prettier": "^3.6.2",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"tpm": "^1.4.14",
|
|
113
113
|
"ts-node": "^10.9.2",
|
|
114
114
|
"tsconfig-paths": "^4.2.0",
|
|
115
|
-
"tsdown": "^0.
|
|
115
|
+
"tsdown": "^0.18.0",
|
|
116
116
|
"typescript": "^5.9.2"
|
|
117
117
|
},
|
|
118
118
|
"config": {
|
|
@@ -120,5 +120,5 @@
|
|
|
120
120
|
"path": "./node_modules/@cenk1cenk2/cz-cc"
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
|
-
"packageManager": "pnpm@10.
|
|
123
|
+
"packageManager": "pnpm@10.26.2"
|
|
124
124
|
}
|
|
@@ -173,20 +173,20 @@
|
|
|
173
173
|
</div>
|
|
174
174
|
</div>
|
|
175
175
|
</section>
|
|
176
|
+
<section id="footer" class="grid grid-cols-12">
|
|
177
|
+
<div class="col-span-1 flex flex-col justify-center text-lg font-extrabold text-gray-100">
|
|
178
|
+
<p class="text-vertical">NOTES</p>
|
|
179
|
+
</div>
|
|
180
|
+
<div class="col-span-5 flex flex-col p-4 text-sm leading-tight prose">
|
|
181
|
+
{{ content | safe }}<br />
|
|
182
|
+
</div>
|
|
183
|
+
<div class="col-span-1"></div>
|
|
184
|
+
<div
|
|
185
|
+
class="col-span-5 flex flex-col justify-end text-center m-8 mr-16 p-4 pb-0 border-2 border-gray-50! rounded-xl text-xs text-gray-100 h-36">
|
|
186
|
+
<p>SIGNATURE</p>
|
|
187
|
+
</div>
|
|
188
|
+
</section>
|
|
176
189
|
</div>
|
|
177
|
-
<section id="footer" class="grid grid-cols-12">
|
|
178
|
-
<div class="col-span-1 flex flex-col justify-center text-lg font-extrabold text-gray-100">
|
|
179
|
-
<p class="text-vertical">NOTES</p>
|
|
180
|
-
</div>
|
|
181
|
-
<div class="col-span-5 flex flex-col p-4 text-sm leading-tight prose">
|
|
182
|
-
{{ content }}
|
|
183
|
-
</div>
|
|
184
|
-
<div class="col-span-1"></div>
|
|
185
|
-
<div
|
|
186
|
-
class="col-span-5 flex flex-col justify-end text-center m-8 mr-16 p-4 pb-0 border-2 border-gray-50! rounded-xl text-xs text-gray-100 h-36">
|
|
187
|
-
<p>SIGNATURE</p>
|
|
188
|
-
</div>
|
|
189
|
-
</section>
|
|
190
190
|
</body>
|
|
191
191
|
|
|
192
192
|
</html>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|