angular / angular/angular-cli

ng add @angular/seo

未關閉
#12,120 23 則留言 30 個 reaction 已指派 0 人 在 GitHub 檢視
area: @schematics/angular feature feature: under consideration
主要語言
TypeScript
星號
27k
分支
11.8k
平均合併
14 小時 23 分鐘
30 天內合併 PR
162

描述

_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_

貢獻指南

開啟貢獻指南

研究方向

首先檢視 Angular CLI schematics 區域,以及 issue 中描述的 `ng add` 流程。將需求拆分為列出的 SEO 功能—robots.txt、sitemap.xml、crawler polyfills、錯誤記錄與 noindex 處理—並在進行任何變更前釐清範圍與驗收標準;未列出任何檔案或測試。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
angular, typescript
領域
cli, tooling
Issue 類型
功能
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
基本清楚
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。