UNPKG

generator-begcode

Version:

Spring Boot + Angular/React/Vue in one handy generator

38 lines (37 loc) 1.83 kB
import type Environment from 'yeoman-environment'; import type { BaseEnvironmentOptions } from '@yeoman/types'; import EnvironmentBuilder from './environment-builder.mjs'; import JHipsterCommand from './jhipster-command.mjs'; import { done } from './utils.mjs'; import type { CliCommand } from './types.js'; type BuildCommands = { program: JHipsterCommand; commands?: Record<string, CliCommand>; envBuilder?: EnvironmentBuilder; env: Environment; loadCommand?: (key: string) => Promise<(...args: any[]) => Promise<any>>; defaultCommand?: string; entrypointGenerator?: string; silent?: boolean; printLogo?: () => void | Promise<void>; printBlueprintLogo?: () => void | Promise<void>; createEnvBuilder: (options?: BaseEnvironmentOptions) => Promise<EnvironmentBuilder>; }; type BuildJHipsterOptions = Partial<BuildCommands> & { executableName?: string; executableVersion?: string; blueprints?: Record<string, string>; lookups?: any[]; devBlueprintPath?: string; }; export declare const printJHipsterLogo: () => void; export declare const createProgram: ({ executableName, executableVersion, }?: { executableName?: string; executableVersion?: string; }) => JHipsterCommand; export declare const buildCommands: ({ program, commands, envBuilder, env, loadCommand, defaultCommand, entrypointGenerator, printLogo, printBlueprintLogo, createEnvBuilder, silent, }: BuildCommands) => void; export declare const buildJHipster: ({ executableName, executableVersion, program, blueprints, lookups, createEnvBuilder, envBuilder, commands, devBlueprintPath, env, ...buildOptions }?: BuildJHipsterOptions) => Promise<JHipsterCommand>; export declare const runJHipster: (args?: { argv?: string[]; } & BuildJHipsterOptions) => Promise<JHipsterCommand>; export { done };