Ask for recreating ( overwritting files) the current project folder

Đang mở
#25,453 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
angular, typescript
Lĩnh vực
cli

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.

Mô tả

area: @schematics/angular freq1: low severity3: broken type: bug/fix
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ôn ngữ chính
TypeScript
Star
27k
Fork
11.8k
Merge trung bình
16 giờ 35 phút
Pull request đã merge (30 ngày)
176

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của angular/angular-cli

Tất cả issue của angular/angular-cli

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.