@light_yagami/create-vite-react
v1.0.8
Published
a boilerplate/template generator for vite react projects
Downloads
55
Readme
@light_yagami/create-vite-react
A modern, type-safe scaffolding tool for React and Tailwind CSS projects. This generator provides a pre-configured Vite setup with React 19, Tailwind CSS 4, and automated path aliases.
Features
- ⚛️ React 19 & Vite 7: Built on the latest stable versions of React and Vite.
- 🎨 Tailwind CSS 4: Integrated with the new
@tailwindcss/viteplugin for a seamless CSS-in-JS-like experience. - ⚡ React Compiler: Pre-configured with the experimental React Compiler (
babel-plugin-react-compiler) for automatic performance optimizations. - 🗺️ Import Path Aliases: Type-safe path aliases are automatically synced between TypeScript and Vite.
@/*->src/*@components/*->src/components/*@utils/*->src/utils/*
- 🛡️ Strict TypeScript: High-standard TypeScript configuration for maximum type safety.
- 🧹 Modern Linting: ESLint 9+ configuration using the latest flat config standards.
Usage
You can create a new project using this template with a single command:
npx @light_yagami/create-vite-react my-awesome-appReplace my-awesome-app with your desired project name.
Getting Started
Once your project is created, navigate into the directory and install dependencies:
cd my-awesome-app
yarn install # or npm installStart the development server:
yarn dev # or npm run devProject Structure
my-awesome-app/
├── public/ # Static assets
├── src/
│ ├── components/ # React components (aliased as @components/*)
│ ├── App.tsx # Root component
│ ├── main.tsx # Entry point
│ └── style.css # Tailwind CSS entry
├── index.html
├── tsconfig.json # TypeScript configuration
└── vite.config.ts # Vite configurationPath Aliases
This template simplifies imports by providing pre-defined aliases. Instead of:
import Button from '../../components/Button';You can use:
import Button from '@components/Button';License
ISC
