angular / angular/angular-cli

Show setup options during `ng new`

Offen
#22,978 7 Kommentare 30 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area: @schematics/angular feature
Vorherrschende Sprache
TypeScript
Sterne
27k
Forks
11.8k
Ø Merge
14 Std. 23 Min.
Gemergte PRs (30 T.)
162

Beschreibung

# 🚀 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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne mit dem `ng new`-Einrichtungsablauf und verfolge, wie `ng add`, `ng e2e` und `ng lint` derzeit Integrationen verfügbar machen. Definiere die Eingabeaufforderungen und ihre Auswahlmöglichkeiten und überprüfe dann, dass die Auswahl einer Integration die erwartete Einrichtung aufruft, während `None` oder `n` Projekte für spätere `ng add`-Befehle nutzbar lässt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
angular, cypress, eslint, typescript
Bereich
cli, developer-experience, testing
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.