/template-tauri-vite-react-ts-tailwind

『Tauri』Starter Vite template for React + Typescript + TailwindCSS + Prettier + ESLint build-in.

Primary LanguageTypeScriptThe UnlicenseUnlicense

TauriVite

template-tauri-vite-react-ts-tailwind

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 and package.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