Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 846 Bytes

File metadata and controls

45 lines (31 loc) · 846 Bytes

Tomplate

Just a basic starter template for a website that doesn't use any fancy frameworks 🌻

  • Typescript 5.5
  • Vite builder
  • Internal pattern for circular references
  • Prettier formatting
  • Basic VSCode settings

Setup

Have Node installed. v18 or higher preferred. v16 will grouse a bit but appears to work.

$ npm ci

Coding

index.html is the startup page. src/index.ts is the startup module. Anything in public/ will be included in the build output root.

To run the source via local webserver:

$ npm run dev

The site will be accessible at localhost:5173. Code changes should trigger a hot reload.

Build

$ npm run build

Output will appear in the build folder with the following structure

index.html
assets/
  package-name.js
  package-name.css
anything from public/