Skip to content

Latest commit

 

History

History
46 lines (36 loc) · 1.32 KB

File metadata and controls

46 lines (36 loc) · 1.32 KB

node24-template

A modern TypeScript project template for Node.js 24+. Uses Node's native type stripping to run .ts files directly — no build step required.

Stack

  • Runtime: Node.js >= 24.0.0 (ES modules, native TypeScript via type stripping)
  • Language: TypeScript (strict mode, erasableSyntaxOnly)
  • Package Manager: pnpm 10
  • Linter/Formatter: Biome
  • Test Runner: Vitest (V8 coverage)
  • Type Checker: tsgo

Getting Started

pnpm install
pnpm start

Scripts

Command Description
pnpm dev Run the app in watch mode
pnpm start Run the app
pnpm test Run unit tests
pnpm test:watch Run tests in watch mode
pnpm test:coverage Run tests with coverage
pnpm typecheck Type-check with tsgo
pnpm lint Lint and check formatting
pnpm fix Auto-fix lint/format issues
pnpm check Lint + typecheck + test
pnpm all Full check including integration tests

Project Structure

The src/ directory contains example code to demonstrate the setup — replace it with your own:

src/
├── index.ts       # Entry point
├── add.ts         # Example utility
├── add.test.ts    # Example test
└── log.ts         # Console.log wrapper