-
Notifications
You must be signed in to change notification settings - Fork 0
Development Workflow
Christophe Babilotte edited this page Dec 6, 2025
·
1 revision
-
yarn dev– run electron-vite (main, preload, renderer in watch mode) -
yarn dev:electron– watch only Electron processes -
yarn build– production bundle -
yarn pack– electron-builder pack (no publish) -
yarn lint– ESLint oversrc/**/*.{ts,tsx} -
yarn typecheck–tsc --project tsconfig.tests.json --noEmit(includes tests) -
yarn format– Prettier over the repo -
yarn test– Vitest suite -
yarn test:watch– Vitest in watch mode
- TypeScript, strict mode, ESM (
"type": "module"). - Paths aliases:
@main,@preload,@renderer,@shared. - UI: React + Tailwind; keep components small and typed.
- Avoid Node globals in renderer; use preload APIs.
- Run
yarn lintandyarn typecheckbefore commits. - Tests are type-checked via
tsconfig.tests.json.
- Unit/UI tests: Vitest + Testing Library (
jsdom). - Coverage via V8:
yarn test -- --coverage. - See Testing-and-Quality for details.
- Prettier enforced via
yarn format.
- App reads/writes JSON under
~/.projecthub(see Data-and-Config).