Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Yeoman Generator Next Steps

I'm new to creating a Yeoman Generator. I used generator-generator to get me started and I went through the process of creating it, testing, and getting it all buttoned up.

In the tuts for creating a yo generator they seem to leave off where my question is headed.

Question: What next? I've got it all readyL

  • Do I submit it to Yeoman?
  • Simply put it on my Github?
  • How can I get it to where others can start using my shiny new generator?

Thanks for the help / guidance.

like image 200
Sal B Avatar asked Mar 04 '15 05:03

Sal B


1 Answers

Found here: http://www.eguneys.com/blog/2014/09/17/lets-build-a-yeoman-generator-2

Publish Your Generator

Finally you can publish your generator. First create an account on npm. Next set your npm author info.

$ npm set init.author.name "Your Name"
$ npm set init.author.email "Your Email"
$ npm set init.author.url "Your Website"

$ npm adduser

Then publish with.

$ npm publish

A note about the package.json format

There is a list of yeoman generators in the official yeoman website. It is automatically pulled from the npm API. To list your generator there you need to add yeoman-generator keyword to your package.json and a repository description on Github.

like image 79
Sal B Avatar answered Sep 26 '22 01:09

Sal B