fix(angular): misc fixes in some generator schemas (#15602)

This commit is contained in:
Leosvel Pérez Espinosa 2023-03-10 16:19:55 +00:00 committed by GitHub
parent 6c9a0e399c
commit 46b3767303
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 24 additions and 28 deletions

View File

@ -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": []
},

View File

@ -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",

View File

@ -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",

View File

@ -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).",

View File

@ -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).",

View File

@ -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).",

View File

@ -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"
}

View File

@ -18,7 +18,8 @@
"$default": {
"$source": "argv",
"index": 0
}
},
"pattern": "^[a-zA-Z].*$"
},
"remotes": {
"type": "array",

View File

@ -18,7 +18,8 @@
"$default": {
"$source": "argv",
"index": 0
}
},
"pattern": "^[a-zA-Z].*$"
},
"host": {
"type": "string",

View File

@ -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"]
}

View File

@ -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"]
}

View File

@ -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"]
}