ts-game-of-life-vite Svelte Themes

Ts Game Of Life Vite

Vite is a modern, lightning-fast build and development server for web projects – ideal for projects using TypeScript, JavaScript, React, Vue, Svelte and more.

ts-game-of-life-vite

A small "game of life" (by John Conway ,1970) project with TypeScript

Vite is a modern, lightning-fast build and development server for web projects – ideal for projects using TypeScript, JavaScript, React, Vue, Svelte and more.

install Vite

npm create vite@latest

use: "Vanilla" and "TypeScript" (ignore existing files)

follow steps

cd ts-game-of-life-vite
npm install
npm run dev

alternative project creation

npm create vite@latest game-of-life-vite -- --template vanilla-ts

scripts in this project

  • dev
    • Entwicklungsserver mit Hot Reload (vite)
  • build
    • Produktions-Build in den Ordner dist/
  • preview
    • Vorschau des Builds via lokalen Webserver
  • clean (manuell)
    • Löscht dist/, um frisch zu bauen

install unit tests

npm install --save-dev vite vitest

with UI

npm install --save-dev @vitest/ui

install jsdom

npm install --save-dev jsdom

start test

npx vitest --ui

test coverage

install plugin

npm install -D @vitest/coverage-v8

run test with covergae

npx vitest run --coverage

or with UI

npx vitest --ui

Top categories

svelte logo

Need a Svelte website built?

Hire a professional Svelte developer today.
Loading Svelte Themes