A minimal starter for a Vue3 project.
This template comes pre-packed with
- vue-router for routing
- vue-i18n for localization
- vitest for unit testing
- cypress for e2e testing
- unplugin-vue-router for file based routing
- unplugin-vue-components for auto imported components
- vite-plugin-vue-layouts for route based layouts
A CI pipeline for Github is configured in .github/workflows/ci.yml
. On push it will run typecheck
, lint
, build
as well as unit
and e2e
test.
A Dockerfile is present, too. The project can be packaged as a docker image with
docker build -t vue3-starter .
and run with
docker run -p 80:80 vue3-starter
which will start a nginx container that serves the application at localhost:80
git clone https://github.com/FjellOverflow/vue3-starter.git
cd vue3-starter
pnpm i
In VSCode, go to Extensions, type @recommended
and install recommended extensions.
Called with pnpm run <command>
command | effect |
---|---|
dev | starts hot-module-reload server |
build | builds for production |
preview | serves the build app for preview |
test:unit | runs unit tests with vitest |
test:e2e | runs end-to-end tests with cypress |
lint | lints source |
typecheck | typechecks source |
update-deps | auto-updates dependencies |