Skip to content

Vue3 template configured with vite, pinia, tailwind, and vue-router

License

Notifications You must be signed in to change notification settings

Raghav-Sahai/vue-project-template

Repository files navigation

Vue Project Template

This template includes everything you need to get a jump start on your next Vue project.

This project features...

Getting started

git clone https://github.com/Raghav-Sahai/vue-project-template.git
cd vue-project-template
npm install
npm run dev

A local development server will start on port 5173.

To kill the development server, simply press control + c in the terminal where the project is running.

Testing

For testing, this project is configured to use Vitest, a vite native unit testing framework.

To run tests:

npm run test:unit

To run tests in watch mode:

npm run test:unit:watch

Formatting and linting

Prettier and eslint are used to handle code formatting and linting.

To format the code:

npm run format

To lint the code:

npm run lint

Pre-commit

Pre-commit hooks are set up using husky

Husky is configured to run three commands before each commit:

npm run test:unit
npm run lint
npm run format

Recommended IDE Setup