dev-ui
is a robust and flexible development environment setup for React. This repository demonstrates an optimized testing setup with modern tooling and practices for ensuring code quality.
- TypeScript support for static type checking
- Vite for building, developing and previewing the project
- ESLint and Prettier for code linting and formatting
- Radix UI for constructing UI components
- Vitest for unit and integration testing
- Playwright for end-to-end testing
- Husky for managing git hooks
- Tailwind CSS for utility-first CSS
First, clone the repository
Then, navigate into the project directory:
cd dev-ui
Install the project dependencies:
pnpm install
This project includes several pnpm scripts for managing the development lifecycle:
pnpm dev
: Runs the Vite development serverpnpm build
: Runs the TypeScript compiler and then builds the project with Vitepnpm lint
: Lints the source files with ESLintpnpm preview
: Runs the Vite preview server on the production buildpnpm test
: Runs unit and integration tests with Vitestpnpm test-ui
: Opens the Vitest UIpnpm coverage
: Generates code coverage reports using Vitestpnpm prepare
: Sets up Husky for managing git hookspnpm format
: Formats the entire project with Prettierpnpm test-e2e
: Runs end-to-end tests with Playwright