我构建了一个简单的 Angular Schematics,名为:my-schematics。
我能够将(使用 angular cli)我的原理图添加到某个项目中。
运行时ng update my-schematics
出现错误的问题是:
Not found : my-schematic
.
我不确定为什么。这是我的collection.json
:
"schematics": {
"update": {
"description": "Updates version test",
"factory": "./ng-update/index#update"
}
}