websetup/ts/index.ts
2019-03-25 16:07:04 +01:00

24 lines
566 B
TypeScript

import * as plugins from './websetup.plugins';
import { setupGoogleAnalytics } from './tools/ganalytics';
import { setupFullStory } from './tools/fullstory';
export interface IWebSetupConstructorOptions {
googleAnalyticsCode?: string;
fsCode?: string;
}
/**
* the main WebSetup class
*/
export class WebSetup {
constructor(optionsArg: IWebSetupConstructorOptions) {
if (optionsArg.googleAnalyticsCode) {
setupGoogleAnalytics(optionsArg.googleAnalyticsCode);
}
if (optionsArg.fsCode) {
setupFullStory(optionsArg.fsCode)
}
}
}