-
Notifications
You must be signed in to change notification settings - Fork 40
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: The --hurry option #234
Conversation
23dd643
to
e407277
Compare
docs: false, | ||
css: false, | ||
docs: true, | ||
css: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can drop these changes here if we want, but I think that we want to offer the full toolset for --hurry.
@@ -242,6 +246,7 @@ module.exports = class extends Generator { | |||
*/ | |||
prompting() { | |||
if (this.options.skipPrompt) { | |||
_.assign(this._preconfigs, this._getPromptDefaults()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previously we did not set defaults for --hurry
so everything was just undefined.
@@ -77,6 +77,10 @@ module.exports = class extends Generator { | |||
// purposes of the prompt (otherwise it will be rejected by validation). | |||
defaults.name = naming.getBasicName(defaults.name); | |||
|
|||
// we need to default the description to an empty string for | |||
// --hurry | |||
defaults.description = ''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We did not have a default for description and we need one if we don't have a prompt.
Closes #178