Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xqsit94/vite-vue3-ts-starter

A starter template for Vue3 with Vite and TypeScript includes Vitest, Eslint, Prettier, Husky, and Unocss
https://github.com/xqsit94/vite-vue3-ts-starter

eslint husky lint-staged prettier unocss vitest vue-typescript vue3 vuejs

Last synced: 11 days ago
JSON representation

A starter template for Vue3 with Vite and TypeScript includes Vitest, Eslint, Prettier, Husky, and Unocss

Awesome Lists containing this project

README

        

# Vite Vue 3 TypeScript Starter

A rapid development starter kit using Vite, Vue3, TypeScript, Vitest, ESLint, Prettier, Husky, and UnoCSS.

### Getting Started

Run

```bash
npx @xqsit94/vite-vue3-ts-starter my-vue-app
```

and follow the prompts.

### Features

- ๐Ÿš€ Fast development and build times with Vite
- ๐Ÿ–– Vue 3 for UI components
- ๐Ÿงญ Vue Router for client-side routing
- ๐Ÿ—„๏ธ Pinia for state management
- ๐Ÿฆ‹ TypeScript for static type checking
- ๐Ÿ“š Interactive UI development and testing with Storybook
- โœ… Unit Testing with Vitest
- ๐Ÿงน Linting and formatting with ESLint and Prettier
- ๐Ÿถ Pre-commit checks using Husky
- ๐ŸŽจ Optimized CSS with UnoCSS

### Commands

Using npm

```bash
npm run dev # Run the app in development mode.
npm run build # Build the app for production using type-check and build-only.
npm run preview # Serve the built app for preview.
npm run test:watch # Run Vitest in watch mode.
npm run test # Run Vitest without watch.
npm run lint # Run ESLint to check for code issues.
npm run format # Run Prettier to format code.
npm run postinstall # Install Husky Git hooks.
npm run prepare # Prepare Husky hooks.
```

#### Using Yarn

```bash
yarn dev # Run the app in development mode.
yarn build # Build the app for production using type-check and build-only.
yarn preview # Serve the built app for preview.
yarn test:watch # Run Vitest in watch mode.
yarn test # Run Vitest without watch.
yarn lint # Run ESLint to check for code issues.
yarn format # Run Prettier to format code.
yarn postinstall # Install Husky Git hooks.
yarn prepare # Prepare Husky hooks.
```

#### Using pnpm

```bash
pnpm dev # Run the app in development mode.
pnpm build # Build the app for production using type-check and build-only.
pnpm preview # Serve the built app for preview.
pnpm test:watch # Run Vitest in watch mode.
pnpm test # Run Vitest without watch.
pnpm lint # Run ESLint to check for code issues.
pnpm format # Run Prettier to format code.
pnpm postinstall # Install Husky Git hooks.
pnpm prepare # Prepare Husky hooks.
```