-
Notifications
You must be signed in to change notification settings - Fork 8
refactor(step-by-step): change the default framework to Angular instead #1574
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -47,7 +47,7 @@ export abstract class BasePromptSession { | |
| name: "framework", | ||
| message: "Choose framework:", | ||
| choices: this.getFrameworkNames(), | ||
| default: "jQuery" | ||
| default: "Angular" | ||
| }); | ||
|
Comment on lines
47
to
51
|
||
|
|
||
| const framework = this.templateManager.getFrameworkByName(frameRes); | ||
|
|
||
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.
Same as in
BasePromptSession:getFrameworkNames()may be filtered by config, so using a hard-coded default of "Angular" can result in a default that isn't in the choices list. Compute the default from the actualchoicesarray (prefer Angular when present, else first choice) to keep the prompt valid under step-by-step filtering.