UNPKG

@manuth/generator-wsc-package

Version:

A Generator for WoltLab Suite Core Packages.

39 lines (38 loc) 1.38 kB
/// <reference types="yeoman-generator" /> import { GeneratorOptions, IGenerator } from "@manuth/extended-yo-generator"; import { IScriptMapping, TSProjectPackageFileMapping } from "@manuth/generator-ts-project"; import { Package } from "@manuth/package-json-editor"; import { IWoltLabSettings } from "../../../Settings/IWoltLabSettings.js"; /** * Provides the functionality to create a `package.json`-file for woltlab-components. * * @template TSettings * The type of the generator-settings. * * @template TOptions * The type of the generator-options. */ export declare class WoltLabNodePackageFileMapping<TSettings extends IWoltLabSettings, TOptions extends GeneratorOptions> extends TSProjectPackageFileMapping<TSettings, TOptions> { /** * Initializes a new instance of the {@link WoltLabNodePackageFileMapping `WoltLabNodePackageFileMapping<TSettings, TOptions>`} class. * * @param generator * The generator of the file-mapping. */ constructor(generator: IGenerator<TSettings, TOptions>); /** * @inheritdoc * * @returns * The loaded package. */ LoadPackage(): Promise<Package>; /** * @inheritdoc */ get TypeScriptScripts(): Array<string | IScriptMapping<TSettings, TOptions>>; /** * @inheritdoc */ get MiscScripts(): Array<IScriptMapping<TSettings, TOptions>>; }