This template should help get you started developing with Vue 3 in Vite.
This repository contains the topics covered in the training series I created for Vue 3. Click here to access the free Vue 3 course.
Course Contents (Turkish)
- Vue 3 with TypeScript Usage - Introduction
- Vue 3 Reactivity: ref vs reactive
- What is Vite?
- Introduction and Development Environment
- Project Structure
- Options vs Composition API
- Template
- Reactivity (ref, reactive, watch, and computed)
- List Rendering (v-for)
- Form Input Bindings (v-model)
- Event Handling - Template Refs - Class and Style Bindings
- FormKit - How to Use Extensions?
- Composable
- Components
- Router - Routing
- VueUse
- HTTP Requests with Fetch API
- State Management - Pinia
- Axios
- Ant Design Vue
- Authentication Scenario with Pinia
- Authentication Scenario with Supabase
- Layout Design and Management
- Async Components
- Build App
- Real World App - Catalog APP
VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
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 TypeScript Vue Plugin (Volar) to make the TypeScript language service aware of .vue types.
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:
- Disable the built-in TypeScript Extension
- Run
Extensions: Show Built-in Extensionsfrom VSCode's command palette - Find
TypeScript and JavaScript Language Features, right click and selectDisable (Workspace)
- Run
- Reload the VSCode window by running
Developer: Reload Windowfrom the command palette.
See Vite Configuration Reference.
npm installnpm run devnpm run buildLint with ESLint
npm run lint