angular-cn/aio/content/examples/schematics-for-libraries/projects/my-lib/schematics/collection.json

14 lines
408 B
JSON
Raw Normal View History

{
"$schema": "../../../node_modules/@angular-devkit/schematics/collection-schema.json",
"schematics": {
"ng-add": {
"description": "Add my library to the project.",
"factory": "./ng-add/index#ngAdd"
},
"my-service": {
"description": "Generate a service in the project.",
"factory": "./my-service/index#myService",
"schema": "./my-service/schema.json"
}
}
}