Ask for recreating ( overwritting files) the current project folder
- Ngôn ngữ chính
- TypeScript
- Star
- 27k
- Fork
- 11.8k
- Merge trung bình
- 14 giờ 23 phút
- Pull request đã merge (30 ngày)
- 162
Mô tả
### 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.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu tại điểm vào của lệnh `ng new` và theo dõi cách lệnh này xử lý một thư mục dự án hiện có. Thêm hành vi xác nhận hoặc lỗi được yêu cầu, bao gồm hướng dẫn về tên thay thế, và xác minh rằng các tệp hiện có không bị thay thế.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- angular, typescript
- Lĩnh vực
- cli
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100