aboutsummaryrefslogtreecommitdiff
path: root/src-ui
diff options
context:
space:
mode:
authorJeremy Chone <jeremy.chone@gmail.com>2022-06-20 01:02:15 -0700
committerJeremy Chone <jeremy.chone@gmail.com>2022-06-20 01:02:15 -0700
commit051748771895bb040188221c3e4136878dbedb8a (patch)
tree9492d6020c9294b12b3fd912520746e0df847406 /src-ui
downloadFlightCore-051748771895bb040188221c3e4136878dbedb8a.tar.gz
FlightCore-051748771895bb040188221c3e4136878dbedb8a.zip
. initial
Diffstat (limited to 'src-ui')
-rw-r--r--src-ui/src/main.ts4
-rw-r--r--src-ui/tsconfig.json45
2 files changed, 49 insertions, 0 deletions
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