Skip to content

Latest commit

 

History

History
50 lines (34 loc) · 1.31 KB

File metadata and controls

50 lines (34 loc) · 1.31 KB

Contributing to Weftmap

🌐 Language: English · Español

Thanks for your interest! This guide covers the essentials.

Setup

pnpm install
pnpm dev

Before opening a PR

All of these must pass (it's what CI runs):

pnpm lint
pnpm typecheck
pnpm test
pnpm build

Workflow

  • main is protected: no direct pushes. Work on a branch and open a Pull Request.
  • A PR needs CI green and at least one approval to merge.
  • Commits follow Conventional Commits: feat:, fix:, refactor:, docs:, test:, chore:.

Adding a language

This is the most valuable kind of contribution. The steps are in the README. Always include an analyzer test.

Adding a translation

We welcome translations to make Weftmap accessible worldwide! To add a translation:

  1. Register the new locale code (e.g., fr) in src/i18n/config.ts.
  2. Copy src/i18n/dictionaries/en.json to src/i18n/dictionaries/<locale>.json and translate the values.
  3. Run pnpm test to verify the translation dictionary matches the source template keys.

Style

  • TypeScript, no any in application code.
  • Small, focused files.
  • Handle errors; never silence them.