# @lazyb/cli

> a simple cli

Latest version **1.0.0** (published 2021-03-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @lazyb/cli
pnpm add @lazyb/cli
yarn add @lazyb/cli
bun add @lazyb/cli
```

Provides the command `lazyb`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-03-22 |
| First published | 2021-03-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 13 |
| Unpacked size | 11 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | lazy-b |
| Maintainers | lazy.b |
| Keywords | cli, simple |

## Links

- npm: https://www.npmjs.com/package/@lazyb/cli
- Repository: https://github.com/lazy-b/lazyb-cli
- Homepage: https://github.com/lazy-b/lazyb-cli#readme
- Issues: https://github.com/lazy-b/lazyb-cli/issues
- npm.io page: https://npm.io/package/@lazyb/cli

## Dependencies (13)

- [ora](https://npm.io/package/ora.md) ^5.1.0
- [chalk](https://npm.io/package/chalk.md) ^4.1.0
- [execa](https://npm.io/package/execa.md) ^4.1.0
- [iferr](https://npm.io/package/iferr.md) ^1.0.2
- [npmlog](https://npm.io/package/npmlog.md) ^4.1.2
- [fs-extra](https://npm.io/package/fs-extra.md) ^9.0.1
- [commander](https://npm.io/package/commander.md) ^7.0.0
- [graceful-fs](https://npm.io/package/graceful-fs.md) ^4.2.4
- [detect-indent](https://npm.io/package/detect-indent.md) ^6.0.0
- [detect-newline](https://npm.io/package/detect-newline.md) ^3.1.0
- [stringify-package](https://npm.io/package/stringify-package.md) ^1.0.1
- [write-file-atomic](https://npm.io/package/write-file-atomic.md) ^3.0.3
- [json-parse-better-errors](https://npm.io/package/json-parse-better-errors.md) ^1.0.2

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2021-03-22

## README

# Simple Cli

本工具是个简单的小工具，目前支持以下功能：  
  1. init  
     1. 给项目添加了一系列校验代码的依赖  
     2. 进行相关的配置  
     3. 给项目添加一系列校验 git 提交信息的依赖  
     4. 利用 git 钩子对提交代码和提交信息进行校验  
     5. 也就是把代码校验工作流给搭建完成了  
     6. 主要是添加了下面的模块  
        1. eslint  
        2. stylelint  
        3. prettier  
        4. husky  
        5. commitizen  
        6. validate-commit-msg  
        7. lint-staged  
        8. ...  
     7. 如果初始化失败，那么建议将 node_modules 删除再次执行一次命令  
     8. 如果执行了上面的步骤还是初始化失败，则可以联系作者  
     9. 为了防止校验规则冲突，会将 .eslintrc.js .prettierrc.js 进行移除  
     10. 如果以前的对应配置文件不是上面的格式，需要自行手动移除，否则校验规则仍然会按照原规则进行，但是不影响整个工作流的进行  
  2. TODO:  

## Usage

** 【推荐】直接在项目根目录运行 `npx @lazyb/cli init` **  

或者安装到项目依赖中  

#### NPM

```shell
npm i @lazyb/cli -D
```

#### YARN

```shell
yarn add @lazyb/cli --dev
```

#### Usage

进入项目根目录运行 `.\node_modules\.bin\lazyb init`

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