vue-ts-boilerplate
vue-ts-boilerplate copied to clipboard
Vue.js 3 TypeScript Boilerplate with Pinia, Vue Router and Tailwind CSS
Vue.js 3 TypeScript Boilerplate
This Vue.js 3 boilerplate is written in TypeScript and includes Pinia, Vue Router and Tailwind CSS.
Recommended IDE Setup
VSCode + Volar (and disable Vetur).
Type Support for .vue Imports in TS
TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need Volar to make the TypeScript language service aware of .vue types.
Customize configuration
See Vite Configuration Reference.
Project Setup
npm install
Compile and Hot-Reload for Development
npm dev
Type-Check, Compile and Minify for Production
npm build
Lint with ESLint
npm lint