mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-22 06:41:45 +08:00
And other refactors. The interface for the JSON is available in command.ts (the CommandDescription).
32 lines
767 B
JSON
32 lines
767 B
JSON
{
|
|
"$schema": "http://json-schema.org/schema",
|
|
"$id": "ng-cli://commands/generate.json",
|
|
"description": "Generates and/or modifies files based on a schematic.",
|
|
"$longDescription": "",
|
|
|
|
"$aliases": [ "g" ],
|
|
"$scope": "in",
|
|
"$type": "schematics",
|
|
"$impl": "./generate-impl#GenerateCommand",
|
|
|
|
"allOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"schematic": {
|
|
"type": "string",
|
|
"description": "The schematic or collection:schematic to generate.",
|
|
"$default": {
|
|
"$source": "argv",
|
|
"index": 0
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
]
|
|
},
|
|
{ "$ref": "./definitions.json#/definitions/base" },
|
|
{ "$ref": "./definitions.json#/definitions/schematic" }
|
|
]
|
|
}
|