8000 GitHub - minthulim/vite-react-template: A React TypeScript Starter Template with Tailwind CSS, React Router, React Query, Linting & Testing setup.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

A React TypeScript Starter Template with Tailwind CSS, React Router, React Query, Linting & Testing setup.

License

Notifications You must be signed in to change notification settings

minthulim/vite-react-template

Repository files navigation

vite-react-template

A React TypeScript Starter Template with Tailwind CSS, React Router, React Query, Linting & Testing setup.

Features

  • Dev Tools: Vite, TypeScript
  • Styling: Tailwind CSS
  • Routing: React Router
  • Data Fetching and Caching: Axios, TanStack React Query
  • Unit/Integration Testing: Vitest, Testing Library
  • End-to-end Testing: Cypress
  • Linting & Formating: ESLint, Stylelint, Prettier, Husky, lint-staged

Additional Features

Getting Started

  1. Clone with degit.
npx degit minthulim/vite-react-template my-project
cd my-project
  1. Install and run.

    pnpm install
    pnpm dev
    
    • With npm:
    rm pnpm-lock.yaml
    npm install
    npm run dev
    

Scripts

  • dev - Start Vite dev server.
  • build - Build for production. Output will be in dist folder.
  • preview - Locally preview production build. This serves files from dist folder.
  • lint - Runs ESLint, Stylelint and TypeScript.
  • test - Runs unit/integration tests in watch mode.
  • test:ci - Runs unit/integration tests one time and create code coverage report.
  • e2e - Opens Cypress test window.
  • e2e:headless - Start dev server and runs Cypress test in headless mode.
  • e2e:ci - Build project and run Cypress test in headless mode on Production build.

About

A React TypeScript Starter Template with Tailwind CSS, React Router, React Query, Linting & Testing setup.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0