From 051748771895bb040188221c3e4136878dbedb8a Mon Sep 17 00:00:00 2001 From: Jeremy Chone Date: Mon, 20 Jun 2022 01:02:15 -0700 Subject: . initial --- src-ui/src/main.ts | 4 ++++ src-ui/tsconfig.json | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 src-ui/src/main.ts create mode 100644 src-ui/tsconfig.json (limited to 'src-ui') diff --git a/src-ui/src/main.ts b/src-ui/src/main.ts new file mode 100644 index 00000000..aa31bb93 --- /dev/null +++ b/src-ui/src/main.ts @@ -0,0 +1,4 @@ + +document.addEventListener("DOMContentLoaded", async function () { + document.body.textContent = "Hello from main.ts"; +}); \ No newline at end of file diff --git a/src-ui/tsconfig.json b/src-ui/tsconfig.json new file mode 100644 index 00000000..290a24d2 --- /dev/null +++ b/src-ui/tsconfig.json @@ -0,0 +1,45 @@ +{ + "compilerOptions": { + // For modern runtimes & rollup + "target": "ES2022", + "module": "ES2022", + + // For interop + "moduleResolution": "node", + "esModuleInterop": true, + + // Full ts mode + "allowJs": false, + "checkJs": false, + "strict": true, + + // Fev info + "declaration": true, + "sourceMap": true, + + // Use native class fields + "useDefineForClassFields": true, + + // Allows TS Decorators + "experimentalDecorators": true, + + // Disallow inconsistently-cased references to the same file. + "forceConsistentCasingInFileNames": true, + + // Paths info + "outDir": ".out/", // for checkin tsc output only. Rollup is used for runtime + "baseUrl": ".", + + // Speedup compile + "skipLibCheck": true + }, + + // We want more control about which code we will compile and exclude + "include": [ + "./src/**/*.ts" + ], + + "exclude": [ + "node_modules" + ] +} \ No newline at end of file -- cgit v1.2.3