Skip to content
项目

关于

Starter template for Vite with React (TypeScript). Supports Tailwind. Vitest and @react/testing-library configured and ready to go. Also ESLint, Prettier, and Atomic Design for components.

网站与应用开发

这些数字如何统计

可以做什么

  • ⚡️ Vite 8 - Next generation frontend tooling
  • ⚛️ React 19 - Latest version with improved performance
  • 🦾 TypeScript 7 - Strongly typed JavaScript, with the native compiler
  • 🎨 Tailwind CSS v4 - Latest utility-first CSS framework with CSS-based config

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Vital - Vite Starter Template

Mocking up web app with Vital(speed)


Live Demo


Features

Code Quality

  • Oxlint - Fast linter for JavaScript/TypeScript, with React rules
  • Oxfmt - Prettier-compatible code formatter
  • Commitlint - Lint commit messages
  • lint-staged - Run linters on git staged files (config included, no git hook installed)

Dev Tools

Try it now!

Requires Node.js 22.22.1 or newer and Yarn 1.

GitHub Template

Create a repo from this template on GitHub.

Clone to local

If you prefer to do it manually with the cleaner git history

npx degit jvidalv/vital my-vital-app
cd my-vital-app
yarn # If you don't have yarn installed, run: npm install -g yarn

Checklist

When you use this template, try follow the checklist to update your info properly

  • Rename name and author fields in package.json
  • Change the author name in LICENSE
  • Change the title in index.html
  • Change the favicon in public
  • Modify the manifest in public
  • Clean up the README's

And, enjoy :)

Usage

Development

Just run and visit http://localhost:3000/

yarn dev

Build

To build the App, run

yarn build

And you will see the generated file in dist that ready to be served.

Lint & Format

yarn lint          # Oxlint, fails on any finding
yarn lint:fix      # Oxlint with auto-fix
yarn format        # Format everything with Oxfmt
yarn format:check  # Check formatting without writing

Deployment

Deploy on Netlify

Go to Netlify and select your repository, OK along the way, and your App will be live in a minute.

Deploy to Netlify

Deploy on Vercel

Go to Vercel and select your repository, Vercel will detect Vite automatically and configure the build settings for you. Your App will be live in a minute.

Deploy with Vercel

Note: Both platforms automatically detect Vite projects and configure:

  • Build Command: yarn build
  • Output Directory: dist
  • Install Command: yarn install

Why

I have created several React apps recently. Setting the configs up is kinda the bottleneck for me to make the ideas simply come true within a very short time.

So I made this starter template for myself to create apps more easily, along with some good practices that I have learned from making those apps. Feel free to tweak it or even maintains your own forks.

探索相关项目

加载中…