Consolidates V2 codebase into main project directory Updates build script to support simplified entry points Removes redundant files and cleans up project organization Simplifies module imports and entry points for calendar application
15 lines
365 B
TypeScript
15 lines
365 B
TypeScript
import { IRenderer, IRenderContext } from './IGroupingRenderer';
|
|
|
|
export interface Pipeline {
|
|
run(context: IRenderContext): Promise<void>;
|
|
}
|
|
|
|
export function buildPipeline(renderers: IRenderer[]): Pipeline {
|
|
return {
|
|
async run(context: IRenderContext) {
|
|
for (const renderer of renderers) {
|
|
await renderer.render(context);
|
|
}
|
|
}
|
|
};
|
|
}
|