angular / angular/angular-cli

Add --silent option to ng build, test and lint

Đang mở
#19,567 2 bình luận 23 reaction 0 người được giao Xem trên GitHub
area: @angular-devkit/build-angular feature feature: insufficient votes
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ả

# 🚀 Feature request
Add a `--silent` option to **build**, **test** and **lint** so that it only outputs errors.

### Command (mark with an `x`)
- [ ] new
- [x] build
- [ ] serve
- [x] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [x] lint
- [ ] extract-i18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

### Description
So the usecase for us is that we have a pre-push GIT hook that runs **lint**, **test** and **build** before allowing the push to go through. Our issue is that we have a rather large application and the output for test and build are quite massive. An ideal situation would be if neither of the commands output anything if they pass and only show the errors if they don't.
Another usecase where this could be useful is for PR-builds to deliver a small but relevant report.

### Describe the solution you'd like
Add a `--silent` option that only output any potential error the command might come across.

### Describe alternatives you've considered
_Optionally:_ Add a `--loglevel` option so you could filter away depending on the level of your choice.

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

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

Hướng nghiên cứu

Start at the ng build, ng test, and ng lint command entry points and inspect how their output is currently emitted. Define done as a --silent option supported by all three commands that suppresses output on success while retaining errors, with command coverage confirming the behavior.

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, tooling
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 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
38/100

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.