-
Notifications
You must be signed in to change notification settings - Fork 12k
fix(@schematics/angular): the ng-new
schematic should not prompt for style nor for routing
#15207
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
Conversation
8e98683
to
aed10da
Compare
ng-new
schematic should not prompt for style nor routingng-new
schematic should not prompt for style nor routing
ng-new
schematic should not prompt for style nor routingng-new
schematic should not prompt for style nor for routing
d2ffe0e
to
f9c389e
Compare
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.
LGTM otherwise.
@@ -307,6 +307,10 @@ export default function (options: ApplicationOptions): Rule { | |||
} | |||
validateProjectName(options.name); | |||
options.prefix = options.prefix || 'app'; | |||
// This line and the one above shouldn't be needed, but at the moment they are. | |||
// This is because the default value defined in the schema.json file is not | |||
// correctly set when this schematic is run from another schematic. |
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 should probably open an issue and add a link to it here w/ a TODO to remove this when that issue is resolved.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
closes #13383