@tsed/cli 6.6.3 → 7.0.0-alpha.10
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/bin/tsed.js +23 -2
- package/lib/esm/commands/add/AddCmd.js +16 -16
- package/lib/esm/commands/generate/GenerateCmd.js +72 -224
- package/lib/esm/commands/generate/mappers/mapGenerateContext.js +29 -0
- package/lib/esm/commands/index.js +2 -1
- package/lib/esm/commands/init/InitCmd.js +193 -172
- package/lib/esm/commands/init/config/FeaturesPrompt.js +106 -9
- package/lib/esm/commands/init/mappers/mapToContext.js +8 -3
- package/lib/esm/commands/init/prompts/getFeaturesPrompt.js +0 -12
- package/lib/esm/commands/init/utils/hasFeature.js +3 -0
- package/lib/esm/commands/run/RunCmd.js +22 -26
- package/lib/esm/commands/template/CreateTemplateCommand.js +101 -0
- package/lib/esm/commands/update/UpdateCmd.js +9 -13
- package/lib/esm/fn/exec.js +5 -0
- package/lib/esm/fn/render.js +5 -0
- package/lib/esm/fn/taskOutput.js +7 -0
- package/lib/esm/index.js +10 -5
- package/lib/esm/interfaces/AlterPackageJson.js +1 -0
- package/lib/esm/interfaces/AlterProjectFiles.js +1 -0
- package/lib/esm/interfaces/AlterRenderFiles.js +1 -0
- package/lib/esm/interfaces/CliCommandHooks.js +1 -0
- package/lib/esm/interfaces/GenerateCmdContext.js +1 -0
- package/lib/esm/interfaces/InitCmdOptions.js +1 -0
- package/lib/esm/interfaces/RenderDataContext.js +1 -0
- package/lib/esm/interfaces/RuntimeTypes.js +1 -0
- package/lib/esm/interfaces/index.js +9 -0
- package/lib/esm/pipes/OutputFilePathPipe.js +40 -18
- package/lib/esm/pipes/RoutePipe.js +4 -8
- package/lib/esm/pipes/{ClassNamePipe.js → SymbolNamePipe.js} +14 -11
- package/lib/esm/pipes/index.js +1 -1
- package/lib/esm/platforms/{InitPlatformsModule.js → PlatformsModule.js} +4 -10
- package/lib/esm/platforms/supports/InitExpressPlatform.js +27 -10
- package/lib/esm/platforms/supports/InitFastifyPlatform.js +27 -10
- package/lib/esm/platforms/supports/InitKoaPlatform.js +16 -10
- package/lib/esm/processors/__fixtures__/createFakeProject.js +35 -0
- package/lib/esm/processors/transformBinFile.js +47 -0
- package/lib/esm/processors/transformConfigFile.js +105 -0
- package/lib/esm/processors/transformIndexFile.js +23 -0
- package/lib/esm/processors/transformServerFile.js +60 -0
- package/lib/esm/runtimes/RuntimesModule.js +7 -17
- package/lib/esm/runtimes/supports/BabelRuntime.js +5 -11
- package/lib/esm/runtimes/supports/BunRuntime.js +4 -10
- package/lib/esm/runtimes/supports/NodeRuntime.js +1 -1
- package/lib/esm/runtimes/supports/WebpackRuntime.js +1 -1
- package/lib/esm/services/CliProjectService.js +95 -0
- package/lib/esm/services/CliRunScript.js +4 -8
- package/lib/esm/services/CliTemplatesService.js +119 -0
- package/lib/esm/services/ProjectClient.js +162 -0
- package/lib/esm/services/mappers/addContextMethods.js +17 -0
- package/lib/esm/services/mappers/mapDefaultTemplateOptions.js +36 -0
- package/lib/esm/templates/asyncFactory.template.js +38 -0
- package/lib/esm/templates/barrels.template.js +27 -0
- package/lib/esm/templates/command.template.js +56 -0
- package/lib/esm/templates/config.template.js +27 -0
- package/lib/esm/templates/controller.template.js +44 -0
- package/lib/esm/templates/decorator.template.js +184 -0
- package/lib/esm/templates/docker-compose.template.js +25 -0
- package/lib/esm/templates/dockerfile.template.js +236 -0
- package/lib/esm/templates/exception-filter.template.js +19 -0
- package/lib/esm/templates/factory.template.js +37 -0
- package/lib/esm/templates/index.command.template.js +22 -0
- package/lib/esm/templates/index.config.utils.template.js +17 -0
- package/{templates/init/src/controllers/pages/IndexController.ts.hbs → lib/esm/templates/index.controller.template.js} +14 -3
- package/lib/esm/templates/index.js +32 -0
- package/lib/esm/templates/index.logger.template.js +41 -0
- package/{templates/init/src/index.ts.hbs → lib/esm/templates/index.template.js} +17 -5
- package/lib/esm/templates/interceptor.template.js +31 -0
- package/lib/esm/templates/interface.template.js +13 -0
- package/lib/esm/templates/middleware.template.js +36 -0
- package/lib/esm/templates/model.template.js +16 -0
- package/lib/esm/templates/module.template.js +16 -0
- package/lib/esm/templates/new-template.template.js +67 -0
- package/lib/esm/templates/pipe.template.js +19 -0
- package/lib/esm/templates/pm2.template.js +111 -0
- package/lib/esm/templates/prisma.service.template.js +23 -0
- package/{templates/init/README.md.hbs → lib/esm/templates/readme.template.js} +28 -13
- package/lib/esm/templates/repository.template.js +16 -0
- package/lib/esm/templates/response-filter.template.js +19 -0
- package/lib/esm/templates/server.template.js +37 -0
- package/lib/esm/templates/service.template.js +16 -0
- package/lib/esm/templates/tsconfig.spec.template.js +35 -0
- package/lib/esm/templates/value.template.js +13 -0
- package/lib/esm/utils/defineTemplate.js +13 -0
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/types/bin/tsed.d.ts +1 -1
- package/lib/types/commands/add/AddCmd.d.ts +2 -2
- package/lib/types/commands/generate/GenerateCmd.d.ts +9 -98
- package/lib/types/commands/generate/mappers/mapGenerateContext.d.ts +2 -0
- package/lib/types/commands/index.d.ts +2 -1
- package/lib/types/commands/init/InitCmd.d.ts +18 -20
- package/lib/types/commands/init/config/FeaturesPrompt.d.ts +19 -3
- package/lib/types/commands/init/mappers/mapToContext.d.ts +2 -2
- package/lib/types/commands/init/mappers/mapUniqFeatures.d.ts +1 -1
- package/lib/types/commands/init/prompts/getFeaturesPrompt.d.ts +1 -7
- package/lib/types/commands/init/utils/hasFeature.d.ts +1 -0
- package/lib/types/commands/template/CreateTemplateCommand.d.ts +62 -0
- package/lib/types/commands/update/UpdateCmd.d.ts +2 -2
- package/lib/types/fn/exec.d.ts +1 -0
- package/lib/types/fn/render.d.ts +2 -0
- package/lib/types/fn/taskOutput.d.ts +1 -0
- package/lib/types/index.d.ts +10 -5
- package/lib/types/interfaces/AlterGenerateTasks.d.ts +5 -0
- package/lib/types/interfaces/AlterInitSubTasks.d.ts +5 -0
- package/lib/types/interfaces/AlterPackageJson.d.ts +5 -0
- package/lib/types/interfaces/AlterProjectFiles.d.ts +5 -0
- package/lib/types/interfaces/AlterRenderFiles.d.ts +10 -0
- package/lib/types/interfaces/CliCommandHooks.d.ts +11 -0
- package/lib/types/interfaces/GenerateCmdContext.d.ts +21 -0
- package/lib/types/interfaces/InitCmdOptions.d.ts +8 -0
- package/lib/types/interfaces/PlatformType.d.ts +7 -0
- package/lib/types/interfaces/RenderDataContext.d.ts +62 -0
- package/lib/types/interfaces/RuntimeTypes.d.ts +8 -0
- package/lib/types/interfaces/index.d.ts +9 -0
- package/lib/types/pipes/OutputFilePathPipe.d.ts +7 -4
- package/lib/types/pipes/{ClassNamePipe.d.ts → SymbolNamePipe.d.ts} +4 -4
- package/lib/types/pipes/index.d.ts +1 -1
- package/lib/types/platforms/{InitPlatformsModule.d.ts → PlatformsModule.d.ts} +1 -1
- package/lib/types/platforms/supports/InitBasePlatform.d.ts +3 -0
- package/lib/types/platforms/supports/InitExpressPlatform.d.ts +2 -0
- package/lib/types/platforms/supports/InitFastifyPlatform.d.ts +2 -0
- package/lib/types/platforms/supports/InitKoaPlatform.d.ts +2 -0
- package/lib/types/processors/__fixtures__/createFakeProject.d.ts +5 -0
- package/lib/types/processors/transformBinFile.d.ts +3 -0
- package/lib/types/processors/transformConfigFile.d.ts +3 -0
- package/lib/types/processors/transformIndexFile.d.ts +3 -0
- package/lib/types/processors/transformServerFile.d.ts +3 -0
- package/lib/types/runtimes/RuntimesModule.d.ts +5 -5
- package/lib/types/services/CliProjectService.d.ts +16 -0
- package/lib/types/services/CliTemplatesService.d.ts +35 -0
- package/lib/types/services/ProjectClient.d.ts +40 -0
- package/lib/types/services/mappers/addContextMethods.d.ts +12 -0
- package/lib/types/services/mappers/mapDefaultTemplateOptions.d.ts +11 -0
- package/lib/types/templates/asyncFactory.template.d.ts +16 -0
- package/lib/types/templates/barrels.template.d.ts +16 -0
- package/lib/types/templates/command.template.d.ts +16 -0
- package/lib/types/templates/config.template.d.ts +16 -0
- package/lib/types/templates/controller.template.d.ts +17 -0
- package/lib/types/templates/decorator.template.d.ts +17 -0
- package/lib/types/templates/docker-compose.template.d.ts +16 -0
- package/lib/types/templates/dockerfile.template.d.ts +1 -0
- package/lib/types/templates/exception-filter.template.d.ts +16 -0
- package/lib/types/templates/factory.template.d.ts +16 -0
- package/lib/types/templates/index.command.template.d.ts +16 -0
- package/lib/types/templates/index.config.utils.template.d.ts +16 -0
- package/lib/types/templates/index.controller.template.d.ts +16 -0
- package/lib/types/templates/index.d.ts +31 -0
- package/lib/types/templates/index.logger.template.d.ts +16 -0
- package/lib/types/templates/index.template.d.ts +16 -0
- package/lib/types/templates/interceptor.template.d.ts +16 -0
- package/lib/types/templates/interface.template.d.ts +16 -0
- package/lib/types/templates/middleware.template.d.ts +17 -0
- package/lib/types/templates/model.template.d.ts +16 -0
- package/lib/types/templates/module.template.d.ts +16 -0
- package/lib/types/templates/new-template.template.d.ts +9 -0
- package/lib/types/templates/pipe.template.d.ts +16 -0
- package/lib/types/templates/pm2.template.d.ts +1 -0
- package/lib/types/templates/prisma.service.template.d.ts +16 -0
- package/lib/types/templates/readme.template.d.ts +16 -0
- package/lib/types/templates/repository.template.d.ts +16 -0
- package/lib/types/templates/response-filter.template.d.ts +16 -0
- package/lib/types/templates/server.template.d.ts +16 -0
- package/lib/types/templates/service.template.d.ts +16 -0
- package/lib/types/templates/tsconfig.spec.template.d.ts +16 -0
- package/lib/types/templates/value.template.d.ts +16 -0
- package/lib/types/utils/defineTemplate.d.ts +67 -0
- package/package.json +14 -12
- package/templates/{init/tsconfig.json.hbs → tsconfig.json} +2 -7
- package/templates/tsconfig.node.json +14 -0
- package/templates/webpack.config.js +55 -0
- package/lib/esm/Cli.js +0 -57
- package/lib/esm/commands/generate/ProviderTypes.js +0 -103
- package/lib/esm/commands/init/interfaces/InitOptions.js +0 -5
- package/lib/esm/services/ProvidersInfoService.js +0 -46
- package/lib/esm/services/Renderer.js +0 -162
- package/lib/esm/utils/fillImports.js +0 -38
- 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/Cli.d.ts +0 -26
- package/lib/types/commands/generate/ProviderTypes.d.ts +0 -11
- package/lib/types/commands/init/interfaces/InitCmdContext.d.ts +0 -6
- package/lib/types/commands/init/interfaces/InitOptions.d.ts +0 -20
- package/lib/types/services/ProvidersInfoService.d.ts +0 -21
- package/lib/types/services/Renderer.d.ts +0 -44
- package/lib/types/utils/fillImports.d.ts +0 -1
- 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/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
- package/templates/generate/async.factory.hbs +0 -35
- package/templates/generate/command.hbs +0 -45
- package/templates/generate/controller.hbs +0 -10
- package/templates/generate/decorator.class.hbs +0 -14
- package/templates/generate/decorator.endpoint.hbs +0 -15
- package/templates/generate/decorator.generic.hbs +0 -19
- package/templates/generate/decorator.method.hbs +0 -16
- package/templates/generate/decorator.middleware.hbs +0 -26
- package/templates/generate/decorator.param.hbs +0 -15
- package/templates/generate/decorator.parameters.hbs +0 -9
- package/templates/generate/decorator.prop.hbs +0 -14
- package/templates/generate/decorator.property.hbs +0 -5
- package/templates/generate/exception-filter.hbs +0 -9
- package/templates/generate/factory.hbs +0 -11
- package/templates/generate/injectable.hbs +0 -6
- package/templates/generate/interceptor.hbs +0 -21
- package/templates/generate/interface.hbs +0 -3
- package/templates/generate/middleware.hbs +0 -9
- package/templates/generate/model.hbs +0 -6
- package/templates/generate/module.hbs +0 -6
- package/templates/generate/pipe.hbs +0 -9
- package/templates/generate/prisma.service.hbs +0 -13
- package/templates/generate/repository.hbs +0 -6
- package/templates/generate/response-filter.hbs +0 -9
- package/templates/generate/server/_partials/server-footer.hbs +0 -10
- package/templates/generate/server/_partials/server-header.hbs +0 -34
- package/templates/generate/server/express/server.hbs +0 -10
- package/templates/generate/server/fastify/server.hbs +0 -14
- package/templates/generate/server/koa/server.hbs +0 -8
- package/templates/generate/service.hbs +0 -6
- package/templates/generate/value.hbs +0 -3
- package/templates/init/.barrels.json.hbs +0 -9
- package/templates/init/.gitignore.hbs +0 -57
- package/templates/init/.npmrc.hbs +0 -2
- package/templates/init/docker/_partials/docker-body.hbs +0 -5
- package/templates/init/docker/_partials/docker-dev-tools.hbs +0 -2
- package/templates/init/docker/_partials/docker-header.hbs +0 -16
- package/templates/init/docker/bun/Dockerfile.hbs +0 -36
- package/templates/init/docker/npm/Dockerfile.hbs +0 -28
- package/templates/init/docker/pnpm/Dockerfile.hbs +0 -28
- package/templates/init/docker/yarn/Dockerfile.hbs +0 -28
- package/templates/init/docker/yarn_berry/Dockerfile.hbs +0 -31
- package/templates/init/docker-compose.yml.hbs +0 -14
- package/templates/init/pm2/bun/processes.config.cjs.hbs +0 -23
- package/templates/init/pm2/node-compiled/processes.config.cjs.hbs +0 -22
- package/templates/init/pm2/node-loader/processes.config.cjs.hbs +0 -24
- package/templates/init/src/bin/index.ts.hbs +0 -9
- package/templates/init/src/config/envs/index.ts.hbs +0 -7
- package/templates/init/src/config/index.ts.hbs +0 -38
- package/templates/init/src/config/logger/index.ts.hbs +0 -25
- package/templates/init/tsconfig.node.json.hbs +0 -20
- package/templates/init/tsconfig.spec.json.hbs +0 -25
- package/templates/init/webpack.config.js.hbs +0 -65
- /package/lib/esm/{commands/init/interfaces/InitCmdContext.js → interfaces/AlterGenerateTasks.js} +0 -0
- /package/lib/{types/utils/hbs/index.d.ts → esm/interfaces/AlterInitSubTasks.js} +0 -0
- /package/templates/{init/.babelrc.hbs → .babelrc} +0 -0
- /package/templates/{init/.dockerignore.hbs → .dockerignore} +0 -0
- /package/templates/{init/.swcrc.hbs → .swcrc} +0 -0
- /package/templates/{init/.yarnrc.hbs → .yarnrc} +0 -0
- /package/templates/{init/nodemon.json.hbs → nodemon.json} +0 -0
- /package/templates/{init/tsconfig.base.json.hbs → tsconfig.base.json} +0 -0
- /package/templates/{init/views/swagger.ejs.hbs → views/swagger.ejs} +0 -0
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import type { ProjectClient } from "../../services/ProjectClient.js";
|
|
1
2
|
import type { InitBasePlatform } from "./InitBasePlatform.js";
|
|
2
3
|
export declare class InitFastifyPlatform implements InitBasePlatform {
|
|
3
4
|
readonly name = "fastify";
|
|
5
|
+
alterProjectFiles(project: ProjectClient): void;
|
|
4
6
|
dependencies(ctx: any): {
|
|
5
7
|
"@tsed/platform-fastify": any;
|
|
6
8
|
"@fastify/accepts": string;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import type { ProjectClient } from "../../services/ProjectClient.js";
|
|
1
2
|
import type { InitBasePlatform } from "./InitBasePlatform.js";
|
|
2
3
|
export declare class InitKoaPlatform implements InitBasePlatform {
|
|
3
4
|
readonly name = "koa";
|
|
5
|
+
alterProjectFiles(project: ProjectClient): void;
|
|
4
6
|
dependencies(ctx: any): {
|
|
5
7
|
"@tsed/platform-koa": any;
|
|
6
8
|
koa: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProjectPackageJson } from "@tsed/cli-core";
|
|
2
2
|
import { BaseRuntime } from "./supports/BaseRuntime.js";
|
|
3
|
-
export interface RuntimeInitOptions
|
|
3
|
+
export interface RuntimeInitOptions {
|
|
4
4
|
runtime?: string;
|
|
5
|
+
packageManager?: string;
|
|
5
6
|
}
|
|
6
7
|
export declare class RuntimesModule {
|
|
7
|
-
protected runtimes: BaseRuntime[];
|
|
8
8
|
protected projectPackageJson: ProjectPackageJson;
|
|
9
|
-
|
|
10
|
-
constructor(
|
|
9
|
+
private runtimes;
|
|
10
|
+
constructor();
|
|
11
11
|
init(ctx: RuntimeInitOptions): void;
|
|
12
12
|
list(): string[];
|
|
13
13
|
get(name?: string): BaseRuntime;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { RenderDataContext } from "../interfaces/RenderDataContext.js";
|
|
2
|
+
import { ProjectClient } from "../services/ProjectClient.js";
|
|
3
|
+
import { CliTemplatesService, type TemplateRenderOptions, type TemplateRenderReturnType } from "./CliTemplatesService.js";
|
|
4
|
+
export declare class CliProjectService {
|
|
5
|
+
readonly templates: CliTemplatesService;
|
|
6
|
+
private project;
|
|
7
|
+
private rootDir;
|
|
8
|
+
get srcDir(): string;
|
|
9
|
+
getRelativePath(path: string): string;
|
|
10
|
+
getServerFileName(): "server" | "Server";
|
|
11
|
+
create(): void;
|
|
12
|
+
get(): ProjectClient;
|
|
13
|
+
transformFiles(data: RenderDataContext): Promise<void>;
|
|
14
|
+
createFromTemplate(templateId: string, data: TemplateRenderOptions): Promise<TemplateRenderReturnType | undefined>;
|
|
15
|
+
getDirectories(dir: string): string[];
|
|
16
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { CliFs } from "@tsed/cli-core";
|
|
2
|
+
import type { SourceFile } from "ts-morph";
|
|
3
|
+
import type { RenderDataContext } from "../interfaces/index.js";
|
|
4
|
+
export type TemplateRenderOptions = {
|
|
5
|
+
name?: string;
|
|
6
|
+
symbolName?: string;
|
|
7
|
+
symbolPath?: string;
|
|
8
|
+
directory?: string;
|
|
9
|
+
from?: string;
|
|
10
|
+
} & Partial<RenderDataContext>;
|
|
11
|
+
export type TemplateRenderReturnType = {
|
|
12
|
+
templateId: string;
|
|
13
|
+
content: string;
|
|
14
|
+
outputPath: string;
|
|
15
|
+
name?: string;
|
|
16
|
+
symbolName?: string;
|
|
17
|
+
symbolPath?: string;
|
|
18
|
+
symbolPathBasename?: string;
|
|
19
|
+
source?: SourceFile;
|
|
20
|
+
};
|
|
21
|
+
export declare class CliTemplatesService {
|
|
22
|
+
#private;
|
|
23
|
+
readonly rootDir: string;
|
|
24
|
+
readonly fs: CliFs;
|
|
25
|
+
readonly renderedFiles: TemplateRenderReturnType[];
|
|
26
|
+
get srcDir(): string;
|
|
27
|
+
get templatesDir(): string;
|
|
28
|
+
$onInit(): Promise<void>;
|
|
29
|
+
loadTemplates(): Promise<void>;
|
|
30
|
+
getAll(): any[];
|
|
31
|
+
find(id?: string): any[];
|
|
32
|
+
get(id: string): any;
|
|
33
|
+
render(templateId: string, data: TemplateRenderOptions): Promise<TemplateRenderReturnType | undefined>;
|
|
34
|
+
protected pushRenderResult(renderedFile: TemplateRenderReturnType): TemplateRenderReturnType;
|
|
35
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { CliDockerComposeYaml, CliFs, ProjectPackageJson } from "@tsed/cli-core";
|
|
2
|
+
import { type KindToNodeMappings, ObjectLiteralExpression, type OptionalKind, Project, type ProjectOptions, type SourceFile, type SourceFileCreateOptions, type SourceFileStructure, SyntaxKind, type WriterFunction } from "ts-morph";
|
|
3
|
+
export declare class ProjectClient extends Project {
|
|
4
|
+
readonly pkg: ProjectPackageJson;
|
|
5
|
+
readonly fs: CliFs;
|
|
6
|
+
readonly dockerCompose: CliDockerComposeYaml;
|
|
7
|
+
rootDir: string;
|
|
8
|
+
constructor({ rootDir, ...options }: ProjectOptions & {
|
|
9
|
+
rootDir: string;
|
|
10
|
+
});
|
|
11
|
+
get srcDir(): string;
|
|
12
|
+
get serverSourceFile(): SourceFile | undefined;
|
|
13
|
+
get configSourceFile(): SourceFile | undefined;
|
|
14
|
+
get indexSourceFile(): SourceFile | undefined;
|
|
15
|
+
get binSourceFile(): SourceFile | undefined;
|
|
16
|
+
get serverName(): string;
|
|
17
|
+
getSource(path: string): SourceFile | undefined;
|
|
18
|
+
createSource(path: string, sourceFileText?: string | OptionalKind<SourceFileStructure> | WriterFunction, options?: SourceFileCreateOptions): Promise<SourceFile | undefined>;
|
|
19
|
+
findClassDecorator(sourceFile: SourceFile, name: string): import("ts-morph").Decorator | undefined;
|
|
20
|
+
addMountPath(path: string, specifier: string): void;
|
|
21
|
+
addNamespaceImport(sourceFile: SourceFile, moduleSpecifier: string, name: string): import("ts-morph").Identifier | undefined;
|
|
22
|
+
findConfiguration(kind: "server" | "config" | "bin"): ObjectLiteralExpression | undefined;
|
|
23
|
+
getPropertyAssignment<TKind extends SyntaxKind>(input: ObjectLiteralExpression, { name, initializer, kind }: {
|
|
24
|
+
name: string;
|
|
25
|
+
initializer: string | WriterFunction;
|
|
26
|
+
kind: TKind;
|
|
27
|
+
}): KindToNodeMappings[TKind];
|
|
28
|
+
getPropertyAssignment<TKind extends SyntaxKind>(input: ObjectLiteralExpression, { name, initializer, kind }: {
|
|
29
|
+
name: string;
|
|
30
|
+
initializer?: string | WriterFunction;
|
|
31
|
+
kind: TKind;
|
|
32
|
+
}): KindToNodeMappings[TKind] | undefined;
|
|
33
|
+
addConfigSource(name: string, { content, moduleSpecifier }: {
|
|
34
|
+
content?: string;
|
|
35
|
+
moduleSpecifier: string;
|
|
36
|
+
}): void;
|
|
37
|
+
protected findConfigurationDecorationOptions(): ObjectLiteralExpression | undefined;
|
|
38
|
+
protected findConfigConfiguration(): ObjectLiteralExpression | undefined;
|
|
39
|
+
protected findBinConfiguration(): ObjectLiteralExpression | undefined;
|
|
40
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { GenerateCmdContext } from "../../interfaces/GenerateCmdContext.js";
|
|
2
|
+
export declare function addContextMethods(context: GenerateCmdContext): {
|
|
3
|
+
getName: (state: {
|
|
4
|
+
type?: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
}) => string;
|
|
7
|
+
getRoute: (state: {
|
|
8
|
+
type?: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
}) => string;
|
|
11
|
+
getDirectories: (dir: string) => string[];
|
|
12
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { GenerateCmdContext } from "../../interfaces/GenerateCmdContext.js";
|
|
2
|
+
type TemplateOptions = {
|
|
3
|
+
type?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
symbolName?: string;
|
|
6
|
+
symbolPath?: string;
|
|
7
|
+
symbolPathBasename?: string;
|
|
8
|
+
directory?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare function mapDefaultTemplateOptions(opts: TemplateOptions): GenerateCmdContext;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: import("@tsed/di").FactoryTokenProvider<{
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
outputDir: string;
|
|
6
|
+
type?: string;
|
|
7
|
+
fileName?: string;
|
|
8
|
+
ext: string | null;
|
|
9
|
+
hidden?: boolean;
|
|
10
|
+
preserveCase?: boolean;
|
|
11
|
+
preserveDirectory?: boolean;
|
|
12
|
+
render(symbolName: string, data: import("../index.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
|
|
13
|
+
prompts?(data: import("../index.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[]>;
|
|
14
|
+
hooks?: import("@tsed/di").ProviderOpts["hooks"];
|
|
15
|
+
}>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: import("@tsed/di").FactoryTokenProvider<{
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
outputDir: string;
|
|
6
|
+
type?: string;
|
|
7
|
+
fileName?: string;
|
|
8
|
+
ext: string | null;
|
|
9
|
+
hidden?: boolean;
|
|
10
|
+
preserveCase?: boolean;
|
|
11
|
+
preserveDirectory?: boolean;
|
|
12
|
+
render(symbolName: string, data: import("../index.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
|
|
13
|
+
prompts?(data: import("../index.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[]>;
|
|
14
|
+
hooks?: import("@tsed/di").ProviderOpts["hooks"];
|
|
15
|
+
}>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: import("@tsed/di").FactoryTokenProvider<{
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
outputDir: string;
|
|
6
|
+
type?: string;
|
|
7
|
+
fileName?: string;
|
|
8
|
+
ext: string | null;
|
|
9
|
+
hidden?: boolean;
|
|
10
|
+
preserveCase?: boolean;
|
|
11
|
+
preserveDirectory?: boolean;
|
|
12
|
+
render(symbolName: string, data: import("../index.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
|
|
13
|
+
prompts?(data: import("../index.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[]>;
|
|
14
|
+
hooks?: import("@tsed/di").ProviderOpts["hooks"];
|
|
15
|
+
}>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: import("@tsed/di").FactoryTokenProvider<{
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
outputDir: string;
|
|
6
|
+
type?: string;
|
|
7
|
+
fileName?: string;
|
|
8
|
+
ext: string | null;
|
|
9
|
+
hidden?: boolean;
|
|
10
|
+
preserveCase?: boolean;
|
|
11
|
+
preserveDirectory?: boolean;
|
|
12
|
+
render(symbolName: string, data: import("../index.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
|
|
13
|
+
prompts?(data: import("../index.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[]>;
|
|
14
|
+
hooks?: import("@tsed/di").ProviderOpts["hooks"];
|
|
15
|
+
}>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { GenerateCmdContext } from "../interfaces/index.js";
|
|
2
|
+
declare const _default: import("@tsed/di").FactoryTokenProvider<{
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
outputDir: string;
|
|
7
|
+
type?: string;
|
|
8
|
+
fileName?: string;
|
|
9
|
+
ext: string | null;
|
|
10
|
+
hidden?: boolean;
|
|
11
|
+
preserveCase?: boolean;
|
|
12
|
+
preserveDirectory?: boolean;
|
|
13
|
+
render(symbolName: string, data: GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
|
|
14
|
+
prompts?(data: GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<GenerateCmdContext>[]>;
|
|
15
|
+
hooks?: import("@tsed/di").ProviderOpts["hooks"];
|
|
16
|
+
}>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { GenerateCmdContext } from "../interfaces/index.js";
|
|
2
|
+
declare const _default: import("@tsed/di").FactoryTokenProvider<{
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
outputDir: string;
|
|
7
|
+
type?: string;
|
|
8
|
+
fileName?: string;
|
|
9
|
+
ext: string | null;
|
|
10
|
+
hidden?: boolean;
|
|
11
|
+
preserveCase?: boolean;
|
|
12
|
+
preserveDirectory?: boolean;
|
|
13
|
+
render(symbolName: string, data: GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
|
|
14
|
+
prompts?(data: GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<GenerateCmdContext>[]>;
|
|
15
|
+
hooks?: import("@tsed/di").ProviderOpts["hooks"];
|
|
16
|
+
}>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: import("@tsed/di").FactoryTokenProvider<{
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
outputDir: string;
|
|
6
|
+
type?: string;
|
|
7
|
+
fileName?: string;
|
|
8
|
+
ext: string | null;
|
|
9
|
+
hidden?: boolean;
|
|
10
|
+
preserveCase?: boolean;
|
|
11
|
+
preserveDirectory?: boolean;
|
|
12
|
+
render(symbolName: string, data: import("../index.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
|
|
13
|
+
prompts?(data: import("../index.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[]>;
|
|
14
|
+
hooks?: import("@tsed/di").ProviderOpts["hooks"];
|
|
15
|
+
}>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: import("@tsed/di").FactoryTokenProvider<{
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
outputDir: string;
|
|
6
|
+
type?: string;
|
|
7
|
+
fileName?: string;
|
|
8
|
+
ext: string | null;
|
|
9
|
+
hidden?: boolean;
|
|
10
|
+
preserveCase?: boolean;
|
|
11
|
+
preserveDirectory?: boolean;
|
|
12
|
+
render(symbolName: string, data: import("../index.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
|
|
13
|
+
prompts?(data: import("../index.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[]>;
|
|
14
|
+
hooks?: import("@tsed/di").ProviderOpts["hooks"];
|
|
15
|
+
}>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: import("@tsed/di").FactoryTokenProvider<{
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
outputDir: string;
|
|
6
|
+
type?: string;
|
|
7
|
+
fileName?: string;
|
|
8
|
+
ext: string | null;
|
|
9
|
+
hidden?: boolean;
|
|
10
|
+
preserveCase?: boolean;
|
|
11
|
+
preserveDirectory?: boolean;
|
|
12
|
+
render(symbolName: string, data: import("../index.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
|
|
13
|
+
prompts?(data: import("../index.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[]>;
|
|
14
|
+
hooks?: import("@tsed/di").ProviderOpts["hooks"];
|
|
15
|
+
}>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: import("@tsed/di").FactoryTokenProvider<{
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
outputDir: string;
|
|
6
|
+
type?: string;
|
|
7
|
+
fileName?: string;
|
|
8
|
+
ext: string | null;
|
|
9
|
+
hidden?: boolean;
|
|
10
|
+
preserveCase?: boolean;
|
|
11
|
+
preserveDirectory?: boolean;
|
|
12
|
+
render(symbolName: string, data: import("../index.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
|
|
13
|
+
prompts?(data: import("../index.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[]>;
|
|
14
|
+
hooks?: import("@tsed/di").ProviderOpts["hooks"];
|
|
15
|
+
}>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: import("@tsed/di").FactoryTokenProvider<{
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
outputDir: string;
|
|
6
|
+
type?: string;
|
|
7
|
+
fileName?: string;
|
|
8
|
+
ext: string | null;
|
|
9
|
+
hidden?: boolean;
|
|
10
|
+
preserveCase?: boolean;
|
|
11
|
+
preserveDirectory?: boolean;
|
|
12
|
+
render(symbolName: string, data: import("../index.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
|
|
13
|
+
prompts?(data: import("../index.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[]>;
|
|
14
|
+
hooks?: import("@tsed/di").ProviderOpts["hooks"];
|
|
15
|
+
}>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: import("@tsed/di").FactoryTokenProvider<{
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
outputDir: string;
|
|
6
|
+
type?: string;
|
|
7
|
+
fileName?: string;
|
|
8
|
+
ext: string | null;
|
|
9
|
+
hidden?: boolean;
|
|
10
|
+
preserveCase?: boolean;
|
|
11
|
+
preserveDirectory?: boolean;
|
|
12
|
+
render(symbolName: string, data: import("../index.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
|
|
13
|
+
prompts?(data: import("../index.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[]>;
|
|
14
|
+
hooks?: import("@tsed/di").ProviderOpts["hooks"];
|
|
15
|
+
}>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import "./asyncFactory.template.js";
|
|
2
|
+
import "./command.template.js";
|
|
3
|
+
import "./controller.template.js";
|
|
4
|
+
import "./decorator.template.js";
|
|
5
|
+
import "./exception-filter.template.js";
|
|
6
|
+
import "./factory.template.js";
|
|
7
|
+
import "./interface.template.js";
|
|
8
|
+
import "./interceptor.template.js";
|
|
9
|
+
import "./middleware.template.js";
|
|
10
|
+
import "./model.template.js";
|
|
11
|
+
import "./module.template.js";
|
|
12
|
+
import "./pipe.template.js";
|
|
13
|
+
import "./prisma.service.template.js";
|
|
14
|
+
import "./repository.template.js";
|
|
15
|
+
import "./response-filter.template.js";
|
|
16
|
+
import "./service.template.js";
|
|
17
|
+
import "./value.template.js";
|
|
18
|
+
import "./barrels.template.js";
|
|
19
|
+
import "./server.template.js";
|
|
20
|
+
import "./config.template.js";
|
|
21
|
+
import "./index.template.js";
|
|
22
|
+
import "./index.controller.template.js";
|
|
23
|
+
import "./index.command.template.js";
|
|
24
|
+
import "./index.logger.template.js";
|
|
25
|
+
import "./index.config.utils.template.js";
|
|
26
|
+
import "./tsconfig.spec.template.js";
|
|
27
|
+
import "./docker-compose.template.js";
|
|
28
|
+
import "./dockerfile.template.js";
|
|
29
|
+
import "./pm2.template.js";
|
|
30
|
+
import "./readme.template.js";
|
|
31
|
+
import "./new-template.template.js";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: import("@tsed/di").FactoryTokenProvider<{
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
outputDir: string;
|
|
6
|
+
type?: string;
|
|
7
|
+
fileName?: string;
|
|
8
|
+
ext: string | null;
|
|
9
|
+
hidden?: boolean;
|
|
10
|
+
preserveCase?: boolean;
|
|
11
|
+
preserveDirectory?: boolean;
|
|
12
|
+
render(symbolName: string, data: import("../interfaces/GenerateCmdContext.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
|
|
13
|
+
prompts?(data: import("../interfaces/GenerateCmdContext.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../interfaces/GenerateCmdContext.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../interfaces/GenerateCmdContext.js").GenerateCmdContext>[]>;
|
|
14
|
+
hooks?: import("@tsed/di").ProviderOpts["hooks"];
|
|
15
|
+
}>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: import("@tsed/di").FactoryTokenProvider<{
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
outputDir: string;
|
|
6
|
+
type?: string;
|
|
7
|
+
fileName?: string;
|
|
8
|
+
ext: string | null;
|
|
9
|
+
hidden?: boolean;
|
|
10
|
+
preserveCase?: boolean;
|
|
11
|
+
preserveDirectory?: boolean;
|
|
12
|
+
render(symbolName: string, data: import("../index.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
|
|
13
|
+
prompts?(data: import("../index.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[]>;
|
|
14
|
+
hooks?: import("@tsed/di").ProviderOpts["hooks"];
|
|
15
|
+
}>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: import("@tsed/di").FactoryTokenProvider<{
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
outputDir: string;
|
|
6
|
+
type?: string;
|
|
7
|
+
fileName?: string;
|
|
8
|
+
ext: string | null;
|
|
9
|
+
hidden?: boolean;
|
|
10
|
+
preserveCase?: boolean;
|
|
11
|
+
preserveDirectory?: boolean;
|
|
12
|
+
render(symbolName: string, data: import("../index.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
|
|
13
|
+
prompts?(data: import("../index.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[]>;
|
|
14
|
+
hooks?: import("@tsed/di").ProviderOpts["hooks"];
|
|
15
|
+
}>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: import("@tsed/di").FactoryTokenProvider<{
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
outputDir: string;
|
|
6
|
+
type?: string;
|
|
7
|
+
fileName?: string;
|
|
8
|
+
ext: string | null;
|
|
9
|
+
hidden?: boolean;
|
|
10
|
+
preserveCase?: boolean;
|
|
11
|
+
preserveDirectory?: boolean;
|
|
12
|
+
render(symbolName: string, data: import("../index.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
|
|
13
|
+
prompts?(data: import("../index.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[]>;
|
|
14
|
+
hooks?: import("@tsed/di").ProviderOpts["hooks"];
|
|
15
|
+
}>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { GenerateCmdContext } from "../interfaces/GenerateCmdContext.js";
|
|
2
|
+
declare const _default: import("@tsed/di").FactoryTokenProvider<{
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
outputDir: string;
|
|
7
|
+
type?: string;
|
|
8
|
+
fileName?: string;
|
|
9
|
+
ext: string | null;
|
|
10
|
+
hidden?: boolean;
|
|
11
|
+
preserveCase?: boolean;
|
|
12
|
+
preserveDirectory?: boolean;
|
|
13
|
+
render(symbolName: string, data: GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
|
|
14
|
+
prompts?(data: GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<GenerateCmdContext>[]>;
|
|
15
|
+
hooks?: import("@tsed/di").ProviderOpts["hooks"];
|
|
16
|
+
}>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: import("@tsed/di").FactoryTokenProvider<{
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
outputDir: string;
|
|
6
|
+
type?: string;
|
|
7
|
+
fileName?: string;
|
|
8
|
+
ext: string | null;
|
|
9
|
+
hidden?: boolean;
|
|
10
|
+
preserveCase?: boolean;
|
|
11
|
+
preserveDirectory?: boolean;
|
|
12
|
+
render(symbolName: string, data: import("../index.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
|
|
13
|
+
prompts?(data: import("../index.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[]>;
|
|
14
|
+
hooks?: import("@tsed/di").ProviderOpts["hooks"];
|
|
15
|
+
}>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: import("@tsed/di").FactoryTokenProvider<{
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
outputDir: string;
|
|
6
|
+
type?: string;
|
|
7
|
+
fileName?: string;
|
|
8
|
+
ext: string | null;
|
|
9
|
+
hidden?: boolean;
|
|
10
|
+
preserveCase?: boolean;
|
|
11
|
+
preserveDirectory?: boolean;
|
|
12
|
+
render(symbolName: string, data: import("../index.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
|
|
13
|
+
prompts?(data: import("../index.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[]>;
|
|
14
|
+
hooks?: import("@tsed/di").ProviderOpts["hooks"];
|
|
15
|
+
}>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: import("@tsed/di").FactoryTokenProvider<{
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
outputDir: string;
|
|
6
|
+
type?: string;
|
|
7
|
+
fileName?: string;
|
|
8
|
+
ext: string | null;
|
|
9
|
+
hidden?: boolean;
|
|
10
|
+
preserveCase?: boolean;
|
|
11
|
+
preserveDirectory?: boolean;
|
|
12
|
+
render(symbolName: string, data: import("../index.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
|
|
13
|
+
prompts?(data: import("../index.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[]>;
|
|
14
|
+
hooks?: import("@tsed/di").ProviderOpts["hooks"];
|
|
15
|
+
}>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: import("@tsed/di").FactoryTokenProvider<{
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
outputDir: string;
|
|
6
|
+
type?: string;
|
|
7
|
+
fileName?: string;
|
|
8
|
+
ext: string | null;
|
|
9
|
+
hidden?: boolean;
|
|
10
|
+
preserveCase?: boolean;
|
|
11
|
+
preserveDirectory?: boolean;
|
|
12
|
+
render(symbolName: string, data: import("../index.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
|
|
13
|
+
prompts?(data: import("../index.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[]>;
|
|
14
|
+
hooks?: import("@tsed/di").ProviderOpts["hooks"];
|
|
15
|
+
}>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: import("@tsed/cli-core").FactoryTokenProvider<{
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
outputDir: string;
|
|
6
|
+
type?: string;
|
|
7
|
+
fileName?: string;
|
|
8
|
+
ext: string | null;
|
|
9
|
+
hidden?: boolean;
|
|
10
|
+
preserveCase?: boolean;
|
|
11
|
+
preserveDirectory?: boolean;
|
|
12
|
+
render(symbolName: string, data: import("@tsed/cli").GenerateCmdContext): Promise<string | undefined | import("@tsed/cli").TemplateRenderReturnType> | string | undefined | import("@tsed/cli").TemplateRenderReturnType;
|
|
13
|
+
prompts?(data: import("@tsed/cli").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("@tsed/cli").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("@tsed/cli").GenerateCmdContext>[]>;
|
|
14
|
+
hooks?: import("@tsed/cli-core").ProviderOpts["hooks"];
|
|
15
|
+
}>;
|
|
16
|
+
export default _default;
|