# lucky-cli

> ``` $ npm install lucky-cli -g ```

Latest version **1.0.7** (published 2018-05-27) · ISC license · 0 weekly downloads

## Install

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

Provides the command `lucky`.

## 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.7 |
| Published | 2018-05-27 |
| First published | 2018-05-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 13 |
| Unpacked size | 5.3 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | luckyli |
| Maintainers | arcturis |

## Links

- npm: https://www.npmjs.com/package/lucky-cli
- Repository: https://github.com/luckyli/lucky-cli
- Homepage: https://github.com/luckyli/lucky-cli#readme
- Issues: https://github.com/luckyli/lucky-cli/issues
- npm.io page: https://npm.io/package/lucky-cli

## Dependencies (13)

- [ftp](https://npm.io/package/ftp.md) ^0.3.10
- [ora](https://npm.io/package/ora.md) ^1.2.0
- [chalk](https://npm.io/package/chalk.md) ^1.1.3
- [figlet](https://npm.io/package/figlet.md) ^1.2.0
- [rimraf](https://npm.io/package/rimraf.md) ^2.6.1
- [request](https://npm.io/package/request.md) ^2.81.0
- [bluebird](https://npm.io/package/bluebird.md) ^3.5.0
- [fs-extra](https://npm.io/package/fs-extra.md) ^2.1.2
- [inquirer](https://npm.io/package/inquirer.md) ^3.0.6
- [commander](https://npm.io/package/commander.md) ^2.11.0
- [iconv-lite](https://npm.io/package/iconv-lite.md) ^0.4.15
- [promise-exec](https://npm.io/package/promise-exec.md) ^0.1.0
- [download-git-repo](https://npm.io/package/download-git-repo.md) ^1.0.1

## Recent versions

- 1.0.7 (latest) — 2018-05-27
- 1.0.6 — 2018-05-10
- 1.0.5 — 2018-05-10

## README

# lucky-cli


## 安装

```
$ npm install lucky-cli -g
```

## 开始使用
```
//初始化项目
$ lucky init projectName

//进入项目目录
$ cd projectName

//安装依赖
$ npm install

//运行服务器开始开发
$ gulp

//清理上次生成的文件
$ gulp clean


//生成
$ gulp build
```

## 配置
```
const config = {
    projectName: 'projectName',         //发布项目名称
    sourcePath: './source/',     	//项目开发目录
    appPath: './src/',           	//项目运行目录
    distPath: './dist/',         	//项目生成目录
    revPath: './rev/',           	//项目版本目录
    cdnPath: '',                 	//项目CDN目录
    uglify: false,                 	//是否启用压缩
    hash: false,                   	//是否启用版本控制
    useftp: false,                 	//是否启用FTP功能
    ftpOptions: {
        host: '',                	//ftp地址
        port: 21,                  	//ftp端口号
        user: '',                	//ftp用户名
        pass: '',                	//ftp密码
        remotePath: ''           	//ftp上传目标路径
    }
}
```

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