angular / angular/angular-cli

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

Ouverte
#10,962 2 commentaires 2 réactions 0 personnes assignées Voir sur GitHub
feature feature: insufficient votes
Langage dominant
TypeScript
Étoiles
27k
Forks
11.8k
Merge moyen
14 h 23 min
PR mergées (30 j)
162

Description

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

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
angular, typescript
Domaine
cli, tooling
Type d'issue
Fonctionnalité
Difficulté
5/5
Temps estimé
Plus d'une semaine
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
30/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.