Support relative pathing for `ng generate` statements
- Linguagem predominante
- TypeScript
- Estrelas
- 27k
- Forks
- 11.8k
- Merge médio
- 14h 23min
- PRs com merge (30d)
- 162
Descrição
### Bug Report or Feature Request (mark with an `x`)
```
- [ ] bug report -> please search issues before submitting
- [x] feature request
```
### Versions.
```@angular/cli: 1.0.4
node: 6.10.2
os: linux x64
@angular/common: 4.1.3
@angular/compiler: 4.1.3
@angular/core: 4.1.3
@angular/forms: 4.1.3
@angular/http: 4.1.3
@angular/platform-browser: 4.1.3
@angular/platform-browser-dynamic: 4.1.3
@angular/router: 4.1.3
@angular/cli: 1.0.4
@angular/compiler-cli: 4.1.3
```
### Repro steps.
From project root:
```
ng g component ./src/app/components/test
```
### The log given by the failure.
```
installing component
create src/app/src/app/components/test/test.component.scss
create src/app/src/app/components/test/test.component.html
create src/app/src/app/components/test/test.component.spec.ts
create src/app/src/app/components/test/test.component.ts
```
### Desired functionality.
Doesn't create src/app under the (already existing) src/app directory.
This is a minor change, but would then allow me to use autocomplete with the generator, even if the immediate fix is to just remove 'src/app' from the file location input before processing.
### Mention any other details that might be useful.
Guia de contribuição
Direção de pesquisa
Reproduza o problema a partir da raiz do projeto com `ng g component ./src/app/components/test` e inspecione como o gerador do Angular CLI resolve esse caminho relativo. A tarefa estará concluída quando os arquivos gerados forem colocados no diretório `src/app` existente sem criar um caminho duplicado `src/app/src/app`.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- angular, typescript
- Domínio
- cli, tooling
- Tipo de issue
- Funcionalidade
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 38/100