UNPKG

828 BPlain TextView Raw
1import { MrPluginInstance, MrService } from '@cirrusct/mr-core';
2import { manifestFactories as commandManifestFactories } from './commands';
3import { createPackageBuilder } from './packgeBuilder';
4import { manifest as specBuildersManifest } from './specBuilders';
5
6export class MrPlugin implements MrPluginInstance {
7 // constructor(options) {
8 // debugger
9 // }
10
11 public apply = async (mrService: MrService) => {
12 // await mrService.commandService.register(...commandManifestFactories);
13 await mrService.buildService.registerBuilderCommandManifestFactories(...commandManifestFactories);
14 await mrService.buildService.registerPackageBuilderCommandHandlerFactory(createPackageBuilder);
15 await mrService.buildService.registerSpecBuilder(specBuildersManifest);
16 };
17}