This repository has been archived by the owner on Oct 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
mod.ts
56 lines (55 loc) · 2.1 KB
/
mod.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import Ogone from "./src/main/OgoneBase.ts";
import EnvServer from './src/classes/EnvServer.ts';
import ComponentTopLevelAnalyzer from "./src/classes/ComponentTopLevelAnalyzer.ts";
import Constructor from "./src/classes/Constructor.ts";
import ComponentTypeGetter from "./src/classes/ComponentTypeGetter.ts";
import ComponentCompiler from "./src/classes/ComponentCompiler.ts";
import ProtocolBodyConstructor from "./src/classes/ProtocolBodyConstructor.ts";
import ProtocolClassConstructor from "./src/classes/ProtocolClassConstructor.ts";
import ProtocolDataProvider from "./src/classes/ProtocolDataProvider.ts";
import ProtocolModifierGetter from "./src/classes/ProtocolModifierGetter.ts";
import ProtocolReactivity from "./src/classes/ProtocolReactivity.ts";
import type { OgoneConfiguration } from "./src/ogone.main.d.ts";
import { Configuration } from "./src/classes/Configuration.ts";
import XMLParser from './src/classes/XMLParser.ts';
import AssetsParser from './src/classes/AssetsParser.ts';
import ComponentBuilder from './src/classes/ComponentBuilder.ts';
import DefinitionProvider from './src/classes/DefinitionProvider.ts';
import { MapPosition } from './src/classes/MapPosition.ts';
import StylesheetBuilder from './src/classes/StylesheetBuilder.ts';
import { Utils } from './src/classes/Utils.ts';
import TSXContextCreator from './src/classes/TSXContextCreator.ts';
import WebviewEngine from './src/classes/WebviewEngine.ts';
export {
Ogone,
XMLParser,
AssetsParser,
ComponentBuilder,
MapPosition,
Utils,
Constructor,
ComponentTypeGetter,
ComponentCompiler,
ComponentTopLevelAnalyzer,
StylesheetBuilder,
ProtocolBodyConstructor,
ProtocolClassConstructor,
ProtocolDataProvider,
ProtocolModifierGetter,
ProtocolReactivity,
DefinitionProvider
};
export default {
async run(opts: OgoneConfiguration): Promise<void> {
const startTime = performance.now();
Object.assign(opts, {
startTime,
});
console.clear();
Utils.infos('compiling...')
TSXContextCreator.createDistFolder();
Configuration.setConfig(opts);
const env = new EnvServer();
await env.run(opts);
},
};