Ask for recreating ( overwritting files) the current project folder

Aperta
#25,453 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
angular, typescript
Ambito
cli

Direzione di ricerca

Parti dal punto di ingresso del comando ng new e segui come gestisce una cartella di progetto esistente. Aggiungi il comportamento richiesto di conferma o errore, comprese le indicazioni per un nome alternativo, e verifica che i file esistenti non vengano sostituiti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area: @schematics/angular freq1: low severity3: broken type: bug/fix
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.

Lingua principale
TypeScript
Stelle
27k
Fork
11.8k
Merge medio
16h 35m
PR unite (30g)
176

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di angular/angular-cli

Tutte le issue di angular/angular-cli

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.