blob: d47e947b143eb5346ac00b8afae232ef65b22490 [file] [log] [blame]
import Features from '../../../features/Features';
import ScriptRunner from '../scripts/ScriptRunner';
import { Context } from './Context';
export default class EntrypointScriptRunner {
private features: Features;
private scriptRunner: ScriptRunner;
constructor(public context: Context) {
this.features = new Features();
this.scriptRunner = new ScriptRunner();
}
run() {
const scripts = this.features.getScripts(this.context);
this.scriptRunner.add(...scripts);
this.scriptRunner.run();
}
}