Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/mukhriddin-dev/vue-typescript-starter-application

VueJS+TypeScript starter application
https://github.com/mukhriddin-dev/vue-typescript-starter-application

e2e pinia playwright scss tailwindcss tanstack-query typescript vite vue

Last synced: 3 days ago
JSON representation

VueJS+TypeScript starter application

Awesome Lists containing this project

README

        

# Vue+TS starter Application

This template should help get you started developing with Vue 3 in Vite.

## Folder structure

```
└── πŸ“src
└── App.vue
└── πŸ“assets
└── base.css
└── πŸ“fonts
└── πŸ“images
└── index.ts
└── logo.svg
└── main.css
└── πŸ“components
└── πŸ“__tests__
└── HelloWorld.spec.ts
└── πŸ“containers
└── index.ts
└── πŸ“icons
└── IconCommunity.vue
└── IconDocumentation.vue
└── IconEcosystem.vue
└── IconSupport.vue
└── IconTooling.vue
└── index.ts
└── index.ts
└── πŸ“ui
└── index.ts
└── πŸ“composables
└── index.ts
└── πŸ“constants
└── index.ts
└── πŸ“helpers
└── index.ts
└── πŸ“layouts
└── πŸ“auth
└── index.vue
└── style.scss
└── πŸ“dashboard
└── index.vue
└── style.scss
└── index.ts
└── main.ts
└── πŸ“middleware
└── index.ts
└── πŸ“plugins
└── index.ts
└── πŸ“router
└── index.ts
└── πŸ“services
└── config.ts
└── index.ts
└── πŸ“post
└── index.ts
└── readme.md
└── πŸ“stores
└── counter.ts
└── index.ts
└── πŸ“templates
└── index.ts
└── πŸ“types
└── πŸ“enums
└── index.ts
└── index.ts
└── πŸ“interfaces
└── index.ts
└── πŸ“models
└── index.ts
└── πŸ“types
└── index.ts
└── πŸ“utils
└── πŸ“dev-tool
└── index.vue
└── index.ts
└── πŸ“use-mutation
└── index.ts
└── πŸ“views
└── πŸ“home
└── index.vue
└── index.ts
```

## Recommended IDE Setup

[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur).

## Type Support for `.vue` Imports in TS

TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) to make the TypeScript language service aware of `.vue` types.

## Customize configuration

See [Vite Configuration Reference](https://vitejs.dev/config/).

## Project Setup

```sh
npm install
```

### Compile and Hot-Reload for Development

```sh
npm run dev
```

### Type-Check, Compile and Minify for Production

```sh
npm run build
```

### Run Unit Tests with [Vitest](https://vitest.dev/)

```sh
npm run test:unit
```

### Run End-to-End Tests with [Playwright](https://playwright.dev)

```sh
# Install browsers for the first run
npx playwright install

# When testing on CI, must build the project first
npm run build

# Runs the end-to-end tests
npm run test:e2e
# Runs the tests only on Chromium
npm run test:e2e -- --project=chromium
# Runs the tests of a specific file
npm run test:e2e -- tests/example.spec.ts
# Runs the tests in debug mode
npm run test:e2e -- --debug
```

### Lint with [ESLint](https://eslint.org/)

```sh
npm run lint
```