Skip to content

denielaa/vite-react-typescript

Repository files navigation

vite-react-typescript

Vite + React + TS template

This template equiped with:

  • Linter
  • Prettier
  • Husky with Precommit
  • Command generator to generate Page and component

Setup

// copy .env file
cp .env.sample .env

Replace the VITE_BASE_API_URL with your Backend API url

Install dependencies

pnpm install

Run and serve local dev

pnpm dev

Analyze build size

pnpm analyze

Generator

This project has several command generators to automatically create a new component or a page. Built with Hygen

Create new shared component

npx hygen shared-component new ComponentName

Create new page component

npx hygen page-component new --page PageName --name ComponentName

Create a new Page

npx hygen page new PageName

TODO

  • Update documentation with the project structure