From 4f98b9a9b999510c6943017d0c23c4493bb7131c Mon Sep 17 00:00:00 2001 From: Aaron Gutierrez Date: Sat, 28 Mar 2020 15:29:39 -0700 Subject: [PATCH] Typescript boilerplate --- .gitignore | 2 ++ index.html | 19 +++++++++++++++++++ index.js | 3 +++ site.css | 0 src/index.ts | 8 ++++++++ tsconfig.json | 14 ++++++++++++++ 6 files changed, 46 insertions(+) create mode 100644 .gitignore create mode 100644 index.html create mode 100644 index.js create mode 100644 site.css create mode 100644 src/index.ts create mode 100644 tsconfig.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0768fde --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +modules +node_modules diff --git a/index.html b/index.html new file mode 100644 index 0000000..1a81481 --- /dev/null +++ b/index.html @@ -0,0 +1,19 @@ + + + + Snappa + + + + + + +
+

Snappa

+
+
+
+ +
+ + diff --git a/index.js b/index.js new file mode 100644 index 0000000..895a6a5 --- /dev/null +++ b/index.js @@ -0,0 +1,3 @@ +import { startApp } from "./modules/index.js"; + +startApp(); diff --git a/site.css b/site.css new file mode 100644 index 0000000..e69de29 diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..1278cf7 --- /dev/null +++ b/src/index.ts @@ -0,0 +1,8 @@ +export const startApp = () => { + const root = document.getElementById("main"); + + const div = document.createElement("div"); + div.innerHTML = "Sup bro"; + + root.appendChild(div); +}; diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..454342e --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,14 @@ +{ + "compilerOptions": { + "module": "es2015", + "outDir": "modules", + "strictNullChecks": true, + "target": "es2018" + }, + "include": [ + "src/**/*/" + ], + "exclude": [ + "node_modules" + ] +}