Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 2.33 KB

README.md

File metadata and controls

31 lines (21 loc) · 2.33 KB

Vue 3 + Typescript + Vite

This template should help get you started developing with Vue 3, Typescript and Jest Unit Testing in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.

Scaffolding

That project was set up following in parts Build a Vue 3 + TypeScript dev environment with Vite

Shell Setup

nvm

Please install nvm.

direnv

Copy the file .envrc.template to .envrc. Install direnv and run direnv allow on the repository root.

The provided .envrc configuration uses nvm to install a specific node version, it installs pnpm globally.

pnpm

The project uses pnpm as package manager. Its commands are essentially similar to yarn. pnpm needs the .npmrc file which is already part of the repostory. To install the project dependencies run pnpm install.

Open Browser Automatically

If you're on a Unix based shell you can have the pnpm dev command open in a specific browser in incognito / private browsing mode automatically. .envrc is already prepared for that. Just adapt the contents of the file .open-browser.js to your needs.

If you do not want to use that feature, just provide your .envrc excluding the BROWSER export.

Recommended IDE Setup

Choose one setup for all participants. Unfortunately, CodeTogether and Code With Me are not compatible with each other.