UNPKG

@ng-doc/builder

Version:

<!-- PROJECT LOGO --> <br /> <div align="center"> <a href="https://github.com/ng-doc/ng-doc"> <img src="https://ng-doc.com/assets/images/ng-doc.svg?raw=true" alt="Logo" height="150px"> </a>

24 lines 811 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.INDEX_BUILDER_TAG = void 0; exports.indexBuilder = indexBuilder; const tslib_1 = require("tslib"); const path_1 = tslib_1.__importDefault(require("path")); const rxjs_1 = require("rxjs"); const core_1 = require("../../core"); const nunjucks_1 = require("../../nunjucks"); exports.INDEX_BUILDER_TAG = 'IndexFile'; /** * * @param context */ function indexBuilder(context) { const outPath = path_1.default.join(context.outDir, 'index.ts'); return (0, rxjs_1.of)(null).pipe((0, core_1.runBuild)(exports.INDEX_BUILDER_TAG, async () => { return { filePath: outPath, content: (0, nunjucks_1.renderTemplate)('./index.ts.nunj'), }; })); } //# sourceMappingURL=index.builder.js.map