-
Notifications
You must be signed in to change notification settings - Fork 3
feat: Modernize project tooling, dependencies, and examples #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
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
- update project structure and dependencies - migrate to pnpm - enhance .gitignore
…p unused files - remove `native` example - upgrade other examples setup
- replace Jest configuration with Vitest configuration - update test files to use Vitest's API - remove Jest-related dependencies and add Vitest dependencies - ensure compatibility with React 19 features
- delete babel.config.js and tsconfig.base.json - update package.json to remove Babel dependencies - adjust lib package.json and tsconfig.json for new build process
- rename index.html title to "Base Example" - update script source in index.html to point to main.tsx - modify package.json scripts for Vite usage - enhance TypeScript configuration for better compatibility - add tsconfig.node.json for Node-specific settings - create vite.config.ts for Vite configuration - refactor App.tsx and auth.ts to align with new imports and structure - introduce main.tsx as the entry point for the application
…ate dependencies - rename index.html title to "Refresh Token Example" - update script source in index.html to point to main.tsx - modify package.json scripts for Vite usage - enhance TypeScript configuration for better compatibility - add tsconfig.node.json for Node-specific settings - create vite.config.ts for Vite configuration - refactor API client and interceptors for improved structure - update auth client to use new package imports - streamline imports in App.tsx and other files
…Script configuration - rename index.html title to "ReqRes Example" - update script source in index.html to point to main.tsx - modify package.json scripts for Vite usage - enhance TypeScript configuration for better compatibility - add tsconfig.node.json for Node-specific settings - create vite.config.ts for Vite configuration - refactor API client to use new package imports - add headers to API client for improved request handling - introduce main.tsx as the entry point for the application
…ite and ViteJS plugin - add '@vitejs/plugin-react' version 4.4.1 to dependencies - add 'vite' version 6.3.3 to dependencies - update examples to ensure compatibility with new dependencies
- configure Dependabot for Dev Containers - configure Dependabot for GitHub Actions - configure Dependabot for npm
- add a new GitHub Actions workflow for building and testing the project - remove outdated workflows for CodeQL analysis, coverage, main CI, and size calculation - configure matrix strategy for testing across multiple Node.js versions
- add "packageManager" field to define pnpm version used for the project
…ing and building - ensure installation of dependencies is correctly defined in the workflow
- remove optional parameter from `onRefresh` method in `ReqResAuthClient`
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.
Motivation:
This PR undertakes a significant modernization effort across the project to:
Vite
,Vitest
) and a unified package management setup (pnpm workspaces
).Description of Changes:
This PR includes the following major changes:
Tooling Migration & Setup:
pnpm
workspaces (715760c
,cf337e2
,e83ac8c
).tsdx
withVite
(31cc75b
,1ed750d
).Jest
toVitest
(1314b1f
).df40adb
).CI/CD & Automation:
ffa82ff
).066b0fc
,32006c0
).84bcc2a
).Example Updates:
base
,refresh-token
,reqres
) to useVite
(4856be2
,7a831aa
,9ea03e3
).14816b4
,4856be2
).14816b4
).reqres
example (9ea03e3
).reqres
example (ebac7c8
).Documentation & Cleanup:
cf446f5
).3e0bd59
).1ed750d
).How to Test:
pnpm
installed (npm install -g pnpm
).pnpm install
from the root directory.pnpm -r test
.pnpm -r build
.cd examples/base
).pnpm install
(if needed, workspaces might handle this at the root).pnpm dev
(or the start command) to ensure the example runs correctly with Vite.pnpm build
to ensure the example builds successfully.Checklist:
Notes for Reviewers:
pnpm
.