@tsed/cli-core 6.1.13 → 6.1.15
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/lib/esm/services/index.js +0 -2
- package/lib/types/services/index.d.ts +0 -2
- package/package.json +2 -8
- package/lib/esm/services/CliRunScript.js +0 -22
- package/lib/esm/services/Renderer.js +0 -162
- package/lib/esm/utils/hbs/array.js +0 -515
- package/lib/esm/utils/hbs/collection.js +0 -60
- package/lib/esm/utils/hbs/comparison.js +0 -431
- package/lib/esm/utils/hbs/index.js +0 -11
- package/lib/esm/utils/hbs/object.js +0 -236
- package/lib/esm/utils/hbs/switch.js +0 -10
- package/lib/esm/utils/renderer/insertAfter.js +0 -12
- package/lib/esm/utils/renderer/insertImport.js +0 -11
- package/lib/types/services/CliRunScript.d.ts +0 -3
- package/lib/types/services/Renderer.d.ts +0 -44
- package/lib/types/utils/hbs/array.d.ts +0 -1
- package/lib/types/utils/hbs/collection.d.ts +0 -1
- package/lib/types/utils/hbs/comparison.d.ts +0 -1
- package/lib/types/utils/hbs/index.d.ts +0 -1
- package/lib/types/utils/hbs/object.d.ts +0 -1
- package/lib/types/utils/hbs/switch.d.ts +0 -1
- package/lib/types/utils/renderer/insertAfter.d.ts +0 -1
- package/lib/types/utils/renderer/insertImport.d.ts +0 -1
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import "../utils/hbs/index.js";
|
|
2
|
-
import { Observable } from "rxjs";
|
|
3
|
-
import { CliFs } from "./CliFs.js";
|
|
4
|
-
export interface RenderOptions {
|
|
5
|
-
path: string;
|
|
6
|
-
templateDir: string;
|
|
7
|
-
rootDir: string;
|
|
8
|
-
output: string;
|
|
9
|
-
baseDir: string;
|
|
10
|
-
basename: string;
|
|
11
|
-
replaces?: string[];
|
|
12
|
-
}
|
|
13
|
-
export declare abstract class Renderer {
|
|
14
|
-
templateDir: string;
|
|
15
|
-
readonly fs: CliFs;
|
|
16
|
-
readonly cache: Set<string>;
|
|
17
|
-
abstract get rootDir(): string;
|
|
18
|
-
loadPartials(cwd: string): Promise<void>;
|
|
19
|
-
render(path: string, data: any, options?: Partial<RenderOptions>): Promise<void>;
|
|
20
|
-
renderAll(paths: (string | RenderOptions)[], data: any, options?: Partial<RenderOptions>): Observable<unknown>;
|
|
21
|
-
write(content: string, options: any): Promise<void>;
|
|
22
|
-
templateExists(path: string, options?: Partial<RenderOptions>): boolean;
|
|
23
|
-
scan(pattern: string[], options?: any): Promise<string[]>;
|
|
24
|
-
relativeFrom(path: string): string;
|
|
25
|
-
update(path: string, actions: {
|
|
26
|
-
type?: string;
|
|
27
|
-
content: string;
|
|
28
|
-
pattern?: RegExp;
|
|
29
|
-
}[]): Promise<void>;
|
|
30
|
-
protected mapOptions(path: string, options: Partial<RenderOptions>): {
|
|
31
|
-
output: string;
|
|
32
|
-
templateDir: string;
|
|
33
|
-
rootDir: string;
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
export declare class RootRendererService extends Renderer {
|
|
37
|
-
get rootDir(): string;
|
|
38
|
-
}
|
|
39
|
-
export declare class SrcRendererService extends Renderer {
|
|
40
|
-
get rootDir(): string;
|
|
41
|
-
}
|
|
42
|
-
export declare class ScriptsRendererService extends Renderer {
|
|
43
|
-
get rootDir(): string;
|
|
44
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const helpers: any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const helpers: any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const helpers: any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const helpers: any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const helpers: any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function insertAfter(fileContent: string, content: string, pattern: RegExp): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function insertImport(fileContent: string, content: string): string;
|