This template should help get you started developing with Vue 3 in Vite.
✔ Add TypeScript? No ✔ Add JSX Support? No ✔ Add Vue Router for Single Page Application development? Yes ✔ Add Pinia for state management? Yes ✔ Add Vitest for Unit Testing? Yes ✔ Add an End-to-End Testing Solution? › Cypress ✔ Add ESLint for code quality? Yes ✔ Add Prettier for code formatting? Yes
Run json-server --watch db.json
or
Run npm run serve:api
VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
See Vite Configuration Reference.
npm install
npm run dev
npm run build
Run Unit Tests with Vitest
npm run test:unit
Run End-to-End Tests with Cypress
npm run test:e2e:dev
This runs the end-to-end tests against the Vite development server. It is much faster than the production build.
But it's still recommended to test the production build with test:e2e
before deploying (e.g. in CI environments):
npm run build
npm run test:e2e
Lint with ESLint
npm run lint