# luu-cli

> 一个简单的cli脚手架

Latest version **1.0.1** (published 2018-06-03) · ISC license · 0 weekly downloads

## Install

```sh
npm install luu-cli
pnpm add luu-cli
yarn add luu-cli
bun add luu-cli
```

Provides the command `luu`.

## 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.1 |
| Published | 2018-06-03 |
| First published | 2018-06-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 14 |
| Unpacked size | 19.7 KB |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| Author | bounlusin |
| Maintainers | bounlusin |
| Keywords | cli |

## Links

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

## Dependencies (14)

- [co](https://npm.io/package/co.md) ^4.6.0
- [koa](https://npm.io/package/koa.md) ^2.5.1
- [pm2](https://npm.io/package/pm2.md) ^2.10.4
- [chalk](https://npm.io/package/chalk.md) ^2.4.1
- [loadsh](https://npm.io/package/loadsh.md) ^1.0.1
- [log4js](https://npm.io/package/log4js.md) ^2.8.0
- [shelljs](https://npm.io/package/shelljs.md) ^0.8.2
- [koa-swig](https://npm.io/package/koa-swig.md) ^2.2.1
- [commander](https://npm.io/package/commander.md) ^2.15.1
- [cross-env](https://npm.io/package/cross-env.md) ^5.1.6
- [koa-static](https://npm.io/package/koa-static.md) ^4.0.3
- [babel-loader](https://npm.io/package/babel-loader.md) ^7.1.4
- [babel-preset-env](https://npm.io/package/babel-preset-env.md) ^1.7.0
- [koa-simple-router](https://npm.io/package/koa-simple-router.md) ^0.2.0

## 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.1 (latest) — 2018-06-03
- 1.0.0 — 2018-06-03
- 1.0.2 — 2018-06-03

## README

# 安装luu-cli
	$ npm install -g luu-cli


	项目目录结构
	.
	|---- src											// 项目源代码
	|		|---- nodeuii								// node源代码
	|		|			|---- config					// 配置文件
	|		|			|---- controllers				// 路由
	|		|			|---- middlewares				// 中间件
	|		|			|---- models					// models
	|		|			|---- app.js					// 主入口文件
	|		|---- webapp								// 前端页面代码
	|		|			|---- views						// 页面
	|		|			|---- widgets					// 组件
	|---- dist											// 编译完成后的资源
	|		|---- assets								// 前端静态资源,包含js、css
	|		|---- config								// ..
	|		|---- controllers							// ..
	|		|---- middlewares							// ..
	|		|---- models								// ..
	|		|---- views									// ..
	|		|---- widgets								// ..
	|		|---- app.js								// ..
	|---- config										// 配置文件
	|---- lib											// lib库
	|---- tests											// 测试
	|---- package.json									// 包信息
	|---- webpack.config.js								// webpack配置,编译打包前端代码
	|---- gulpfile.js									// gulp,编译node
	|---- .babelrc										// babel配置
	
	


```
# 创建项目
$ luu create <project>
  在当前目录下创建名为<project>的项目
```


    # 进入项目
    $ cd <project> 


    # 部署项目
    $ luu deploy [options]
      options: 可选参数 -d 开发环境, -p 上线环境
    		   不填默认为开发环境
      在当前项目下创建dist文件夹，包含编译打包好的文件


    # 启动项目
    $ luu start [options]
      options: 可选参数 -d 开发环境, -p 上线环境
    		   不填默认为开发环境
      启动server服务，默认为8080端口


    # 清除项目缓存
    $ luu clear
      删除dist文件夹


    # 生成文档
    $ luu docs
      在当前项目下创建docs文件夹，生成docs文档

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