A combination of Marionette and Yeoman (yo) to give Maryo, pronounced like Mario.
- Make sure you have yo installed:
npm install -g yo
- Install the generator locally:
npm install generator-maryo
- Run:
yo maryo
oryo
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 libs:
- Backbone
- Marionette
- Require
- Dust
- Underscore (lodash)
- Grunt
- Jasmine or Mocha
- LESS or SASS (optional)
The following files
- index.html
- config.js (require config)
- main.js (application start)
- app.js (Marionette application object)
- html5 boilerplate styles
The following directory structure: app images styles scripts collections helpers layouts models regions routers templates views
Run as yo maryo:subgenerator
yo maryo:item-view itemViewName
What you get:
- ItemView
- ItemView template
yo maryo:collection-view collectionViewName itemViewName
What you get:
- CollectionView
- ItemView
- ItemView template
yo maryo:composite-view compositeViewName itemViewName
What you get:
- CompositeView
- CompositeView template
- ItemView
- ItemView template
yo maryo:region regionName
You get a region object.
TODO: Call backbone yeoman generator from within this generator.