Ask for recreating ( overwritting files) the current project folder
- Lenguaje dominante
- TypeScript
- Estrellas
- 27k
- Forks
- 11.8k
- Merge medio
- 14 h 23 min
- PR fusionados (30 d)
- 162
Descripción
### 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.
Guía de contribución
Línea de trabajo
Comienza en el punto de entrada del comando `ng new` y sigue cómo gestiona una carpeta de proyecto existente. Añade el comportamiento solicitado de confirmación o error, incluida la indicación de un nombre alternativo, y verifica que los archivos existentes no se reemplacen.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- angular, typescript
- Área
- cli
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100