@ipp/cli
Version:
An image build orchestrator for the modern web
19 lines (18 loc) • 753 B
JavaScript
;
/**
* Image Processing Pipeline - Copyright (c) Marcus Cemes
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.createContext = void 0;
const interrupt_1 = require("./interrupt");
const state_1 = require("./state");
function createContext(concurrency, manifest, clean, version, ui) {
const interrupt = (0, interrupt_1.createInterruptHandler)();
const state = (0, state_1.createStateContext)(concurrency, manifest, clean);
const uiInstance = ui({ version, state: state.observable });
return { interrupt, ui: uiInstance, state };
}
exports.createContext = createContext;