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 摘要。