Support web workers in libraries
- 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
### Command (mark with an `x`)
```
- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [x] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
```
### Description
I would like to use Web Workers in an Angular 8 library project.
In version 8.1.1 this seems to be supported for project type 'application' only:
```console
ng generate webWorker my-module/myWorker --project my-lib
Web Worker requires a project type of "application".
```
### Describe the solution you'd like
Generating a Web Worker should work for project type 'library' as well.
### Describe alternatives you've considered
Rewrite TypeScript worker code to JavaScript file.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách chạy `ng generate webWorker my-module/myWorker --project my-lib` và lần theo quá trình xác thực loại project của lệnh generate. Hoàn tất khi lệnh tạo một Web Worker cho một project thư viện thay vì báo rằng worker yêu cầu một application.
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
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 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