Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Easing installation of generators? #149

Open
hemanth opened this issue Mar 8, 2014 · 8 comments
Open

Easing installation of generators? #149

hemanth opened this issue Mar 8, 2014 · 8 comments

Comments

@hemanth
Copy link
Member

hemanth commented Mar 8, 2014

As of now:

$ yo xyz
Error xyz 

You don't seem to have a generator with the name xyz installed.
You can see available generators with npm search yeoman-generator and then install them with npm install [name].
To see the 25 registered generators run yo with the `--help` option.

Would it be useful if it's something like:

$ yo xyz
Error xyz 

You don't seem to have a generator with the name xyz installed.

Would you like me to install it for you?  

That would check if there exists a generator-xyz and does a npm install generator-xyz

@sindresorhus
Copy link
Member

👍

@hemanth
Copy link
Member Author

hemanth commented Mar 8, 2014

Was pawing around the code, looks like we need to improve Environment.prototype.create

@sindresorhus
Copy link
Member

Improving the UX will always get a huge 👍 from me. Keep the suggestions coming :)

@SBoudrias
Copy link
Member

👍 from me too

@addyosmani
Copy link
Member

Yes! Please. This would be great. If you get a chance to patch prototype.create sufficiently to make this possible I'm pretty sure we'd be happy to land this change.

Btw, I noticed you've been asking about how to pull in all of the generators (for the contributor use-case). What we do over in Polymer is have a polymer-all style repo so that you just git clone it and run a script which will recursively get you all generators and deps then run npm install && bower install on them for you. I wouldn't be opposed to us having something similar. That said, I haven't needed to do this just yet. Most of the time I just use a GUI to clone what I need in one click.

@hemanth
Copy link
Member Author

hemanth commented Mar 9, 2014

@addyosmani I did this and that for cloning all of the repos.

Currently I'm pawing at prototype.create and would <3 to do something like yeoman-all too! 😄

Update 0: Is this that polymer-all you are referring to?

@hemanth
Copy link
Member Author

hemanth commented Mar 11, 2014

^ Changes yo to handle the installation, was wondering if we also need this change in generator also?

@kristianmandrup
Copy link

Fixed by setting NODE_PATH

yeoman/generator-polymer#31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants