Scaffold tool for Backbone and Marionette javascript projects.
A combination of Marionette and Yeoman (yo) to give Maryo, pronounced like Mario.
npm install -g yo
npm install generator-maryo
yo maryo
or yo
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
Run as yo maryo:subgenerator
. To generate backbone objects, use the yeoman backbone generator
here.
yo maryo:controller controllerName
You get a Controller object
yo maryo:item-view itemViewName
What you get:
yo maryo:collection-view collectionViewName itemViewName
What you get:
yo maryo:composite-view compositeViewName itemViewName
What you get:
yo maryo:layout layoutName
What you get:
yo maryo:region regionName
You get a region object.
yo maryo:router routerName
You get an AppRouter object