jvidalv/vital
关于
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
原文
Mocking up web app with Vital(speed)
Features
- ⚡️ 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
- 👑 Atomic Design organization - Component architecture
- 🗂 Path aliases - Clean imports
- 😃 Hero Icons - Beautiful hand-crafted SVG icons
- 🤖 LLM-ready - Comprehensive AI assistance docs (CLAUDE.md, AGENTS.md, BUGBOT.md)
- ☁️ Deploy on Netlify or Vercel, zero-config
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
- TypeScript - Type safety
- @vitejs/plugin-react - Official React plugin for Vite
- PostCSS - Transform CSS with JavaScript
- Netlify / Vercel - Zero-config deployment
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
nameandauthorfields inpackage.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 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.
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.
探索相关项目
加载中…