Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)并且文件修改后自动重启。
- Host: GitHub
- URL: https://github.com/koahubjs/koahub-cli
- Owner: koahubjs
- Created: 2016-12-26T14:05:18.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-12T10:00:18.000Z (over 7 years ago)
- Last Synced: 2024-10-31T08:42:24.664Z (3 months ago)
- Topics: async, babel, koa, koa2, koahub, koahub-babel-es6, koahub-cli, koahub-demo, koajs, node, nodejs
- Language: JavaScript
- Homepage:
- Size: 65.4 KB
- Stars: 16
- Watchers: 3
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
//使用:
koahubUsage: koahub [options] [command]
Commands:
start [options] [script] koahub start script --watch --compile
controller [name] koahub create controller
create [project] koahub create projectOptions:
-h, --help output usage information
-V, --version output the version numberExamples:
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)