simonblee / generator-maryo

Yeoman generator for Backbone and Marionette.
MIT License
43 stars 11 forks source link

Generator Maryo

Build Status

Overview

Scaffold tool for Backbone and Marionette javascript projects.

The Name

A combination of Marionette and Yeoman (yo) to give Maryo, pronounced like Mario.

Getting started

License

MIT License

TODO

Usage

In all generators, files will only be created if they don't already exist. The generator can be run interactively from the command line or by specifying a json file with a list of all your Marionette objects (config file to be completed).

The generator will give you the following libraries:

Libraries are delivered using Bower. If you need different versions, simply change them in bower.json and then run bower update.

The following files:

The following directory structure:

app
images
styles
scripts
____
collections
____helpers
____layouts
____models
____regions
____routers
____templates
____views

Subgenerators

Run as yo maryo:subgenerator. To generate backbone objects, use the yeoman backbone generator here.

Controller

yo maryo:controller controllerName

You get a Controller object

Item View

yo maryo:item-view itemViewName

What you get:

Collection View

yo maryo:collection-view collectionViewName itemViewName

What you get:

Composite View

yo maryo:composite-view compositeViewName itemViewName

What you get:

Layout

yo maryo:layout layoutName

What you get:

Region

yo maryo:region regionName

You get a region object.

Router

yo maryo:router routerName

You get an AppRouter object