@moonwave99/goffre 0.1.5 → 0.1.6

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.
@@ -0,0 +1,18 @@
1
+ //#region \0rolldown/runtime.js
2
+ var __defProp = Object.defineProperty;
3
+ var __exportAll = (all, no_symbols) => {
4
+ let target = {};
5
+ for (var name in all) {
6
+ __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
+ }
11
+ if (!no_symbols) {
12
+ __defProp(target, Symbol.toStringTag, { value: "Module" });
13
+ }
14
+ return target;
15
+ };
16
+
17
+ //#endregion
18
+ export { __exportAll as t };
@@ -0,0 +1,73 @@
1
+ //#region lib/generator.d.ts
2
+ declare function getRandomProjectNames(length: number): string[];
3
+ type WriteOutputParams = {
4
+ basePath: string;
5
+ fileName: string;
6
+ output: string;
7
+ };
8
+ declare function writeOutput({
9
+ basePath,
10
+ fileName,
11
+ output
12
+ }: WriteOutputParams): Promise<void>;
13
+ declare function toMarkdownFile({
14
+ content,
15
+ ...frontMatter
16
+ }: {
17
+ content: string;
18
+ frontMatter: Record<string, unknown>;
19
+ }): string;
20
+ type GeneratePostParams = {
21
+ index: number;
22
+ template?: string;
23
+ slug?: string;
24
+ withBlocks?: boolean;
25
+ };
26
+ declare function generatePost({
27
+ index,
28
+ template,
29
+ slug,
30
+ withBlocks
31
+ }: GeneratePostParams): {
32
+ title: string;
33
+ template: string;
34
+ created_at: Date;
35
+ slug: string;
36
+ cover: {
37
+ url: string;
38
+ caption: string;
39
+ attribution: {
40
+ text: string;
41
+ link: string;
42
+ };
43
+ };
44
+ fileName: string;
45
+ content: string;
46
+ };
47
+ declare function generateProject({
48
+ name,
49
+ index
50
+ }: {
51
+ name: string;
52
+ index: number;
53
+ }): {
54
+ title: string;
55
+ slug: string;
56
+ template: string;
57
+ work_date: Date;
58
+ homepage: string;
59
+ demo: string;
60
+ technologies: string[];
61
+ cover: {
62
+ url: string;
63
+ caption: string;
64
+ attribution: {
65
+ text: string;
66
+ link: string;
67
+ };
68
+ };
69
+ fileName: string;
70
+ content: string;
71
+ };
72
+ //#endregion
73
+ export { generatePost, generateProject, getRandomProjectNames, toMarkdownFile, writeOutput };