UNPKG

@oasisdigital/ng-doc-portal-plugin

Version:

Nx plugin for adding the ng-doc-portal system to your nx workspace

24 lines 1.04 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = runExecutor; const tslib_1 = require("tslib"); const context_1 = require("../../util/context"); const doc_page_loaders_compiler_1 = require("../compiler/doc-page-loaders-compiler"); function runExecutor(options, context) { return tslib_1.__awaiter(this, void 0, void 0, function* () { // create compiler const configLocation = (0, context_1.getConfigFileLocationFromContext)(options, context); const docPageLoadersFileLocation = (0, context_1.getDocPageLoadersFileLocationFromContext)(options, context); const compiler = new doc_page_loaders_compiler_1.DocPageLoadersCompiler(configLocation, docPageLoadersFileLocation); // run doc config compiler once try { yield compiler.runOnce(); return { success: true }; } catch (err) { console.error(err); return { success: false }; } }); } //# sourceMappingURL=executor.js.map