angular / angular/angular-cli

Ask for recreating ( overwritting files) the current project folder

未关闭
#25,453 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area: @schematics/angular freq1: low severity3: broken type: bug/fix
主要语言
TypeScript
星标
27k
派生
11.8k
平均合并
14 小时 23 分钟
30 天内合并 PR
162

描述

### Command

new

### Description

I'm new to Angular and I just started using its CLI, it's easy to use and I appreciate it a lot.

However, I have noticed that it misses ( based on my experience with NextJS CLI) to ask the developer if the project ( folder ) exists and if he is sure that he wants to recreate the project and remove the old files.

##### STEP 01

`ng new my app`

##### STEP 02

Write some code and save the changes.

##### STEP 03

`ng new my app`

### Expected

The CLI asks that the project name exists.

### Current

Create a new project with the same name and replace older files with the new ones.

### Describe the solution you'd like

The CLI should inform the developer that the project name exists and recommends alternative names.

### Describe alternatives you've considered

Invoke an error and enforce the user to change the name of the project name.

贡献指南

打开贡献指南

调研方向

从 `ng new` 命令的入口点开始,跟踪它如何处理现有项目文件夹。添加所请求的确认或错误行为,包括替代名称的指导,并验证现有文件不会被替换。

由索引模型根据 Issue 内容生成。

评估

技术栈
angular, typescript
领域
cli
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。