# 5ug-cli

> 5ug cli tools

Latest version **1.4.0** (published 2022-09-12) · 10 weekly downloads

## Install

```sh
npm install 5ug-cli
pnpm add 5ug-cli
yarn add 5ug-cli
bun add 5ug-cli
```

Provides the command `5ug`.

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score; declining downloads.

## Facts

| | |
|---|---|
| Version | 1.4.0 |
| Published | 2022-09-12 |
| First published | 2019-02-11 |
| Weekly downloads | 10 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 30 |
| Unpacked size | 165.8 KB |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| Author | alabo |
| Maintainers | sampsong |

## Links

- npm: https://www.npmjs.com/package/5ug-cli
- npm.io page: https://npm.io/package/5ug-cli

## Dependencies (30)

- [rd](https://npm.io/package/rd.md) ^2.0.1
- [del](https://npm.io/package/del.md) ^6.0.0
- [ejs](https://npm.io/package/ejs.md) ^3.1.6
- [ora](https://npm.io/package/ora.md) ^3.0.0
- [csso](https://npm.io/package/csso.md) ^4.0.2
- [glob](https://npm.io/package/glob.md) ^7.1.3
- [uuid](https://npm.io/package/uuid.md) ^3.3.2
- [yargs](https://npm.io/package/yargs.md) ^16.2.0
- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.1
- [rimraf](https://npm.io/package/rimraf.md) ^2.6.3
- [cheerio](https://npm.io/package/cheerio.md) ^1.0.0-rc.5
- [svg2ttf](https://npm.io/package/svg2ttf.md) ^5.1.0
- [ttf2eot](https://npm.io/package/ttf2eot.md) ^2.0.0
- [fs-extra](https://npm.io/package/fs-extra.md) ^9.1.0
- [inquirer](https://npm.io/package/inquirer.md) ^6.2.1
- [ttf2woff](https://npm.io/package/ttf2woff.md) ^2.0.2
- [commander](https://npm.io/package/commander.md) ^2.19.0
- [iconfount](https://npm.io/package/iconfount.md) ^2.0.0
- [image2uri](https://npm.io/package/image2uri.md) ^1.0.4
- [move-file](https://npm.io/package/move-file.md) ^2.0.0
- [svgtofont](https://npm.io/package/svgtofont.md) ^3.9.0
- [ttf2woff2](https://npm.io/package/ttf2woff2.md) ^4.0.2
- [colors-cli](https://npm.io/package/colors-cli.md) ^1.0.27
- [superagent](https://npm.io/package/superagent.md) ^4.1.0
- [compressing](https://npm.io/package/compressing.md) ^1.4.0
- [ala-svgtofont](https://npm.io/package/ala-svgtofont.md) ^0.0.8
- [html-minifier](https://npm.io/package/html-minifier.md) ^4.0.0
- [node-machine-id](https://npm.io/package/node-machine-id.md) ^1.1.10
- [svgicons2svgfont](https://npm.io/package/svgicons2svgfont.md) ^9.1.1
- [superagent-prefix](https://npm.io/package/superagent-prefix.md) ^0.0.2

## Recent versions

- 1.4.0 (latest) — 2022-09-12
- 1.3.1 — 2022-03-05
- 1.3.0 — 2022-03-05
- 1.2.22 — 2022-02-23
- 1.1.22 — 2021-06-22
- 1.1.20 — 2021-06-22
- 1.1.18 — 2021-06-21
- 1.1.16 — 2021-05-15
- 1.1.15 — 2021-05-15
- 1.1.13 — 2021-05-13
- 1.1.12 — 2021-05-12
- 1.1.2 — 2021-04-13
- 1.0.98 — 2021-04-13
- 1.0.96 — 2021-04-13
- 1.0.94 — 2021-04-12
- … 97 more at https://npm.io/package/5ug-cli/versions

## README

## 版本更新
- 0.7.1 支持移动端中的nvue模式
- 0.6.8 新增v-data组件数据
- 0.5.5 优化5ug admin 以及帮助提示文字
- 0.4.4 优化5ug commit 命令
- 0.4.2 新增init和commit函数
- 0.4.1 优化组件发布，pc和移动端分别发布，发布需要验证用户
- 0.3.8 修改服务器地址
- 0.3.7 更新sign和token双重安全验证机制



## 5ug-cli 命令使用

- 全局安装 npm install 5ug-cli -g

### 登录：5ug login

-输入用户名，密码，选择项目

### 创建组件：5ug create <name>

-例如： 5ug create test/zk-test 创建组件 其中 test/zk-test 为组件路径和格式

### 发布组件：5ug publish <name>

- 功能：1.发布源文件 2.发布风格 3.版本统计
- 例如：5ug publish test/zk-test 创建组件 其中 test/zk-test 为组件路径和格式

### 发布所有组件：5ug publish all

### 构建 main.js 5ug main

- 遍历当前项目中 src/components src/elements src/admins 三个目录，自动生成 main.js
- 只支持二级目录，不支持一级目录和三级目录

## 创建模块流程

### 第一步 创建组件：5ug create <name>

- 本地生成模板文件，包括 vue,js,scss 等文件

### 第二步 发布组件：5ug publish <name>

- 在服务器中创建组件，包括风格、样式、版本等

---
_Source: https://npm.io/package/5ug-cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
