Vue 3 with Vite playground generated with https://github.com/vitejs/create-vite-app
- eslint and prettier
- jest
- naive custom jest snapshot serializer (Vue 3)
- vue-router
- vuex
- vue-i18n
- tailwindcss
- miragejs
-
Vite only pre-bundles package dependencies in the
dependencies
section ofpackage.json
. If you import a dependency in your code it must be underdependencies
and notdevDependencies
(seemiragejs
). -
In vite
index.html
is part of your source code. Vite parses / rewrites it during dev and also transforms it in build. Don't put it separate from your source code.
- Install npm packages
yarn install
- Run dev server
yarn dev
- Production build
yarn build
- Run Jest
yarn test
yarn test:watch