UNPKG

@nestjs/cli

Version:

The Nest CLI: create NestJS applications, generate modules, controllers and CRUD resources, and build, run and watch projects and monorepos.

15 lines (14 loc) • 1.15 kB
import { Configuration, ProjectConfiguration } from '../configuration/index.js'; export declare function shouldAskForProject(schematic: string, configurationProjects: { [key: string]: ProjectConfiguration; }, appName: string): boolean; export declare function shouldGenerateSpec(configuration: Required<Configuration>, schematic: string, appName: string, specValue: boolean, specPassedAsInput?: boolean): any; /** * Whether the project's package.json lists `@nestjs/testing`, which generated * spec files import. True when no package.json says otherwise. */ export declare function hasTestingPackage(dir?: string): boolean; export declare function shouldGenerateFlat(configuration: Required<Configuration>, appName: string, flatValue: boolean): boolean; export declare function getSpecFileSuffix(configuration: Required<Configuration>, appName: string, specFileSuffixValue: string): string; export declare function askForProjectName(promptQuestion: string, projects: string[]): Promise<string | void>; export declare function moveDefaultProjectToStart(configuration: Configuration, defaultProjectName: string, defaultLabel: string): string[];