UNPKG

@manuth/generator-wsc-package

Version:

A Generator for WoltLab Suite Core Packages.

63 lines (62 loc) 2.14 kB
/// <reference types="yeoman-generator" /> import { GeneratorOptions, IFileMapping } from "@manuth/extended-yo-generator"; import { IPathQuestion } from "@manuth/generator-ts-project"; import { LocalInstructionComponent } from "../../../Components/LocalInstructionComponent.js"; import { ILocalComponentOptions } from "../../../Settings/ILocalComponentOptions.js"; import { IWoltLabSettings } from "../../../Settings/IWoltLabSettings.js"; import { WoltLabGenerator } from "../../../WoltLabGenerator.js"; /** * Provides a component for generating sql-script instructions. * * @template TSettings * The type of the settings of the generator. * * @template TOptions * The type of the options of the generator. * * @template TComponentOptions * The type of the options of the component. */ export declare class SQLScriptComponent<TSettings extends IWoltLabSettings, TOptions extends GeneratorOptions, TComponentOptions extends ILocalComponentOptions> extends LocalInstructionComponent<TSettings, TOptions, TComponentOptions> { /** * Initializes a new instance of the {@link SQLScriptComponent `SQLScriptComponent<TSettings, TOptions, TComponentOptions>`} class. * * @param generator * The generator of the component. */ constructor(generator: WoltLabGenerator<TSettings, TOptions>); /** * @inheritdoc */ get ID(): string; /** * @inheritdoc */ get DisplayName(): string; /** * @inheritdoc */ get FileMappings(): Array<IFileMapping<TSettings, TOptions>>; /** * @inheritdoc */ protected get DefaultSourceBaseName(): string; /** * @inheritdoc */ protected get SourceQuestion(): IPathQuestion<TComponentOptions>; /** * Gets the file-mapping for creating the example sql-script. */ protected get SQLFileMapping(): IFileMapping<TSettings, TOptions>; /** * @inheritdoc * * @param options * The options which have been provided by the user. * * @returns * The name of the instruction-class. */ protected GetClassName(options: TComponentOptions): string; }