# Vue 3 + Typescript + Vite

This template should help get you started developing with Vue 3 and Typescript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.

## Recommended IDE Setup

- [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar)

## 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 enable Volar's `.vue` type support plugin by running `Volar: Switch TS Plugin on/off` from VSCode command palette.

## 包管理器 pnpm

```bash
npm i -g pnpm
```

## CHANGELOG 生成工具 全局安装

```bash
pnpm add -g conventional-changelog-cli
```

## 库更新及升级

### commit

使用命令行：`pnpm run cz` 根据提示进行添加 commit message

### release 版本包定义及 tag

使用命令行：`pnpm run release` 版本选择，并会自动提交 tag 和 push gitlab

### publish 推送至 local npm

使用命令行：`pnpm run publish`

> npm publish 需求 npm logged
>
> - 运行命令行 `npm login --registry http://10.19.36.198:8081/repository/npm-local/` ，输入相应的账户密码邮箱 (Tips: 登录成功有提示 `Logged in as zhangxz on http://10.19.36.198:8081/repository/npm-local/.`)
