Skip to content

zhangxuekun/generator-yintai-koa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A custom Koa generator for Yeoman.

Install

Install with npm.

$ npm install -g yo
$ npm install -g generator-yintai-koa

Make a new directory and cd into it:

$ mkdir new-project && cd $_

Finally, initiate the generator:

$ yo yintai-koa

Start

Requires NodeJS >= v4.2.4

$ sh begin.sh &

Test

$ npm test

add ad view

$ yo yintai-koa:view

#file structure

├── bin
│   └── www.js      enter point
│   └── config.js   config
│   └── router.js   user custom router
│
├── sys             framework scripts
│   └── app.js      
│   └── log         project log
│   └── middelware  framework needed mw
│   └── gulp-plugin
│
├── controllers
│   └── index.js    controller
│
├── resource
│   ├── js
│   │   │── page
│   │   │── cmp
│   │   │── tools
│   │   └── lib
│   └── css
│       └── index.css
│   └── less    
│   └── es6         es2015 code 
│   └── es5         compiled code
│
├── test
│   └── routeSpec.js
├── views
│   ├── public
│   │       │──head.html
│   │
│   ├── template.html
│   └── index.html
│
├── begin.sh        start project
├── Dockerfile      docker config file
├── gulpfile.js
├── build.js        build es5 js (compress & concat)
└── package.json

See Koa Examples

License

MIT License @yintai

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages