angular / angular/angular-cli

Show setup options during `ng new`

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

描述

# 🚀 Feature request

### Command (mark with an `x`)

- [x] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] extract-i18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

### Description

It's not obvious to people that we provide integrations with testing and linting solutions even though they exist. Folks have to run `ng e2e` to see the supported testing frameworks and after that run `ng add [solution]`. Alternatively, for linting they have to run `ng lint` to get ESLint installed, but none of the tools comes by default.

### Describe the solution you'd like

To better inform developers about the integrations we provide, we can update our setup experience. When folks create a new project we can show two prompts:

```
- Which end-to-end testing framework you want to use:
- Cypress
- Nightwatch
- WebDriver
- None
- Do you want ESLint? (Y/n)
```

If folks select `None` and `n` they should still be able to add e2e/linting to their projects with `ng add [schematics]`. If people select an integration we can automatically run `ng add [...]` at setup time for them.

貢獻指南

開啟貢獻指南

研究方向

從 `ng new` 設定流程開始,追蹤 `ng add`、`ng e2e` 和 `ng lint` 目前如何提供整合。定義提示及其選項,然後驗證選取某個整合會呼叫預期的設定,而選取 `None` 或 `n` 時,專案仍可繼續使用後續的 `ng add` 命令。

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

評估

技術堆疊
angular, cypress, eslint, typescript
領域
cli, developer-experience, testing
Issue 類型
功能
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

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

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