vue3-ts-vite-starter-template
vue3-ts-vite-starter-template
A single page app Vite starter template, created to easily bootstrap Vue.js 3 apps.
Features
- Vue 3
- Vite 8
- TypeScript 6
- Vitest 4 for unit testing
- Pinia 3 for state management
- Vue Router 5 for client-side routing
- Tailwind 4 for layout and styling
- SCSS variables inside Vue components
- Purgecss for eliminating unused CSS
- Knip for detecting unused files and exports
- Basic multiple layouts feature
- ESLint config based on neostandard with sensible defaults :relaxed:
- Prettier for code formatting
- Automated release workflow with semantic-release
Project setup
pnpm install
Compiles and hot-reloads for development
pnpm run dev
Compiles and minifies for production
pnpm run build
Run your unit tests
pnpm run test:unit
Run unit tests in non-watch mode
pnpm run test:unit-nowatch
Run unit tests with coverage output
pnpm run test:unit-coverage
Lints files
pnpm run lint
Lints and fixes files
pnpm run lint-fix
Runs Typechecks
pnpm run typecheck
Detects unused files and exports
pnpm run knip
Runs all quality checks
pnpm run quality
This runs knip, lint, typecheck, unit tests in non-watch mode, and build.
Testing conventions
- Test files are colocated with source files using
*.spec.ts - Shared test infrastructure lives in
tests/ tests/vitest.router-mock-setup.tsprovides a default router mock for route-aware teststests/vitest.helpers.tsexposescreateWrapperForfor tests that need shared mount setupcreateWrapperForincludes default Pinia plugin wiring and supports mergedglobal.directives- Prefer plain
mountfor simple component tests and usecreateWrapperForonly when shared setup is required
Customize configuration
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 3.1.8 | ^3.5.43 | MIT | |
| 3.1.7 | ^3.5.42 | MIT | |
| 3.1.6 | ^3.5.40 | MIT | |
| 3.1.5 | ^3.5.40 | MIT | |
| 3.1.4 | ^3.5.39 | MIT | |
| 3.1.3 | ^3.5.38 | MIT | |
| 3.1.2 | ^3.5.35 | MIT | |
| 3.1.1 | ^3.5.35 | MIT | |
| 3.1.0 | ^3.5.34 | MIT | |
| 3.0.25 | ^3.5.34 | MIT | |
| 3.0.24 | ^3.5.34 | MIT | |
| 3.0.23 | ^3.5.33 | MIT | |
| 3.0.22 | ^3.5.32 | MIT | |
| 3.0.21 | ^3.5.32 | MIT | |
| 3.0.20 | ^3.5.32 | MIT | |
| 3.0.19 | ^3.5.31 | MIT | |
| 3.0.18 | ^3.5.29 | MIT | |
| 3.0.17 | ^3.5.27 | MIT | |
| 3.0.16 | ^3.5.26 | MIT | |
| 3.0.15 | ^3.5.25 | MIT | |
| 3.0.14 | ^3.5.22 | MIT | |
| 3.0.13 | ^3.5.22 | MIT | |
| 3.0.12 | ^3.5.21 | MIT | |
| 3.0.11 | ^3.5.21 | MIT | |
| 3.0.10 | ^3.5.18 | MIT | |
| 3.0.9 | ^3.5.18 | MIT | |
| 3.0.8 | ^3.5.17 | MIT | |
| 3.0.7 | ^3.5.17 | MIT | |
| 3.0.6 | ^3.5.16 | MIT | |
| 3.0.5 | ^3.5.16 | MIT |
Showing the latest 30 of 86. See every release on npm