A blazing fast setup to kickstart your development with Vue 3, TypeScript, and Vite!
This template helps you dive into developing with Vue 3 + TypeScript in Vite. Follow the steps below to get started!
git clone https://github.com/lafllamme/flameboard.git
cd flameboard
npm install
npm run dev
Your app should now be running at http://localhost:3000
π
For the best experience, use:
-
VSCode + Volar for Vue 3 and
<script setup>
syntax.Note: If you're using
<script setup>
, ensure you have Volar enabled instead of Vetur, as<script setup>
is in RFC stage.
<script setup>
is a syntactic sugar that streamlines component definition in Vue 3. To enable proper IDE support, use Volar and disable Vetur.
By default, TypeScript shims .vue
files as generic Vue components. For full prop type support in .vue
files, use the following setup.
- Open the VSCode Command Palette.
- Run
Volar: Switch TS Plugin on/off
.
- Install
@vuedx/typescript-plugin-vue
and add it to theplugins
section intsconfig.json
. - Delete
src/shims-vue.d.ts
. - Open
src/main.ts
in VSCode. - Open the VSCode Command Palette and select "Select TypeScript version" -> "Use workspace version".
- β‘ Vite - Super fast, no-bundle dev server
- π Vue 3 - The latest Vue with composition API
- π TypeScript - Type-safe development with intellisense and type-checking
- π₯ Hot Module Replacement (HMR) - Instant updates during development
flameboard/
βββ public/ # Static files
βββ src/ # Source code
β βββ assets/ # Assets like images and styles
β βββ components/ # Vue components
β βββ App.vue # Root component
β βββ main.ts # Entry point
βββ .gitignore # Git ignore rules
βββ package.json # Project dependencies and scripts
βββ vite.config.ts # Vite configuration
To build the app for production, run:
npm run build
The output will be in the dist/
directory, ready for deployment.
- Vue 3 Documentation - Learn more about Vue 3 features.
- Vite Documentation - Explore Viteβs blazing-fast dev server.
- TypeScript Documentation - Discover how TypeScript helps build reliable applications.
Contributions are welcome! Feel free to open an issue or submit a pull request. Please make sure to follow the Code of Conduct.
This project is licensed under the MIT License.
Made with β€οΈ by lafllamme