koa generator
1.0.0
http://koajs.com/
KOA應用程序生成器。
$ npm install -g koa-generator帶2個命令
開始使用KOA的最快方法是利用可執行的koa(1)生成一個應用程序,如下所示:
創建應用程序:
$ koa安裝依賴項:
$ npm install搖滾
$ npm start開始使用KOA的最快方法是利用可執行的koa2(1)生成一個應用程序,如下所示:
創建應用程序:
$ koa2 /tmp/foo && cd /tmp/foo安裝依賴項:
$ npm install搖滾
$ npm start更多詳細信息請參閱KOA2-DEMO
該發電機也可以使用以下命令行標誌進一步配置。
-h, --help output usage information
-V, --version output the version number
-e, --ejs add ejs engine support (defaults to jade)
--hbs add handlebars engine support
-n, --nunjucks add nunjucks engine support
-H, --hogan add hogan.js engine support
-c, --css <engine> add stylesheet <engine> support (less|stylus|compass|sass) (defaults to plain css)
--git add .gitignore
-f, --force force on non-empty directory
目前選項-C還沒有實現
麻省理工學院