Files
websetup/ts/index.ts

21 lines
472 B
TypeScript
Raw Normal View History

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