Skip to content

Migrate to Vite+ integration and update related documentation - #51

Merged
Barata-Ribeiro merged 6 commits into
mainfrom
migrate-to-vite-plus
Aug 30, 2026
Merged

Migrate to Vite+ integration and update related documentation#51
Barata-Ribeiro merged 6 commits into
mainfrom
migrate-to-vite-plus

Conversation

@Barata-Ribeiro

Copy link
Copy Markdown
Owner

This pull request introduces a migration from Prettier to the Vite+ toolchain, updates package and workspace configurations, and makes various code and test improvements to align with the new tooling. The main focus is on unifying development scripts, formatting, and testing under Vite+, cleaning up legacy config, and updating dependencies. Below are the most important changes:

Toolchain Migration and Configuration:

  • Migrated formatting and test scripts to use the Vite+ CLI (vp) instead of Prettier and standalone Vitest, and added a new prepare script for Vite+ configuration (package.json).
  • Removed Prettier configuration and Tailwind plugin from .prettierrc, and updated VSCode settings to use the Oxc formatter and Vite+ recommended extensions (.prettierrc, .vscode/settings.json, .vscode/extensions.json). [1] [2] [3] [4]
  • Updated workspace and package manager configuration to use Vite+ and Vitest from a central catalog, and added peer dependency rules for these tools (pnpm-workspace.yaml). [1] [2]

Documentation and Developer Experience:

  • Added AGENTS.md with comprehensive documentation for using Vite+, and linked it in project documentation files (AGENTS.md, .github/copilot-instructions.md, CLAUDE.md). [1] [2] [3]
  • Added a pre-commit hook to run vp staged for improved pre-commit checks (.vite-hooks/pre-commit).

Dependency Updates:

  • Upgraded several dependencies and devDependencies to their latest versions, including react-router, lucide-react, zod, and others, to ensure compatibility with Vite+ and the latest ecosystem (package.json). [1] [2]

Code Quality and Consistency:

  • Refactored code to use void before promises for side-effect-only async calls, improving code clarity and consistency (e.g., service worker registration, theme provider, sidebar provider, error boundary, service worker events). [1] [2] [3] [4] [5] [6]
  • Improved type safety and code style in UI components (e.g., Calendar prop typing, regex in CharCounter). [1] [2] [3]

Test Suite Modernization:

  • Updated test imports to use vite-plus/test and removed unnecessary awaits in test assertions, aligning with new test conventions (tests/browser/components/calculators/bmi.browser.test.tsx, tests/browser/components/calculators/date-add-subtract.browser.test.tsx). [1] [2] [3] [4] [5]

These changes collectively modernize the project's tooling and developer workflow, streamline configuration, and improve maintainability and consistency.

@Barata-Ribeiro Barata-Ribeiro self-assigned this Aug 29, 2026
@Barata-Ribeiro Barata-Ribeiro added documentation Improvements or additions to documentation enhancement New feature or request chore Handle config, moving etc. labels Aug 29, 2026
@vercel

vercel Bot commented Aug 29, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
utilities-webapp Ready Ready Preview Aug 29, 2026 1:02pm

@Barata-Ribeiro
Barata-Ribeiro merged commit 24586d0 into main Aug 30, 2026
3 checks passed
@Barata-Ribeiro
Barata-Ribeiro deleted the migrate-to-vite-plus branch August 30, 2026 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Handle config, moving etc. documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant