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 {
|
2019-07-16 18:49:15 +02:00
|
|
|
public options: IWebSetupConstructorOptions;
|
2019-03-25 15:57:38 +01:00
|
|
|
constructor(optionsArg: IWebSetupConstructorOptions) {
|
2019-07-16 18:49:15 +02:00
|
|
|
this.options = optionsArg;
|
2019-03-27 14:38:24 +01:00
|
|
|
}
|
|
|
|
|
2019-07-16 18:49:15 +02: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
|
|
|
}
|