angular / angular/angular-cli

Ask for recreating ( overwritting files) the current project folder

Offen
#25,453 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area: @schematics/angular freq1: low severity3: broken type: bug/fix
Vorherrschende Sprache
TypeScript
Sterne
27k
Forks
11.8k
Ø Merge
14 Std. 23 Min.
Gemergte PRs (30 T.)
162

Beschreibung

### Command

new

### Description

I'm new to Angular and I just started using its CLI, it's easy to use and I appreciate it a lot.

However, I have noticed that it misses ( based on my experience with NextJS CLI) to ask the developer if the project ( folder ) exists and if he is sure that he wants to recreate the project and remove the old files.

##### STEP 01

`ng new my app`

##### STEP 02

Write some code and save the changes.

##### STEP 03

`ng new my app`

### Expected

The CLI asks that the project name exists.

### Current

Create a new project with the same name and replace older files with the new ones.

### Describe the solution you'd like

The CLI should inform the developer that the project name exists and recommends alternative names.

### Describe alternatives you've considered

Invoke an error and enforce the user to change the name of the project name.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne am Einstiegspunkt des Befehls `ng new` und verfolge, wie er mit einem vorhandenen Projektordner umgeht. Füge das angeforderte Bestätigungs- oder Fehlerverhalten einschließlich eines Hinweises auf einen alternativen Namen hinzu und überprüfe, dass vorhandene Dateien nicht ersetzt werden.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
angular, typescript
Bereich
cli
Issue-Typ
Feature
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 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.