# @sufangyu/fe-ui

> 一款 UI 框架

Latest version **1.0.0** (published 2021-07-06) · 0 weekly downloads

## Install

```sh
npm install @sufangyu/fe-ui
pnpm add @sufangyu/fe-ui
yarn add @sufangyu/fe-ui
bun add @sufangyu/fe-ui
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-07-06 |
| First published | 2021-07-06 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=10.0.0 |
| Dependencies | 10 |
| Unpacked size | 169.3 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | 304683191@qq.com |
| Maintainers | sufangyu |

## Links

- npm: https://www.npmjs.com/package/@sufangyu/fe-ui
- Repository: https://github.com/sufangyu/fe-ui
- Homepage: https://github.com/sufangyu/fe-ui#readme
- Issues: https://github.com/sufangyu/fe-ui/issues
- npm.io page: https://npm.io/package/@sufangyu/fe-ui

## Dependencies (10)

- [vue](https://npm.io/package/vue.md) ^2.6.11
- [vuex](https://npm.io/package/vuex.md) ^3.4.0
- [core-js](https://npm.io/package/core-js.md) ^3.8.3
- [lodash-es](https://npm.io/package/lodash-es.md) ^4.17.21
- [nprogress](https://npm.io/package/nprogress.md) ^0.2.0
- [element-ui](https://npm.io/package/element-ui.md) ^2.15.0
- [vue-router](https://npm.io/package/vue-router.md) ^3.2.0
- [normalize.css](https://npm.io/package/normalize.css.md) ^8.0.1
- [vue-codemirror](https://npm.io/package/vue-codemirror.md) ^4.0.6
- [async-validator](https://npm.io/package/async-validator.md) ^3.5.1

## Recent versions

- 1.0.0 (latest) — 2021-07-06

## README

# 前端 UI 库

> 基于 `element-ui` 二次封装的 UI 组件库~

## 使用

> 项目采用 `monorepo` 的代码管理方式。基于 `lerna` [查看使用](https://lernajs.bootcss.com/)进行模块管理，可以进行单个或多个模块进行导出使用。

推荐使用 `yarn` 安装而不是 `npm` 来安装。

```bash
# 安装 yarn 
npm install -g yarn
# OR 下载安装
https://classic.yarnpkg.com/zh-Hans/

# 安装 
npm run bootstrap

# 启动示例项目
npm run serve

# 启动文档项目
npm run docs:dev

# 使用构建，打包会生成 lib 文件，将生成的 js 文件直接用 script 引入即可
npm run release

# 使用构建打包主模块
npm run build:lib

# 使用构建打包子模块，用于按需引入，需配合 babel-plugin-component 插件使用
npm run build:esm

# 使用构建打包主题
npm run build:theme

# 发布新版本
lerna publish
```

## 提交规范

> 示例代码

```bash
git commit -m "feat: 添加 git hooks 检测"

# OR

git commit -m "refactor(axios): 重构 axios 配置"
```

按照一定的规范写 commit messages，可以在git push 代码之前（工具/脚本自动)检测 commit messages。规范提交信息。

```txt
commit message 包含三个部分，header, body和footer，其中header必须有，body和footer可以按情况省略。

示例 type 字段 => 具体可以查看目录 scripts/verifyCommit.js 的正则部分

feat：新功能（feature）
fix：修补bug
docs：文档（documentation）
style： 格式（不影响代码运行的变动）
refactor：重构（即不是新增功能，也不是修改bug的代码变动）
test：增加测试
chore：构建过程或辅助工具的变动
```

> 如果你遇到提交问题无法解决，可以使用 -n OR --no-verify 跳过检测（严重不推荐）

```bash
git commit -n -m "跳过 git hooks 检测"
```

## 目录结构

```bash
# docs            # 项目文档，组件维护说明文档。
packages        # 组件存放目录，基于 monorepo 的目录管理结构
 |--...         # 其他通用组件
 |--shared      # 共享文件
 |--theme-chalk # 样式文件
 |--index.ts    # 导出文件 - 后期组件拆分独立仓库时可以删除
src             # 前端开发阶段目录，用于编写组件例子
lib             # 编译输出目录
scripts         # 脚本文件
```

---
_Source: https://npm.io/package/@sufangyu/fe-ui · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
