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

Fix for issue yeoman/yo#518 #81

Merged
merged 3 commits into from
May 3, 2017
Merged

Fix for issue yeoman/yo#518 #81

merged 3 commits into from
May 3, 2017

Conversation

rgroothuijsen
Copy link
Contributor

@rgroothuijsen rgroothuijsen commented Apr 30, 2017

No description provided.

generatorHint = prefix + '/generator-' + generatorName;
} else {
generatorHint = 'generator-' + namespace;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use https://github.com/sindresorhus/is-scoped and if it's scoped you can just split on /.

Also use template literals instead of concatenating strings.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the hint, that does look a lot cleaner.

@SBoudrias SBoudrias merged commit cc008e5 into yeoman:master May 3, 2017
@SBoudrias
Copy link
Member

Thanks!

@rgroothuijsen rgroothuijsen deleted the issue518 branch May 4, 2017 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants