UNPKG

@manuth/generator-wsc-package

Version:

A Generator for WoltLab Suite Core Packages.

37 lines 1.19 kB
import { printNode, ts } from "ts-morph"; import { FileInstructionMapping } from "../../../FileMappings/FileInstructionMapping.js"; /** * Provides the functionality to generate bbcode instruction files. * * @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 class BBCodeInstructionFileMapping extends FileInstructionMapping { /** * Initializes a new instance of the {@link BBCodeInstructionFileMapping `BBCodeInstructionFileMapping<TSettings, TOptions, TComponentOptions>`} class. * * @param component * The component to create an instruction-file for. */ constructor(component) { super(component); } /** * @inheritdoc */ get InstructionOptions() { let options = super.InstructionOptions; options.addPropertyAssignment({ name: "BBCodes", initializer: printNode(ts.factory.createArrayLiteralExpression()) }); return options; } } //# sourceMappingURL=BBCodeInstructionFileMapping.js.map