Awesome
<div align="center"><img src = "https://github.com/RoyRao2333/template-tauri-vite-react-ts-tailwind/assets/31413093/91cdcd1b-2387-4c01-9710-9b2f44c10329" height="100px" alt="Tauri"/><img src = "https://user-images.githubusercontent.com/31413093/197097625-5b3bd3cf-2bd6-4a3a-8059-a1fe9f28100b.svg" height="100px" alt="Vite"/></div> <h2 align="center">template-tauri-vite-react-ts-tailwind</h2> <div align="center"> <a href="https://reactjs.org/"><image src="https://img.shields.io/static/v1?label=React&message=^18&style=for-the-badge&labelColor=FFFFFF&logo=react&color=61DAFB"/></a> <a href="https://www.typescriptlang.org/"><image src="https://img.shields.io/static/v1?label=TypeScript&message=^5&style=for-the-badge&labelColor=FFFFFF&logo=typescript&color=3178C6"/></a> <a href="https://www.typescriptlang.org/"><image src="https://img.shields.io/static/v1?label=Tailwind%20CSS&message=^3&style=for-the-badge&labelColor=FFFFFF&logo=tailwindcss&color=06B6D4"/></a> </div> <div align="center"> <a href="https://cn.vitejs.dev/"><image src="https://img.shields.io/static/v1?label=Vite&message=^4&style=for-the-badge&labelColor=FFFFFF&logo=vite&color=646CFF"/></a> <a href="https://www.typescriptlang.org/"><image src="https://img.shields.io/static/v1?label=Tailwind%20CSS&message=^3&style=for-the-badge&labelColor=FFFFFF&logo=tailwindcss&color=06B6D4"/></a> <a href="https://tauri.app/"><image src="https://img.shields.io/static/v1?label=Tauri&message=^1&style=for-the-badge&labelColor=FFFFFF&logo=tauri&color=FFC131"/></a> </div>Introduction
A starter Vite template having:
- Vite
- Tauri
- React
- TypeScript
- Tailwind CSS
- Multiple eslint & prettier plugins installed
Note
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详情中,请选择你需要的版本。
Install
This project uses pnpm as its package manager. Go check it out if you don't have it locally installed. If you use other package managers like Yarn or npm, you may need to change some scripts in
tauri.conf.json
andpackage.json
.
Then 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 command:
$ cd path-to-save-your-project
$ tiged royrao2333/template-tauri-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
Usage
Let's run!
$ pnpm tauri dev
We've already implemented some recommended configurations in
.eslintrc.js
,.eslintignore
,.prettierrc.json5
and.prettierignore
. Feel free to edit them if you have your own preferences.
Related Efforts
Contributing
Feel free to dive in! Open an issue or submit PRs.
License
MIT © Roy Rao