Vite3 + Vue2 + JavaScript + Vue Router + Pinia + TDesign + Less + Axios + ESLint + Stylelint + Prettier
English | 简体中文
- ⚡️ Vite 3 - born with fastness
- 🖖 Vue 3 - Composition API and
<script setup>
- 🚦 Vue Router - The official router for Vue.js.
- 📦 Pinia - Intuitive, type safe and flexible Store for Vue
- 💻 TDesign - Vue Next for Web
- 🎨 Less - It's CSS, with just a little more
- 🔗 Axios - Promise based HTTP client for the browser and node.js
- 🧰 Husky + Lint-Staged - Git Hook Tools
- 🛡️ EditorConfig + ESLint + Prettier + Stylelint + Airbnb JavaScript Style Guide - Code Standards
- 🔨 Commitizen + Commitlint - Submit Standards
- ESLint with eslint-config-airbnb-base
- Prettier with eslint-config-prettier
- Stylelint with stylelint-config-standard
- npm - Package manager
- Visual Stuido Code Extensions
- Vite - Fire up Vite server automatically
- Volar - Vue 3
<script setup>
IDE support - EditorConfig for VS Code - A solution for unifying code formats
- ESLint - Find and fix problems in your JavaScript code
- Prettier - An opinionated code formatter
- StyleLint - A mighty, modern linter that helps you avoid errors and enforce conventions in your styles.
Vite3 Vue3 JavaScript Starter Template requires Node >= 14.18
Create a repo from this template on GitHub.
If you prefer to do it manually with the cleaner git history
# clone repository
git clone https://github.com/ElanYoung/vite-vue-js-starter-template
# open folder vite-vue-js-starter-template
cd vite-vue-js-starter-template
# install packages
npm i
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.js
- Change the favicon in
public
- Remove the
.github
folder which contains the funding info - Clean up the READMEs and remove routes
Just run and visit http://localhost:3000
## install dependencies
npm install
## set up
npm run dev
## build
npm run build
Copyright (c) 2022 ElanYoung