Start Up - Initialize your project
folder structure generator-goofy ├───package.json └───generators/ ├───app/ └───index.js package.json { "name": "generator-goofy", "version": "1.0.0", "files": [ "generators/app", A Generator Class
Example generators = require 'yeoman-generator' class GoofyGen extends generators.Base constructor : () -> generators.Base.apply this, arguments @log 'Initializing option...' method1 : () -> @log 'processing...' module.exports = GoofyGen |
Yeoman Run Priorities
Developers get to control the execution flow and composability, yeoman implements a Grouped-queue based Run loop and priorities. Priorities are defined in your code as special prototype method names. When present they execute it accordingly. generators.Base.extend({ priorityName: { method: function () {}, method2: function () {} } }); |
Cheatography
https://cheatography.com
Yeoman Generator Development (CoffeeScript) Cheat Sheet (DRAFT) by gettoarun
A cheat sheet to creating yeoman based generator
This is a draft cheat sheet. It is a work in progress and is not finished yet.