Awesome
<div align="center"><img src="https://user-images.githubusercontent.com/31413093/197097625-5b3bd3cf-2bd6-4a3a-8059-a1fe9f28100b.svg" height="100px" alt="Vite SVG"/><img src="https://github.com/RoyRao2333/template-vite-svelte-ts-tailwind/assets/31413093/6765627b-df54-4f8f-a0a3-4fb7a4b4d4eb" height="100px" alt="Svelte SVG"/></div> <h2 align="center">template-vite-svelte-ts-tailwind</h2> <div align="center"> <a href="https://svelte.dev/"><image src="https://img.shields.io/static/v1?label=Svelte&message=^4&style=for-the-badge&labelColor=FFFFFF&logo=svelte&color=FF3E00"/></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> <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> </div>Introduction
A starter Vite template having:
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 node and a package manager (npm, yarn or pnpm). Go check them out if you don't have them locally installed.
Then you need a copy of this repository. You can download a copy of Svelte or SvelteKit as zip but tiged is recommended.
After you installed tiged, please excute the following command:
$ cd path-to-save-your-project
# If you want a Svelte + Vite project
$ tiged royrao2333/template-vite-svelte-ts-tailwind#Svelte your-project-name
# If you want a SvelteKit project
$ tiged royrao2333/template-vite-svelte-ts-tailwind#SvelteKit your-project-name
After getting a copy of the template, you can use your package manager to install dependecies:
$ cd path-to-your-project
$ pnpm install
# npm install
# yarn install
Usage
Let's run!
$ pnpm run dev
# npm run dev
# yarn run dev
We've already implemented some recommended configurations in
.eslintrc.js
,.eslintignore
,.prettierrc.js
and.prettierignore
. Feel free to edit them if you have your own preferences.
Contributing
Feel free to dive in! Open an issue or submit PRs.
License
MIT © Roy Rao