Skip to content

fix(@schematics/angular): validate project name before prompts#17949

Merged
alan-agius4 merged 1 commit intoangular:masterfrom
kgajera:validate-project-name-before-prompts
Jul 7, 2020
Merged

fix(@schematics/angular): validate project name before prompts#17949
alan-agius4 merged 1 commit intoangular:masterfrom
kgajera:validate-project-name-before-prompts

Conversation

@kgajera
Copy link
Copy Markdown
Contributor

@kgajera kgajera commented Jun 16, 2020

When an invalid project name is given, throw an error before going through prompts.

I'm not sure if this validation can be removed but let me know if it should: https://github.com/angular/angular-cli/blob/master/packages/schematics/angular/application/index.ts#L335

Closes #14994

When an invalid project name is given, throw an error before going through prompts.

Closes angular#14994
@alan-agius4 alan-agius4 added the target: patch This PR is targeted for the next patch release label Jul 7, 2020
Copy link
Copy Markdown
Collaborator

@alan-agius4 alan-agius4 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for this 👍

@alan-agius4 alan-agius4 merged commit a8c63a7 into angular:master Jul 7, 2020
@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Aug 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Prompts] - On invalid name - Abort creating new project in the beginning

3 participants