Yo generator MEAN.JS

MEANJS Yo Generator

meanjs最新0.5.0-beta,稳定版0.4.2, 要求node 4.x, npm 2.x
2016-03-30

Install

  • yo scaffolding tool
    $ npm install -g yo

  • generator-meanjs
    $ npm install -g generator-meanjs

Usage

  • generate your application
    $ yo meanjs

  • Run your application
    $ grunt

Yo generator MEAN.JS_第1张图片
run_app.png

sub-generator

  • CRUD Module
    $ yo meanjs:crud-module

  • AngularJS Module
    yo meanjs:angular-module

  • AngularJS Route
    $ yo meanjs:angular-route

  • AngularJS Controller
    $ yo meanjs:angular-controller

  • AngularJS View
    $ yo meanjs:angular-view

  • AngularJS Service
    $ yo meanjs:angular-service

  • AngularJS Directive
    $ yo meanjs:angular-directive

  • AngularJS Filter
    $ yo meanjs:angular-filter

  • AngularJS Config
    $ yo meanjs:angular-config

  • AngularJS Test
    $ yo meanjs:angular-test

  • Express Model
    $ yo meanjs:express-model

  • Express Controller
    $ yo meanjs:express-controller

  • Express Routes
    $ yo meanjs:express-route

  • Express Test
    $ yo meanjs:express-test


yo-command

Usage: yo GENERATOR [args] [options]

General options:
-h, --help # Print generator's options and usage
-f, --force # Overwrite files that already exist

Please choose a generator below.

Angular
angular:app
angular:common
angular:constant
angular:controller
angular:decorator
angular:directive
angular:factory
angular:filter
angular:main
angular:provider
angular:route
angular:service
angular:value
angular:view

Gulp-webapp
gulp-webapp:app

Karma
karma:app

Meanjs
meanjs:angular-config
meanjs:angular-controller
meanjs:angular-directive
meanjs:angular-filter
meanjs:angular-module
meanjs:angular-route
meanjs:angular-service
meanjs:angular-test
meanjs:angular-view
meanjs:app
meanjs:crud-module
meanjs:express-controller
meanjs:express-model
meanjs:express-route
meanjs:express-test

Mocha
mocha:app

你可能感兴趣的:(Yo generator MEAN.JS)