Skip to content

dominhhai/koa-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

koa-generator

Express like generator with standard style and gulp-nodemon

Installation

$ npm install -g koa-gen

Usage

Create the app:

  • for koa v2
$ koa /tmp/foo && cd /tmp/foo
  • for koa v1
$ koa -1 /tmp/foo && cd /tmp/foo

Install dependencies:

$ npm install

Rock and Roll

$ npm start

or with gulp and nodemon

$ npm test

Command Line Options

This generator can also be further configured with the following command line flags.

-h, --help          output usage information
-V, --version       output the version number
-1, --koa1          use Koa v1.x (defaults to Koa v2.x)
-b, --babel         use babel for Koa v2.x
-e, --ejs           add ejs engine support (defaults to jade)
    --hbs           add handlebars 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

License

MIT