A starter Vite template having:
- React
- TypeScript
- Tailwind CSS
- Multiple ESLint & Prettier plugins installed
Important
The latest code of this template has updated Vite to version 5.0+, which requires Node.js version 18+ or 20+. Please upgrade if your package manager warns about it. Or you can use this release which is vite@^4.
该模板的最新代码中,已经将 Vite 的版本更新到了 5.0+,需要 18+ 或 20+ 版本的 Node.js。当你的包管理器发出警告时,请注意升级你的 Node.js 版本。如果你需要 vite@^4,请使用这个版本。
Tip
This code repository may occasionally update its dependency versions. If the dependency versions in the latest code do not meet your expectations, please go to Tags section to download a previous version of this template. I will display the dependencies used in each Tag, please choose the one you need.
这个代码仓库可能会不定期更新其依赖包的版本。如果最新代码中依赖的版本不符合你的期望,请移步Tags下载之前的模板。每个Tag中使用的依赖都会展示在Tag详情中,请选择你需要的版本。
Tip
The fastest way to use this template is to click the “Use this template” button on the top right of this repository. It will help you create a new repository quickly, and you can make any modifications to your own repository. If you still want to download this template separately, please continue reading.
使用该模板的最快方式,就是点击本仓库右上角的“使用该模板”按扭。这帮助你使用该模板迅速创建一个新的仓库,然后你可以对自己的仓库进行任何修改。如果你仍然希望单独下载此模板,可继续往下读。
If you need a copy of this repository. You can download a copy as zip but tiged is recommended.
After you installed tiged, please excute the following commands:
$ cd path-to-save-your-project
$ tiged royrao2333/template-vite-react-ts-tailwind your-project-name
After getting a copy of this repository, you can use your package manager to install dependecies:
$ cd path-to-your-project
$ pnpm install
# npm install
# yarn install
Let's run!
$ pnpm run dev
# npm run dev
# yarn run dev
We've already implemented some recommended configurations in
eslint.config.js
,.prettierrc.json5
and.prettierignore
. Feel free to edit them if you have your own preferences.
Feel free to dive in! Open an issue or submit PRs.