angular / angular/angular-cli

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

未关闭
#10,962 2 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
feature feature: insufficient votes
主要语言
TypeScript
星标
27k
派生
11.8k
平均合并
14 小时 23 分钟
30 天内合并 PR
162

描述

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

贡献指南

打开贡献指南

调研方向

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.

由索引模型根据 Issue 内容生成。

评估

技术栈
angular, typescript
领域
cli, tooling
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
基本清楚
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。