This repository contains the Yeoman generators used for our projects/apps.
Before you get started using any of these, be sure to install Yeoman on your machine.
Usage should be baked into whichever project is being worked on (see Creating a new generator below on how to do this) so the working directory for each of the following examples will be relative to the root directory of that project.
Be sure to run npm install
within each project's root directory so the generators get installed.
The generators for each app need to be defined within their own branch in this repository - the branch name preferably being the name of the app in question. The reason for this is that in order to include this within the app, we need to add a dependency to the app's package.json
file.
Taking the example of Rizzo, we would add the following to the list of dependencies in Rizzo's package.json
:
"yeoman-generators": "git+ssh://[email protected]:lonelyplanet/yeoman#rizzo"
This will install the rizzo generators from the rizzo
branch on this repo locally to the node_modules
folder in your rizzo project folder.
Do NOT under any circumstance merge any of these branches into master... you are going to have a bad time!