Overview
This is a React 18 + TypeScript + Vite and React Testing Library + GitHub Actions starter template built with Vite. It includes features like Vite 4, React 18 with TypeScript, Vitest + React Testing Library, GitHub Actions with deployment on GitHub Pages, coding style recommendations, Git hooks, and more.
Features
- Vite 4: A fast build tool for web development.
- React 18 with TypeScript: A powerful JavaScript library for building user interfaces.
- Vitest + React Testing Library: A testing framework for React applications.
- GitHub Actions with deployment on GitHub Pages: A feature that allows you to automate your workflows and deploy your app to GitHub Pages.
- Coding Style: Includes VSCode settings & extensions recommendations, EditorConfig, and ESLint & Prettier configured.
- Git Hooks: Allows you to run scripts automatically before or after certain Git events.
- Husky: A Git hook manager that makes it easy to use Git hooks as part of your development workflows.
- commitlint @ commit-msg: A tool that checks if your commit messages meet certain criteria.
- lint-staged @ precommit: A tool that allows you to run scripts on staged files in your Git repository.
Installation
To use this template, follow these steps:
- Copy the template to your project.
- Install the necessary dependencies using pnpm, npm, or yarn.
- Customize the configuration files as needed.
- Run the build and test commands.
- Configure GitHub Actions to work with your repo.
- Deploy your app to GitHub Pages.
For detailed instructions on each step, refer to the provided links.
Summary
This React starter template provides a comprehensive set of features and tools to help developers quickly set up a React 18 + TypeScript project. With support for Vite, React Testing Library, GitHub Actions, and more, it offers a productive and efficient development environment. The installation guide and documentation provide clear instructions on how to customize the template and get started with building and testing your React app.