Go to file
2023-01-09 11:20:26 +01:00
.github chore: bring back funding 2022-07-17 17:18:37 +08:00
.vscode chore: update deps 2022-05-11 14:00:21 +08:00
cypress chore: fix e2e test 2022-07-24 19:45:42 +08:00
locales i18n: locale support for Georgian (#446) 2022-12-12 10:29:47 +01:00
public fix: favicon dark mode (#359) 2022-05-16 11:07:37 +08:00
src feat: rename store folder to stores (#456) 2022-12-19 19:52:11 +01:00
test fix: use two words component name 2022-11-30 08:05:45 +08:00
.dockerignore chore: fix container build and minimize container size (#380) 2022-07-01 00:09:36 +08:00
.editorconfig feat: add .editorconfig file (#379) 2022-06-30 12:01:56 +08:00
.eslintrc feat: integrate vitest 2021-12-26 13:16:12 +08:00
.gitignore chore: update deps 2022-11-22 19:06:42 +08:00
.npmrc feat: enable composable auto import 2022-05-24 15:17:55 +08:00
cypress.config.ts chore: upgrade cypress 2022-06-30 13:25:36 +08:00
Dockerfile chore: fix container build and minimize container size (#380) 2022-07-01 00:09:36 +08:00
index.html fix: favicon dark mode (#359) 2022-05-16 11:07:37 +08:00
LICENSE chore: update deps 2021-02-26 15:17:08 +08:00
netlify.toml chore: remove pnpm workaround for netlify (#434) 2022-10-19 02:17:42 +09:00
package.json chore: upgrade vite-plugin-vue-i18n to unplugin-vue-i18n (#455) 2022-12-19 19:52:24 +01:00
pnpm-lock.yaml chore: upgrade vite-plugin-vue-i18n to unplugin-vue-i18n (#455) 2022-12-19 19:52:24 +01:00
README.md docs: upgrade vite-plugin-vue-i18n to unplugin-vue-i18n (#457) 2022-12-21 09:46:33 +01:00
README.zh-CN.md docs: update vite-plugin-vue-i18n to unplugin-vue-i18n in README.zh-C… (#464) 2023-01-09 11:20:26 +01:00
tsconfig.json feat: add vue macros (#448) 2022-11-29 19:43:13 +08:00
unocss.config.ts fix: improve lighthouse accessibility (#362) 2022-05-17 22:15:17 +08:00
vite.config.ts chore: upgrade unplugin-vue-i18n reference link (#458) 2022-12-21 16:28:52 +01:00

Vitesse - Opinionated Vite Starter Template

Mocking up web app with Vitesse(speed)


Live Demo


English | 简体中文


Features


Pre-packed

UI Frameworks

  • UnoCSS - The instant on-demand atomic CSS engine.

Icons

Plugins

Coding Style

Dev tools

Variations

As this template is strongly opinionated, the following provides a curated list for community-maintained variations with different preferences and feature sets. Check them out as well. PR to add yours is also welcome!

Official
Community

Try it now!

Vitesse requires Node >=14.18

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 antfu/vitesse my-vitesse-app
cd my-vitesse-app
pnpm i # If you don't have pnpm installed, run: npm install -g pnpm

Checklist

When you use this template, try follow the checklist to update your info properly

  • Change the author name in LICENSE
  • Change the title in App.vue
  • Change the hostname in vite.config.ts
  • Change the favicon in public
  • Remove the .github folder which contains the funding info
  • Clean up the READMEs and remove routes

And, enjoy :)

Usage

Development

Just run and visit http://localhost:3333

pnpm dev

Build

To build the App, run

pnpm build

And you will see the generated file in dist that ready to be served.

Deploy on Netlify

Go to Netlify and select your clone, OK along the way, and your App will be live in a minute.

Docker Production Build

First, build the vitesse image by opening the terminal in the project's root directory.

docker buildx build . -t vitesse:latest

Run the image and specify port mapping with the -p flag.

docker run --rm -it -p 8080:80 vitesse:latest

Why

I have created several Vite 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. It's strongly opinionated, but feel free to tweak it or even maintain your own forks. (see community maintained variation forks)