Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/koahubjs/koahub-cli

KoaHub CLI -- KoaHub.js的开发工具,自动babel编译 ES6/7(Generator Function, Class, Async & Await)并且文件修改后自动重启。
https://github.com/koahubjs/koahub-cli

async babel koa koa2 koahub koahub-babel-es6 koahub-cli koahub-demo koajs node nodejs

Last synced: 3 months ago
JSON representation

KoaHub CLI -- KoaHub.js的开发工具,自动babel编译 ES6/7(Generator Function, Class, Async & Await)并且文件修改后自动重启。

Awesome Lists containing this project

README

        

## 介绍

KoaHub CLI -- KoaHub.js的开发工具,自动Babel编译 ES6/7(Generator Function, Class, Async & Await)并且文件修改后自动重启。

## 特性
1. ​自动重启
2. 自动Babel编译
3. 自动创建控制器
4. 自动创建koahub项目
5. 支持全局命令行
6. 支持模块启动
7. ...

## 支持
```js
require('koahub-cli').run('start app/index.js --watch --compile');
```

## 快速创建项目

```javascript
//安装全局命令
npm install koahubjs/koahub-cli -g
//快速创建项目
koahub create koahub-demo
//进入项目
cd koahub-demo
//安装依赖
npm install
//启动项目
npm start
```

## 安装使用

```sh

//安装:npm install koahubjs/koahub-cli -g
//使用:
koahub

Usage: koahub [options] [command]

Commands:

start [options] [script] koahub start script --watch --compile
controller [name] koahub create controller
create [project] koahub create project

Options:

-h, --help output usage information
-V, --version output the version number

Examples:

koahub start app/index.js --watch --compile --runtime runtime (文件修改自动编译到runtime并且重启)
koahub controller app/controller/home/index (自动创建控制器模版)
koahub create koahub-demo (自动初始化项目)
```

## KoaHub.js
[KoaHub.js框架](https://github.com/koahubjs/koahub)

## 官网
[KoaHub.js官网](http://js.koahub.com)