blob: d3fa2ea2e9889f35d178545aee3c5c63659119a3 [file] [log] [blame]
Adrià Vilanova Martínez80f6c9f2024-11-10 01:09:48 +01001// Run legacy Javascript entry point
2import '../../../contentScripts/publicThreadStart';
3
4import UiSpacingSharedStylesScript from '../../../features/uiSpacing/presentation/scripts/sharedStyles.script';
5import UiSpacingTwBasicStylesScript from '../../../features/uiSpacing/presentation/scripts/twBasicStyles.script';
6import ScriptRunner from '../../../infrastructure/presentation/scripts/ScriptRunner';
7import ScriptSorterAdapter from '../../../infrastructure/presentation/scripts/ScriptSorter.adapter';
8import { SortedScriptsProviderAdapter } from '../../../infrastructure/presentation/scripts/SortedScriptsProvider.adapter';
9
10const scriptRunner = createScriptRunner();
11scriptRunner.run();
12
13function createScriptRunner() {
14 return new ScriptRunner(
15 new SortedScriptsProviderAdapter(
16 [
17 // Individual feature scripts
18 new UiSpacingSharedStylesScript(),
19 new UiSpacingTwBasicStylesScript(),
20 ],
21 new ScriptSorterAdapter(),
22 ).getScripts(),
23 );
24}