wdzeng / vue3-template

A vue3 project template with pnpm, Vite, Vue Router, Pinia, TypeScript, SCSS, Tailwindcss v3 and sweetalert2.

Home Page:https://wdzeng.github.io/vue3-template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vue 3 Template

This is a template Vue 3 project, integrated with:

Recommended IDE Setup

Use IDE VSCode for development.

TypeScript Setup

You must make VSCode to use Typescript which is installed on node_modules instead of a builtin one. Open command palette (ctrl + shift + p) and search for TypeScript: Select TypeScript Version... to update the settings.

Vue.js Development Setup

Install VSCode extensions Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).

You must make VSCode to use Typescript which is installed on node_modules instead of a builtin one. Open command palette (ctrl + shift + p) and search for Volar: Select TypeScript Version... to update the settings.

Formatter and Linter Setup

Install VSCode extension ESLint and set it as default formatter for all .vue and .ts files in VSCode. Though Prettier is installed on pnpm i, you don't need to install or enable Prettier extension, since we are not using it with VSCode.

Development Backend

Project Setup

pnpm i

Compile and Hot-Reload for Development

pnpm dev

Type-Check, Compile and Minify for Production

pnpm build

Run Unit Tests with Vitest

pnpm test:unit

Lint with ESLint

pnpm lint

Development with Storybook

pnpm storybook

About

A vue3 project template with pnpm, Vite, Vue Router, Pinia, TypeScript, SCSS, Tailwindcss v3 and sweetalert2.

https://wdzeng.github.io/vue3-template

License:MIT License


Languages

Language:Vue 54.2%Language:TypeScript 12.5%Language:MDX 12.1%Language:JavaScript 8.2%Language:SCSS 6.9%Language:CSS 5.4%Language:HTML 0.7%