ionic-team / ionic-team/ionic-cli
[feature request] build chain error handling
- Ngôn ngữ chính
- TypeScript
- Star
- 2k
- Fork
- 682
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
_From @wzr1337 on June 28, 2016 21:49_
I just had an issue with code that did not compile because I wanted to assign a number to a string. Typescript did not compile. This caused to browser code I was running to remain the same. Unfortunately, I did not notice the error in the shell, because it was hidden behind the editor.
I would strongly recommend to catch any build error, pipe it into a static page and refresh the app in the browser with just the error page. This way, developers will be immediately aware of errors, that prevent code from being actually build and refreshed in the browser. Angular.cli for examples does catch all kinds of errors and puts them on the error age they show instead of the app in case of any errors.
The errors to catch would be any kind of .ts and *.scss and so on.
Best regards
_Copied from original issue: driftyco/ionic#7105_
Hướng dẫn đóng góp
Hướng nghiên cứu
Start by tracing how the Ionic CLI reports TypeScript and SCSS build errors and how it refreshes browser output. Compare the requested behavior with the Angular CLI example mentioned in the issue; done should mean build failures are surfaced in a browser error page instead of leaving the previous app running.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- scss, typescript
- Lĩnh vực
- build-system, cli
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100