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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
eladcandroid opened this issue Jul 4, 2019 · 1 comment 路 Fixed by #17949
Closed

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

eladcandroid opened this issue Jul 4, 2019 · 1 comment 路 Fixed by #17949
Labels
Milestone

Comments

@eladcandroid
Copy link

馃殌 Feature request

Command (mark with an x)

- [X] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Description

Trying to create a new project with invalid name, choose a project without a router, and CSS style system, and finally get the message:

Project name "my-app-8-check" is not valid. New project names must start with a letter, and must contain only alphanumeric characters or dashes. When add
ing a dash the segment after the dash must also start with a letter.

Describe the solution you'd like

Show this message and abort the CLI wizard in the beginning, before choosing any option...

Describe alternatives you've considered

Have you considered any alternative solutions or workarounds?
@alan-agius4 alan-agius4 added area: schematics/angular feature Issue that requests a new feature labels Jul 4, 2019
@ngbot ngbot bot added this to the Backlog milestone Jul 4, 2019
@alan-agius4 alan-agius4 added freq1: low Only reported by a handful of users who observe it rarely severity3: broken type: bug/fix area: devkit/schematics and removed feature Issue that requests a new feature area: schematics/angular labels May 1, 2020
@alan-agius4 alan-agius4 changed the title [Feature] - On invalid name - Abort creating new project in the beginning [Prompts] - On invalid name - Abort creating new project in the beginning May 1, 2020
kgajera added a commit to kgajera/angular-cli that referenced this issue Jun 16, 2020
When an invalid project name is given, throw an error before going through prompts.

Closes angular#14994
alan-agius4 pushed a commit that referenced this issue Jul 7, 2020
When an invalid project name is given, throw an error before going through prompts.

Closes #14994
alan-agius4 pushed a commit that referenced this issue Jul 7, 2020
When an invalid project name is given, throw an error before going through prompts.

Closes #14994

(cherry picked from commit a8c63a7)
@angular-automatic-lock-bot
Copy link

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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants