
## 介绍

Vue component 开 箱 即 用 的 vue 3.0 组 件 开 发 模 板 ⭐

## 功能

- 📑 开 发 文 档
- 🌈 预 览 案 例
- 📦 打 包 发 布

## 说明

伪 monorepo 架构

```
vue-component 
│
├─example 文档
│    │
│    ├─docs 文档内容
│    │
│    ├─src 源码
│    │
│    └─index.html 首屏
│
├─script 脚本
│
├─src 源码
│  │
│  ├─component 组件
│  │
│  ├─composable hooks
│  │
│  └─types 类型
│
└─package.json

```

## 命令

构建产物, index.css index.umd.js index.es.js 等

```
npm run build
```

登录 npm 账号 (https://www.npmjs.com)

```
npm login
```
发布 npm 组件

```
npm publish
```

## 提交

项目采用 commitlint 插件规范提交

错误的提交

```
git commit -m "修复 button css 文件"
```

正确的提交

```
git commit -m "fix(button): 修复 css 文件"
```

或

```
git commit -m "fix: 修复 button.css 文件"
```

详见 - commitlint.config.js 

## 备注

可将 master 作为基础分支, checkout 组件开发, 可使用组件来命名分支, 如 button checkbox switch。