All Projects → pohunchn → vite-ts-quick

pohunchn / vite-ts-quick

Licence: MIT license
vite2.x + vue3.x + typescript + vuex + vue-router + i18n + element-plus

Programming Languages

typescript
32286 projects
Vue
7211 projects
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to vite-ts-quick

vite-vue3-starter
⭐ A Vite 2.x + Vue 3.x + TypeScript template starter
Stars: ✭ 384 (+269.23%)
Mutual labels:  vite
vitesome
A simple opinionated Vue3 Starter Template with Vite.js
Stars: ✭ 124 (+19.23%)
Mutual labels:  vite
vite-vue-admin
🎉🎉使用Vite + Vue3 + TypeScript + Element-plus + Mock开发的后台管理系统🎉🎉
Stars: ✭ 97 (-6.73%)
Mutual labels:  vite
vite-primevue-starter
VUE 3 Starter project for using primevue 3 with Vite 2 - Pages, Layouts, Validation
Stars: ✭ 37 (-64.42%)
Mutual labels:  vite
vite-wiki
📄The Vite Wiki
Stars: ✭ 37 (-64.42%)
Mutual labels:  vite
rakkasjs
Lightning fast Next.js alternative powered by Vite
Stars: ✭ 527 (+406.73%)
Mutual labels:  vite
layui-vue
layui - vue(谐音:类 UI) 是 一 套 Vue 3.0 的 桌 面 端 组 件 库
Stars: ✭ 112 (+7.69%)
Mutual labels:  vite
Hajime
Hajime - Competition software management for Fencing Martial Arts
Stars: ✭ 13 (-87.5%)
Mutual labels:  vite
element-shuang
🎉基于 Vue3、element-plus、vite封装的后台管理系统模板,https://shuangda1018.github.io/element-shuang/#/table
Stars: ✭ 37 (-64.42%)
Mutual labels:  vite
tov-template
vite + vue3 + ts 开箱即用现代开发模板
Stars: ✭ 251 (+141.35%)
Mutual labels:  vite
vite-svg
Use SVG files as Vue components with Vite
Stars: ✭ 98 (-5.77%)
Mutual labels:  vite
vite-plugin-inspect
Inspect the intermediate state of Vite plugins
Stars: ✭ 491 (+372.12%)
Mutual labels:  vite
vue-vben-admin
A modern vue admin. It is based on Vue3, vite and TypeScript. It's fast!
Stars: ✭ 12,169 (+11600.96%)
Mutual labels:  vite
reactjs-vite-tailwindcss-boilerplate
ReactJS + Vite boilerplate to be used with Tailwindcss.
Stars: ✭ 103 (-0.96%)
Mutual labels:  vite
vue2-timeago
🙌 A vue component used to format date with time ago statement. 💬
Stars: ✭ 76 (-26.92%)
Mutual labels:  vite
portfolio
simple portfolio use vue3 and vite inspired by wrongakram
Stars: ✭ 22 (-78.85%)
Mutual labels:  vite
element-plus-admin
基于vite+ts+elementPlus
Stars: ✭ 361 (+247.12%)
Mutual labels:  vite
vite-rollup-plugins
A compatibility list of rollup plugins for Vite 2 and test playground
Stars: ✭ 76 (-26.92%)
Mutual labels:  vite
vue-frag-plugin
Webpack/Rollup/Vite plugin to add multiple root-node support to Vue 2 SFCs
Stars: ✭ 37 (-64.42%)
Mutual labels:  vite
nuxt3-app
Nuxt3 (Nuxt 3) best starter repo, Tailwindcss, Sass, Headless UI, Vue, Pinia, Vite
Stars: ✭ 252 (+142.31%)
Mutual labels:  vite

Installation

use npx degit pohunchn/vite-ts-quick#main my-project or git clone ... pull code.

After pulling the code, execute npm install in the root directory of the project. After success, execute npm run dev to start the project (nodejs + npm needs to be installed)

Others Template

Built-in

Note

  • This framework adopts Fetch as a network requester, it is not recommended to introduce Axios again
  • Please do not modify all the files under the lib folder in the business project
  • It is recommended that the custom root library be inherited from lib/ts/Base
  • gitee is only for domestic users to pull code,from github to synchronize,please visit github for PR
  • Welcome to Issues and PR

How to use vue3

Vue 3 + Typescript + Vite

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

Recommended IDE Setup

VSCode + Vetur. Make sure to enable vetur.experimental.templateInterpolationService in settings!

If Using <script setup>

<script setup> is a feature that is currently in RFC stage. To get proper IDE support for the syntax, use Volar instead of Vetur (and disable Vetur).

Type Support For .vue Imports in TS

Since TypeScript cannot handle type information for .vue imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in .vue imports (for example to get props validation when using manual h(...) calls), you can use the following:

If Using Volar

Run Volar: Switch TS Plugin on/off from VSCode command palette.

If Using Vetur

  1. Install and add @vuedx/typescript-plugin-vue to the plugins section in tsconfig.json
  2. Delete src/shims-vue.d.ts as it is no longer needed to provide module info to Typescript
  3. Open src/main.ts in VSCode
  4. Open the VSCode command palette 5. Search and run "Select TypeScript version" -> "Use workspace version"
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].