/ts-react-vite-minimal-starter

my toolbelt for starting small typescript react projects with vite (client based)

Primary LanguageTypeScript

TypeScript + React + Vite

feat. Tailwind CSS + ESLint + Prettier)

Featuresome template to provides a additional setup to get TS-React working in Vite with HMR and handful of strict ESLint rules, I want to add to work with properly in my side projects.

Features:

  • Tailwind CSS integration
  • Fontsource integration
  • Custom Theme Hook
  • Lucide Icon Library
  • Full Dev Setup
    • ESLint
    • Prettier + Prettier Sort Imports
    • Husky + lint-staged
    • editorconfig

Usage

Install

  • clone
  • run npm install in root

Development

Start local dev server:

npm run dev

Build

build production ready copy to dist folder:

npm run build

Preview Build

to preview production-build locally:

# build before preview
npm run build

# the run preview
npm run preview