angular / angular/angular-cli

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

Abierto
#10,962 2 comentarios 2 reacciones 0 asignados Ver en GitHub
feature feature: insufficient votes
Lenguaje dominante
TypeScript
Estrellas
27k
Forks
11.8k
Merge medio
14 h 23 min
PR fusionados (30 d)
162

Descripción

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

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
angular, typescript
Área
cli, tooling
Tipo de issue
Nueva funcionalidad
Dificultad
5/5
Tiempo estimado
Más de una semana
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
30/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.