This template should help get you started developing with Vue 3 in Vite.
VS Code + Vue (Official) (and disable Vetur).
- Chromium-based browsers (Chrome, Edge, Brave, etc.):
- Firefox:
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.
See Vite Configuration Reference.
npm installnpm run devnpm run buildLint with ESLint
npm run lint- Pull requests run CI via GitHub Actions:
- Lint (
npm run lint:eslint), type-check, and build.
- Lint (
- Pushes to
mainbuild and deploy to GitHub Pages.
- Ensure Pages is enabled: Settings → Pages → Source: "GitHub Actions".
- The workflow builds with Vite
baseset to/rolling-window-visualizer/. - Deploy workflow files:
.github/workflows/ci.yml— PR lint/type-check/build..github/workflows/deploy.yml— Build onmainand deploydist.
- Node versions supported:
^20.19.0 || >=22.12.0; workflows use Node 22. - Local preview of production build:
npm run build
npm run preview