Ng generate always assumes an `app` folder
- Lenguaje dominante
- TypeScript
- Estrellas
- 27k
- Forks
- 11.8k
- Merge medio
- 14 h 23 min
- PR fusionados (30 d)
- 162
Descripción
Our project setup doesn't have an immediate sub-folder of app, however, it appears that running ng generate always assume that you have an `app` folder under the app root folder you specified in .angular-cli.json
### Versions
```
Angular CLI: 1.6.0
Node: 7.0.0
OS: darwin x64
Angular:
...
```
### Repro steps
* Setup a simple .angular-cli.json with:
```
{
"apps": [
{
"name": "client",
"root": "projects/client"
}
]
}
```
* Run:
```
ng g c form-inputs/mike --skip-import --dry-run --app=client
```
### Observed behavior
You'll see the output path always assumes an `app` folder:
```
create projects/client/app/form-inputs/mike/mike.component.css (0 bytes)
create projects/client/app/form-inputs/mike/mike.component.html (23 bytes)
create projects/client/app/form-inputs/mike/mike.component.spec.ts (614 bytes)
create projects/client/app/form-inputs/mike/mike.component.ts (261 bytes)
```
### Desired behavior
I'd like an option to be able to configure whether your project has the `app` folder or not. Or maybe an option to configure the whole path the component gets created in.
Guía de contribución
Línea de trabajo
Comienza reproduciendo el comando `ng g c form-inputs/mike --skip-import --dry-run --app=client` con el `.angular-cli.json` mostrado. Rastrea cómo se combina `root` con la ruta del componente generado y, a continuación, verifica que la configuración elegida cree los archivos en la ubicación prevista sin asumir que existe una carpeta `app`.
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
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100