angular / angular/angular-cli

Ask for recreating ( overwritting files) the current project folder

Aberta
#25,453 0 comentários 0 reações 0 responsáveis Ver no GitHub
area: @schematics/angular freq1: low severity3: broken type: bug/fix
Linguagem predominante
TypeScript
Estrelas
27k
Forks
11.8k
Merge médio
14h 23min
PRs com merge (30d)
162

Descrição

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

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

Comece no ponto de entrada do comando `ng new` e acompanhe como ele lida com uma pasta de projeto existente. Adicione o comportamento solicitado de confirmação ou erro, incluindo a orientação sobre um nome alternativo, e verifique se os arquivos existentes não são substituídos.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
angular, typescript
Domínio
cli
Tipo de issue
Funcionalidade
Dificuldade
3/5
Tempo estimado
1-2 dias
Status de atividade
Estagnada
Clareza
Razoavelmente clara
Facilidade para iniciantes
35/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.