angular / angular/angular-cli

Add support for SharedWorker in ng-cli

Đang mở
#20,279 5 bình luận 29 reaction 0 người được giao Xem trên GitHub
area: @schematics/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

### Relevant Package
This feature request is for @angular/cli

### Description
ng generate can currently handle web-workers and service-workers, but not shared-workers. It would be very helpful if shared workers could be handled similarly.

Right now there's very little documentation about how to setup shared workers with angular, unlike web workers where I can simply call `ng generate web-worker` and start filling in my code.

### Describe the solution you'd like
There should be an `ng generate shared-worker` command that works similar to the commands for web and service workers.

### Describe alternatives you've considered
This [medium article](https://medium.com/@nikita.s.barsukov/dedicated-and-shared-web-workers-in-angular-c3df473882f6) and [these](https://stackoverflow.com/questions/64495077/how-to-use-sharedworker-in-angular/64495078#64495078) [two](https://stackoverflow.com/questions/46159496/how-to-configure-angular-cli-generated-project-to-include-a-sharedworker) Stack Overflow questions both have different solutions to make this work.

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

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

Hướng nghiên cứu

Start with the existing ng generate web-worker and service-worker entry points and compare how they configure generated projects. Define the shared-worker command's expected setup and documentation, then verify that ng generate shared-worker produces a usable shared worker similarly to the existing commands.

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
build-system, cli
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
35/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.