koahub-cliKoaHub.js 的开发工具
KoaHub.js 的开发工具,自动Babel编译 ES6/7(Generator Function, Class, Async & Await)并且文件修改后自动重启。
特性
-  
自动重启
 -  
自动Babel编译
 -  
自动创建控制器
 -  
自动创建koahub项目
 -  
支持全局命令行
 -  
支持模块启动
 -  
...
 
支持
require('koahub-cli').run('start app/index.js --watch --compile'); 
快速创建项目
//安装全局命令 npm install github:koahubjs/koahub-cli -g //快速创建项目 koahub create koahub-demo //进入项目 cd koahub-demo //安装依赖 npm install //启动项目 npm start
安装使用
//安装:npm install github: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/article (自动创建控制器模版) koahub create koahub-demo (自动初始化项目)
KoaHub.js
官网
评论
