ng new my-project --skip-tests shouldn't generate karma/protractor files

Đang mở
#9,160 30 bình luận 50 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
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
angular, typescript
Lĩnh vực
cli, testing

Hướng nghiên cứu

Bắt đầu bằng cách chạy ng new my-project --skip-tests và so sánh các tệp được tạo với các danh sách tệp quan sát được và mong muốn trong issue. Theo dõi entry point của ng new và cách xử lý --skip-tests, sau đó xác minh rằng các tệp test.ts, tsconfig.spec.json, e2e, karma.conf.js và protractor.conf.js được bỏ qua, trong khi các tệp còn lại được tạo.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

area: @schematics/angular freq2: medium severity2: inconvenient type: bug/fix

The --skip-tests flag for ng new didn't quite match my expectations as a developer.

Versions
Angular CLI: 1.6.0-beta.0
Node: 8.4.0
OS: linux x64
Angular: 
...
Repro steps

ng new my-project --skip-tests

Observed behavior
  create my-project/.angular-cli.json (1528 bytes)
  create my-project/.editorconfig (245 bytes)
  create my-project/.gitignore (516 bytes)
  create my-project/src/assets/.gitkeep (0 bytes)
  create my-project/src/environments/environment.prod.ts (51 bytes)
  create my-project/src/environments/environment.ts (387 bytes)
  create my-project/src/favicon.ico (5430 bytes)
  create my-project/src/index.html (296 bytes)
  create my-project/src/main.ts (370 bytes)
  create my-project/src/polyfills.ts (2667 bytes)
  create my-project/src/styles.css (80 bytes)
  create my-project/src/test.ts (1085 bytes)
  create my-project/src/tsconfig.app.json (211 bytes)
  create my-project/src/tsconfig.spec.json (304 bytes)
  create my-project/src/typings.d.ts (104 bytes)
  create my-project/e2e/app.e2e-spec.ts (292 bytes)
  create my-project/e2e/app.po.ts (208 bytes)
  create my-project/e2e/tsconfig.e2e.json (235 bytes)
  create my-project/karma.conf.js (923 bytes)
  create my-project/package.json (1322 bytes)
  create my-project/protractor.conf.js (722 bytes)
  create my-project/tsconfig.json (363 bytes)
  create my-project/tslint.json (2985 bytes)
  create my-project/src/app/app.module.ts (316 bytes)
  create my-project/src/app/app.component.css (0 bytes)
  create my-project/src/app/app.component.html (1120 bytes)
  create my-project/src/app/app.component.ts (207 bytes)
Desired behavior
  create my-project/.angular-cli.json (1528 bytes)
  create my-project/.editorconfig (245 bytes)
  create my-project/.gitignore (516 bytes)
  create my-project/src/assets/.gitkeep (0 bytes)
  create my-project/src/environments/environment.prod.ts (51 bytes)
  create my-project/src/environments/environment.ts (387 bytes)
  create my-project/src/favicon.ico (5430 bytes)
  create my-project/src/index.html (296 bytes)
  create my-project/src/main.ts (370 bytes)
  create my-project/src/polyfills.ts (2667 bytes)
  create my-project/src/styles.css (80 bytes)
  create my-project/src/tsconfig.app.json (211 bytes)
  create my-project/src/typings.d.ts (104 bytes)
  create my-project/package.json (1322 bytes)
  create my-project/tsconfig.json (363 bytes)
  create my-project/tslint.json (2985 bytes)
  create my-project/src/app/app.module.ts (316 bytes)
  create my-project/src/app/app.component.css (0 bytes)
  create my-project/src/app/app.component.html (1120 bytes)
  create my-project/src/app/app.component.ts (207 bytes)
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.