angular / angular/angular-cli

Ask for recreating ( overwritting files) the current project folder

Ouverte
#25,453 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
area: @schematics/angular freq1: low severity3: broken type: bug/fix
Langage dominant
TypeScript
Étoiles
27k
Forks
11.8k
Merge moyen
14 h 23 min
PR mergées (30 j)
162

Description

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

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez au point d’entrée de la commande `ng new` et suivez la façon dont elle gère un dossier de projet existant. Ajoutez le comportement de confirmation ou d’erreur demandé, y compris l’indication d’un autre nom, et vérifiez que les fichiers existants ne sont pas remplacés.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
angular, typescript
Domaine
cli
Type d'issue
Fonctionnalité
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.