Ask for recreating ( overwritting files) the current project folder
- 主要语言
- 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