Migrate to Vite+ integration and update related documentation - #51
Merged
Conversation
…s for oxc formatter
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
vp) instead of Prettier and standalone Vitest, and added a newpreparescript for Vite+ configuration (package.json)..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]pnpm-workspace.yaml). [1] [2]Documentation and Developer Experience:
AGENTS.mdwith comprehensive documentation for using Vite+, and linked it in project documentation files (AGENTS.md,.github/copilot-instructions.md,CLAUDE.md). [1] [2] [3]vp stagedfor improved pre-commit checks (.vite-hooks/pre-commit).Dependency Updates:
react-router,lucide-react,zod, and others, to ensure compatibility with Vite+ and the latest ecosystem (package.json). [1] [2]Code Quality and Consistency:
voidbefore 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]Calendarprop typing, regex inCharCounter). [1] [2] [3]Test Suite Modernization:
vite-plus/testand 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.