From b30a00a9713fd52865129132317beb6fa875017c Mon Sep 17 00:00:00 2001 From: "bozo.kopic" Date: Sun, 13 Nov 2022 03:39:02 +0100 Subject: type script --- src_js/main.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src_js/main.ts (limited to 'src_js/main.ts') diff --git a/src_js/main.ts b/src_js/main.ts new file mode 100644 index 0000000..6a9ca82 --- /dev/null +++ b/src_js/main.ts @@ -0,0 +1,18 @@ +import * as u from '@hat-open/util'; +import r from '@hat-open/renderer'; + +import * as common from './common'; +import * as vt from './vt/index'; + +import '../src_scss/main.scss'; + + +function main() { + const root = document.body.appendChild(document.createElement('div')); + r.init(root, common.defaultState, vt.main); +} + + +window.addEventListener('load', main); +(window as any).r = r; +(window as any).u = u; -- cgit v1.2.3-70-g09d2