Run CLI generator commands without paying attention to where you are or what you are really doing. (this module is also available as a ruby gem, so you don't even have to pay attention to where it is installed from)
DO U EVER FIND YOURSELF IN THIS UNENVIABLE POSITION?
$ ember g model fooversion: 0.2.3You have to be inside an ember-cli project in order to use the generate command.
HOW EMBARASSING!! g ENDS ALL OF THAT.
Because somebody already has a node module named "g", you must:
$ npm install geee -g
This will add
g to yr path
g accepts any and all arguments and/or options that ember generate or rails generate accept. For example,
g model foo will just do the right thing depending on what kind of project you are currently in.
I'm not sure if frameworks besides rails and ember exist, but if they do you are welcome to adapt g to generate for them too.
git checkout -b my-new-feature)
git commit -am 'Add some feature')
git push origin my-new-feature)