# byted-gulu-cli

> Command line tool for gulu

Latest version **1.0.5** (published 2018-06-22) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install byted-gulu-cli
pnpm add byted-gulu-cli
yarn add byted-gulu-cli
bun add byted-gulu-cli
```

Provides the command `gulu`.

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2018-06-22 |
| First published | 2018-03-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 198.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Yaphet Ye |
| Maintainers | animabear |

## Links

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

## Dependencies (5)

- [step](https://npm.io/package/step.md) ^1.0.0
- [nodemon](https://npm.io/package/nodemon.md) ^1.17.2
- [fs-extra](https://npm.io/package/fs-extra.md) ^5.0.0
- [commander](https://npm.io/package/commander.md) ^2.15.1
- [uppercamelcase](https://npm.io/package/uppercamelcase.md) ^3.0.0

## Recent versions

- 1.0.5 (latest) — 2018-06-22
- 1.0.4 — 2018-05-14
- 1.0.2 — 2018-03-28

## README

# byted-gulu-cli
A command line tool for gulu.

## 安装

首先保证本地安装了 `mya`（用于前端代码构建）

```bash
$ npm install -g mya
```

```bash
$ npm install -g byted-gulu-cli
```

## 使用

### 新建工程
```bash
$ gulu new -h

  Usage: new [options] <project>

  create a new project

  Options:

    -t, --type [type]  project type, 'pure' or 'mixed'. 'pure' for server only project, 'mixed' for project mix client with server (default: mixed)
    -h, --help         output usage information
```
现在新建工程支持两种类型
- `pure`：纯后端工程
- `mixed`：前后端混合工程

例如，现在要创建一个纯后端工程，可执行如下命令：
```bash
$ gulu new demo --type pure
```

### 运行工程
```bash
$ gulu run -h

  Usage: run [options] [env]

  run project with optional env: dev(default)/prod/test

  Options:

    -L, --live         livereload
    -H, --hot          hot module replacement
    --verbose          show debug log
    --vconsole         debug with vconsole
    -d, --dest <path>  client release output destination
    -h, --help         output usage information
```

其中，`env`为 [应用环境变量](https://code.byted.org/ies/gulu/tree/master/packages/byted-gulu#34-%E5%BA%94%E7%94%A8%E7%8E%AF%E5%A2%83)中定义的值，默认为 `dev`

在开发环境下，在项目根目录运行即可：

```bash
gulu run -H
```

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