Skip to content

Setting up VueJs ​

Create the new app ​

VueJs comes with prebuilt tooling making creation of the new app smooth and saving a lot of time.

  1. From the root directory of the project, run:
bash
pnpm create vue@latest

and follow the wizard. Here are the recommended selections:

┌  Vue.js - The Progressive JavaScript Framework
│
◇  Project name (target directory):
│  apps
│
◇  Select features to include in your       
project: (↑/↓ to navigate, space to select, 
a to toggle all, enter to confirm)
│  TypeScript, Router (SPA development),    
Pinia (state management), Vitest (unit      
testing), End-to-End Testing, ESLint (error 
prevention), Prettier (code formatting)     
│
◇  Select an End-to-End testing framework:  
(↑/↓ to navigate, enter to confirm)
│  Playwright
│
◇  Select experimental features to include  
in your project: (↑/↓ to navigate, space to 
select, a to toggle all, enter to confirm)  
│  rolldown-vite (experimental)
│
◇  Skip all example code and start with a   
blank Vue project?
│  Yes
  1. Run the project
bash
cd apps
pnpm install
pnpm format
pnpm dev
  1. You will now be able to open your application in a browser. Follow instructions in a terminal.

Vue + Vite Web Application in Typescript

What is included? ​

As mentioned, Vue.js comes with a number of selections, many of which will be improved and extended in the app. Here is a brief summary.

TypeScript ​

TypeScript is a strongly typed programming language that builds on JavaScript, giving you better tooling at any scale.

Vue Router ​

Vue Router provides expressive, configurable and convenient routing capabilities for the application.

Pinia ​

Pinia provides state management for Vue.js enabling the creation of large and complex applications.

Vitest ​

Vitest is a test framework for writing unit tests and component tests.

Playwright ​

Playwright is a an end-to-end test framework for modern web apps. It bundles test runner, assertions, isolation, parallelization and rich tooling and supports variety of browsers.

ESLint ​

ESLint is a static code analyzer that identifies potential problems in code.

Prettier ​

Prettier is a code formatter that ensures that code is consistently written throughout the project.

File path alias ​

In addition, the app is pre-configured with a file path alias for files in ./src to avoid writing constructions like ../../include. Instead, we can use a file path alias for the source directory and write @/components/include, where @ represents the ./src directory.

NOTE

In coming months major upgrades are expected to boost performance and developer experience by upgrading tooling to Rust and introducing Alien Signals and Vapor mode. At the same time no changes in APIs are expected.