angular / angular/angular-cli

ng add - to refer the add schematic from another npm module

Aberta
#10,962 2 comentários 2 reações 0 responsáveis Ver no GitHub
feature feature: insufficient votes
Linguagem predominante
TypeScript
Estrelas
27k
Forks
11.8k
Merge médio
14h 23min
PRs com merge (30d)
162

Descrição

### Observed behavior
Currently `ng add package-name` goes into `package-name` and looks for an `add` schematic.
I work on a schematic in @nativescript/schematics.
So, in order to run `ng add` for it, I need to call `ng add @nativescript/schematics`
While our main library is `nativescript`.

### Desired behavior
Ideally, I would like to be able to call `ng add nativescript`, however I can't move my schematics into `nativescript` repo at the moment.
Perhaps there could be a way to add a reference for @nativescript/schematics` to `nativescript`.

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

Start at the ng add command and trace how it resolves the add schematic from package-name. Compare the desired nativescript invocation with the current @nativescript/schematics lookup; done means a package can reference an add schematic supplied by another npm module.

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
5/5
Tempo estimado
Mais de uma semana
Status de atividade
Estagnada
Clareza
Razoavelmente clara
Facilidade para iniciantes
30/100

Receba novas issues na sua caixa de entrada

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