websetup/ts/index.ts

21 lines
472 B
TypeScript
Raw Normal View History

2018-12-27 23:23:13 +00:00
import * as plugins from './websetup.plugins';
2019-03-27 13:38:24 +00:00
import { IMetaObject, setupMetaInformation } from './meta';
2019-03-25 14:57:38 +00:00
export interface IWebSetupConstructorOptions {
2019-03-27 13:38:24 +00:00
metaObject: IMetaObject;
2019-03-25 14:57:38 +00:00
}
/**
* the main WebSetup class
*/
export class WebSetup {
public options: IWebSetupConstructorOptions;
2019-03-25 14:57:38 +00:00
constructor(optionsArg: IWebSetupConstructorOptions) {
this.options = optionsArg;
2019-03-27 13:38:24 +00:00
}
public async setup() {
await setupMetaInformation(this.options.metaObject);
2019-03-25 14:57:38 +00:00
}
2019-03-27 13:40:06 +00:00
}