0.1.2 • Published 9 years ago

generator-chocoa v0.1.2

Weekly downloads
5
License
MIT
Repository
github
Last release
9 years ago

Chocoa generators

This is a Yeoman generator for Chocoa to create applications, controllers, models, mailers and views.

Installation

$ npm install --global yeoman generator-chocoa

Available commands

Application

To create new application, run yo chocoa with application name as an argument.

$ yo chocoa hello-world

This will create a folder hello-world and create a base for your application.

npm.io

Controller

To create new controller, run yo chocoa:controller with controller name and optional method names. For each method, view will be generated in app/views directory and a GET route will be inserted in config/routes.js.

$ yo chocoa:controller posts index new edit

npm.io

Model

To create new model, run yo chocoa:model with model name as an argument.

$ yo chocoa:model post

It will create a model and automatically set the collection name.

npm.io

Mailer

To create new mailer, run yo chocoa:mailer with mailer name and optional method names. For each method, mailer view will be generated in app/views/mailers directory.

$ yo chocoa:mailer user welcome forgot_password

npm.io

Tests

$ npm test

License

Released under the MIT License.

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago