Alternative lookup convention for `ng-add` schematics
- 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ả
It would be nice to be able to externalize schematics from the package specified in the `ng add` command.
`ng add ionic` requires us to include schematics within the `ionic` package itself, which is not ideal for several reasons:
- **Separation of Concerns**. The `ionic` package isn't necessarily for Angular, but `ng add ionic` looks good 👌
- **Complication of the build within our main package.** Including the schematics in our main package would require including _a lot_ of the Angular DevKit into the build.
- **Slow "add".** It requires installing the entire package and all its dependencies (~38M) in a sandbox just to use a few files from the package.
In slack I believe we concluded that the best solution might be to have the `ng-add` field within `package.json` be allowed to point to another package.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu với lệnh `ng add` và trường `ng-add` trong `package.json`; xem xét cách package được chỉ định hiện đang được sử dụng cho schematics. Hoàn tất khi một mục `ng-add` có thể trỏ đến package khác, cho phép tách schematics khỏi package được nêu trong lệnh.
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ó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- 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
- 30/100