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>

16 lines 607 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.printBuildProgress = printBuildProgress; const operators_1 = require("rxjs/operators"); const helpers_1 = require("../../../helpers"); const stack_1 = require("./stack"); /** * */ function printBuildProgress() { return (source) => source.pipe((0, operators_1.tap)(() => { const tasksLeft = Array.from(stack_1.STACK.values()).reduce((acc, stack) => acc + stack.size, 0); (0, helpers_1.printProgress)(`Building... (${tasksLeft} tasks left)`); })); } //# sourceMappingURL=print-build-progress.js.map