This package has been deprecated

Author message:

Package is no longer maintained

generator-chocoa

0.1.2 • Public • Published

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.

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

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.

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

Tests

$ npm test

License

Released under the MIT License.

Readme

Keywords

Package Sidebar

Install

npm i generator-chocoa

Weekly Downloads

1

Version

0.1.2

License

MIT

Last publish

Collaborators

  • vdemedes