@batijs/core 0.0.499 → 0.0.501
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/index.d.ts +1 -30
- package/dist/index.js +412 -419
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -88,34 +88,6 @@ declare class MarkdownV2 implements StringTransformer {
|
|
|
88
88
|
finalize(): string;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
declare function h1(text: string): string;
|
|
92
|
-
declare function h2(text: string): string;
|
|
93
|
-
declare function h3(text: string): string;
|
|
94
|
-
declare function bold(text: string): string;
|
|
95
|
-
declare function italic(text: string): string;
|
|
96
|
-
declare function link(href: string, text?: string): string;
|
|
97
|
-
declare function tick(text: string): string;
|
|
98
|
-
declare function code(text: string, lang?: string): string;
|
|
99
|
-
declare function parseReadme(text: string | undefined): Readme;
|
|
100
|
-
declare class Readme {
|
|
101
|
-
private contents;
|
|
102
|
-
constructor(contents: string[]);
|
|
103
|
-
addIntro(content: string): void;
|
|
104
|
-
addTodo(content: string): void;
|
|
105
|
-
addAbout(content: string): void;
|
|
106
|
-
finalize(): string;
|
|
107
|
-
}
|
|
108
|
-
declare const markdown: {
|
|
109
|
-
h1: typeof h1;
|
|
110
|
-
h2: typeof h2;
|
|
111
|
-
h3: typeof h3;
|
|
112
|
-
link: typeof link;
|
|
113
|
-
tick: typeof tick;
|
|
114
|
-
code: typeof code;
|
|
115
|
-
bold: typeof bold;
|
|
116
|
-
italic: typeof italic;
|
|
117
|
-
};
|
|
118
|
-
|
|
119
91
|
interface PackageJsonDeps {
|
|
120
92
|
dependencies?: Record<string, string>;
|
|
121
93
|
devDependencies?: Record<string, string>;
|
|
@@ -166,7 +138,6 @@ declare class PackageJsonTransformer<U extends PackageJsonDeps> implements Strin
|
|
|
166
138
|
private removeDependency;
|
|
167
139
|
}
|
|
168
140
|
|
|
169
|
-
declare function loadReadme({ readfile }: TransformerProps): Promise<Readme>;
|
|
170
141
|
declare function loadMarkdown({ readfile }: TransformerProps): Promise<MarkdownV2>;
|
|
171
142
|
declare function loadAsJson({ readfile, source, target }: TransformerProps): Promise<any>;
|
|
172
143
|
declare function loadPackageJson<U extends PackageJsonDeps>({ readfile, source, target }: TransformerProps, scopedPackageJson: U): Promise<PackageJsonTransformer<U>>;
|
|
@@ -203,4 +174,4 @@ declare function getVersion(): {
|
|
|
203
174
|
|
|
204
175
|
declare function appendToEnv(envContent: string | undefined | null, key: string, value: unknown, comment?: string): string;
|
|
205
176
|
|
|
206
|
-
export { type ContentGetter, type FileContext, MarkdownV2, type PackageJson,
|
|
177
|
+
export { type ContentGetter, type FileContext, MarkdownV2, type PackageJson, type StringTransformer, type Transformer, type TransformerProps, type VikeMeta, appendToEnv, formatCode, getArgs, getVersion, loadAsJson, loadAsMagicast, loadMarkdown, loadPackageJson, loadRelativeFileAsMagicast, loadYaml, packageManager, parseMarkdown, transformAndFormat, withIcon };
|