fix(angular): misc fixes in some generator schemas (#15602)
This commit is contained in:
parent
6c9a0e399c
commit
46b3767303
@ -19,8 +19,7 @@
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "The name of the project.",
|
||||
"x-dropdown": "projects",
|
||||
"x-priority": "important"
|
||||
"x-dropdown": "projects"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
@ -113,7 +112,7 @@
|
||||
"x-priority": "important"
|
||||
}
|
||||
},
|
||||
"required": ["name"],
|
||||
"required": ["name", "project"],
|
||||
"examplesFile": "## Examples\n\n{% tabs %}\n{% tab label=\"Simple Component\" %}\n\nCreate a component named `my-component`:\n\n```bash\nnx g @nrwl/angular:component my-component\n```\n\n{% /tab %}\n\n{% tab label=\"Standalone Component\" %}\n\nCreate a standalone component named `my-component`:\n\n```bash\nnx g @nrwl/angular:component my-component --standalone\n```\n\n{% /tab %}\n\n{% tab label=\"Single File Component\" %}\n\nCreate a component named `my-component` with inline styles and inline template:\n\n```bash\nnx g @nrwl/angular:component my-component --inlineStyle --inlineTemplate\n```\n\n{% /tab %}\n\n{% tab label=\"Component with OnPush Change Detection Strategy\" %}\n\nCreate a component named `my-component` with OnPush Change Detection Strategy:\n\n```bash\nnx g @nrwl/angular:component my-component --changeDetection=OnPush\n```\n\n{% /tab %}\n",
|
||||
"presets": []
|
||||
},
|
||||
|
||||
@ -18,7 +18,8 @@
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "The name to give to the host Angular application.",
|
||||
"$default": { "$source": "argv", "index": 0 }
|
||||
"$default": { "$source": "argv", "index": 0 },
|
||||
"pattern": "^[a-zA-Z].*$"
|
||||
},
|
||||
"remotes": {
|
||||
"type": "array",
|
||||
|
||||
@ -18,7 +18,8 @@
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "The name to give to the remote Angular app.",
|
||||
"$default": { "$source": "argv", "index": 0 }
|
||||
"$default": { "$source": "argv", "index": 0 },
|
||||
"pattern": "^[a-zA-Z].*$"
|
||||
},
|
||||
"host": {
|
||||
"type": "string",
|
||||
|
||||
@ -25,8 +25,7 @@
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "The name of the project.",
|
||||
"x-dropdown": "projects",
|
||||
"x-priority": "important"
|
||||
"x-dropdown": "projects"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
@ -72,7 +71,7 @@
|
||||
"x-priority": "important"
|
||||
}
|
||||
},
|
||||
"required": ["name"],
|
||||
"required": ["name", "project"],
|
||||
"presets": []
|
||||
},
|
||||
"description": "Generate a directive with an accompanying Single Component Angular Module (SCAM).",
|
||||
|
||||
@ -25,8 +25,7 @@
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "The name of the project.",
|
||||
"x-dropdown": "projects",
|
||||
"x-priority": "important"
|
||||
"x-dropdown": "projects"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
@ -58,7 +57,7 @@
|
||||
"x-priority": "important"
|
||||
}
|
||||
},
|
||||
"required": ["name"],
|
||||
"required": ["name", "project"],
|
||||
"presets": []
|
||||
},
|
||||
"description": "Generate a pipe with an accompanying Single Component Angular Module (SCAM).",
|
||||
|
||||
@ -25,8 +25,7 @@
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "The name of the project.",
|
||||
"x-dropdown": "projects",
|
||||
"x-priority": "important"
|
||||
"x-dropdown": "projects"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
@ -118,7 +117,7 @@
|
||||
"x-priority": "important"
|
||||
}
|
||||
},
|
||||
"required": ["name"],
|
||||
"required": ["name", "project"],
|
||||
"presets": []
|
||||
},
|
||||
"description": "Generate a component with an accompanying Single Component Angular Module (SCAM).",
|
||||
|
||||
@ -16,8 +16,7 @@
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "The name of the project.",
|
||||
"x-dropdown": "projects",
|
||||
"x-priority": "important"
|
||||
"x-dropdown": "projects"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
@ -113,6 +112,6 @@
|
||||
"x-priority": "important"
|
||||
}
|
||||
},
|
||||
"required": ["name"],
|
||||
"required": ["name", "project"],
|
||||
"examplesFile": "../../../docs/component-examples.md"
|
||||
}
|
||||
|
||||
@ -18,7 +18,8 @@
|
||||
"$default": {
|
||||
"$source": "argv",
|
||||
"index": 0
|
||||
}
|
||||
},
|
||||
"pattern": "^[a-zA-Z].*$"
|
||||
},
|
||||
"remotes": {
|
||||
"type": "array",
|
||||
|
||||
@ -18,7 +18,8 @@
|
||||
"$default": {
|
||||
"$source": "argv",
|
||||
"index": 0
|
||||
}
|
||||
},
|
||||
"pattern": "^[a-zA-Z].*$"
|
||||
},
|
||||
"host": {
|
||||
"type": "string",
|
||||
|
||||
@ -22,8 +22,7 @@
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "The name of the project.",
|
||||
"x-dropdown": "projects",
|
||||
"x-priority": "important"
|
||||
"x-dropdown": "projects"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
@ -77,5 +76,5 @@
|
||||
"x-priority": "important"
|
||||
}
|
||||
},
|
||||
"required": ["name"]
|
||||
"required": ["name", "project"]
|
||||
}
|
||||
|
||||
@ -22,8 +22,7 @@
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "The name of the project.",
|
||||
"x-dropdown": "projects",
|
||||
"x-priority": "important"
|
||||
"x-dropdown": "projects"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
@ -58,5 +57,5 @@
|
||||
"x-priority": "important"
|
||||
}
|
||||
},
|
||||
"required": ["name"]
|
||||
"required": ["name", "project"]
|
||||
}
|
||||
|
||||
@ -22,8 +22,7 @@
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "The name of the project.",
|
||||
"x-dropdown": "projects",
|
||||
"x-priority": "important"
|
||||
"x-dropdown": "projects"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
@ -123,5 +122,5 @@
|
||||
"x-priority": "important"
|
||||
}
|
||||
},
|
||||
"required": ["name"]
|
||||
"required": ["name", "project"]
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user