ng add @angular/seo
- 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ả
_From @IgorMinar on April 18, 2018 10:7_
### Bug Report or Feature Request (mark with an `x`)
```
- [ ] bug report -> please search issues before submitting
- [x] feature request
```
### Area
```
- [ ] devkit
- [x] schematics
```
### Versions
v6
### Desired functionality
I'd like to be able to invoke `ng add @angular/seo` and have the CLI make my application search engine friendly. Initially I'd like to see the following feature provided by the schematics:
- generate robots.txt with no rules but a simple instructions/link on how to setup blacklist rules
- generate sitemap.xml with similar documentation/links as in robots.txt
- add code that would feature detect and conditionally load polyfills needed by the crawlers
- setup error logging via global error handler with an option to redirect the output to a remote server
- provide facilities to easily add and remove the `noindex` metadata to emulate the HTTP 404 and 500 status codes
### Mention any other details that might be useful
_Copied from original issue: angular/devkit#729_
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng việc xem xét khu vực schematics của Angular CLI và luồng `ng add` được mô tả trong issue. Chia yêu cầu thành các tính năng SEO được liệt kê—robots.txt, sitemap.xml, các polyfill cho crawler, ghi nhật ký lỗi và xử lý noindex—và làm rõ phạm vi cùng tiêu chí chấp nhận trước khi thay đổi bất kỳ điều gì; không có tệp hoặc bài kiểm thử nào được nêu tên.
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ó
- 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
- 25/100