Bun First

Use Bun as the primary JavaScript runtime and tooling choice

majiayu000 3d6be6b 2 files · 1.8 KB Updated 567 repo stars

File contents

Bun-First Development Guidelines

Bun is the primary JavaScript runtime and tooling choice for this project.

Key Preferences

  • PREFER Bun over Node.js, npm, pnpm, or yarn
  • PREFER Bun's built-in features over third-party tools when available

Package Management

Use Bun's package commands:

  • bun install - Install dependencies
  • bun add - Add packages
  • bun remove - Remove packages

Tool Selection

  • PREFER Vitest over Bun's test runner
  • PREFER Vite over Bun's build tool

Runtime Approach

  • Leverage Bun's native APIs (fetch, fs, path, env handling)
  • Write code assuming modern Web APIs are available
  • Use Node-specific APIs only when necessary

Philosophy

Prioritize simplicity and directness. Avoid unnecessary abstractions and complex toolchains in favor of straightforward, explicit solutions.

majiayu000/claude-skill-registry-data/tree/main/development/bun-first-ddoman90-claude-code-intro commit 3d6be6b7e8

Frequently asked questions

npx skillmds add majiayu000/bun-first-2