Skip to content

Soviut/vite-vue3-template

Repository files navigation

Vite Vue 3 Template

This template includes Vite, Vue 3, Vue Router, Pinya, TypeScript, Prettier, ESLint and TailwindCSS.

Based on this series of articles.

Project setup

Clone project with degit

npx degit soviut/vite-vue3-template project-name
npm install

Development

Install dependencies

npm install

Start development server

npm run dev

Compile and minify for production

npm run build

Preview build

npm run preview

Run unit tests

npm run test

With watching enabled

npm run test:watch

Generate a test coverage report

npm run test:coverage

Lint

npm run lint

Check for type errors

npm run check

Format with Prettier

npm run format

Recommended IDE Setup

Visual Studio Code is the recommended IDE.

When opening the project in VSCode, popups to install the following recommended extensions should appear. These are defined in the .vscode/extensions.json.

Additionally, key workspace settings are included in the .vscode/settings.json such as "Format on Save".

Pre-Commit

Pre-commit is a local development tool that ensures all linting and code style guidelines pass before committing code to a branch.

It will run every time you commit so be prepared for a commit to take a few seconds to complete.

Post-Install Checklist

Once you have installed the template, you should do the following

  • update name in package.json
  • update title in index.html
  • update meta tags in index.html
  • test og meta tags in https://developers.facebook.com/tools/debug/
  • update createHead title in main.ts
  • update title in en.yaml
  • remove commented out sidebar code in App.vue
  • update favicon
  • update project description at top of README
  • remove Project Setup section from README
  • remove this Post-Install Checklist section from README

About

Vite, Vue3, Vue Router 4, Pinya, TypeScript, ESLint, Prettier, ViTest, Tailwind

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published