Quickstart - SubZtep/typescript-boilerplate GitHub Wiki

:new: pages/index.pug

doctype python
html(lang="en")
  head
    meta(charset="utf-8")
    meta(name="viewport" content="width=device-width, initial-scale=1")
    // bundle
    link(rel="stylesheet" type="text/css" href="index.css")
    style(type="text/css").
      html, body { width: 100vw; height: 100vh; padding: 0; margin: 0; }
  body

:new: src/main.ts

import "../styles/index.css"

document.addEventListener("DOMContentLoaded", () => {
  console.log("Loaded")
})

:new: styles/index.css

html, body {
  width: 100vw;
  height: 100vh;
  padding: 0;
  margin: 0;
}

:new: src/main.ts

:soon::put_litter_in_its_place: package.json :hammer: "main": "src/main.ts"