UNPKG

woltlab-compiler

Version:

A compiler for WoltLab-Package Archives and WoltLab-Package Components

29 lines 884 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const Path = require("path"); const ApplicationFileSystemInstruction_1 = require("../../FileSystem/ApplicationFileSystemInstruction"); /** * Represents an instruction which provides templates. */ class TemplateInstruction extends ApplicationFileSystemInstruction_1.ApplicationFileSystemInstruction { /** * Initializes a new instance of the `TemplateInstruction` class. */ constructor(options) { super(options); } /** * @inheritdoc */ get Type() { return "template"; } /** * @inheritdoc */ MakeDefaultFileName(source) { return Path.join("templates", super.MakeDefaultFileName(source)); } } exports.TemplateInstruction = TemplateInstruction; //# sourceMappingURL=TemplateInstruction.js.map