Skip to content

Logoran' application generator( Support all middlewares include async/await )

License

Notifications You must be signed in to change notification settings

logoran/generator

 
 

Repository files navigation

logoran-generator

http://logoran.com/

Logoran application generator.

NPM Version NPM Downloads

Features

  • Support Koa(supported)
  • Support Logoran(koa or logoran middleware supported,need Node.js 7.6+ ,babel optional)

Installation

$ npm install -g logoran-generator

with 2 commands

  • koa (Support koa)
  • logoran (Support logoran)

Quick Start koa

The quickest way to get started with koa is to utilize the executable koa to generate an application as shown below:

Create the app:

$ koa /tmp/foo && cd /tmp/foo

Install dependencies:

$ npm install

Rock and Roll

$ npm start

Quick Start logoran

The quickest way to get started with logoran is to utilize the executable logoran to generate an application as shown below:

Create the app:

$ logoran /tmp/foo && cd /tmp/foo

Install dependencies:

$ npm install

Rock and Roll

$ npm start

more detail see logoran-demo

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
-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还没有实现

Git Branch Details

  • master = logoran generator

License

MIT

About

Logoran' application generator( Support all middlewares include async/await )

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 93.3%
  • HTML 3.9%
  • CSS 2.5%
  • Shell 0.3%