Skip to content

Commit

Permalink
fix(angular): misc fixes in some generator schemas (#15602)
Browse files Browse the repository at this point in the history
  • Loading branch information
leosvelperez committed Mar 10, 2023
1 parent 6c9a0e3 commit 46b3767
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 28 deletions.
5 changes: 2 additions & 3 deletions docs/generated/packages/angular/generators/component.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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": []
},
Expand Down
3 changes: 2 additions & 1 deletion docs/generated/packages/angular/generators/host.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion docs/generated/packages/angular/generators/remote.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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).",
Expand Down
5 changes: 2 additions & 3 deletions docs/generated/packages/angular/generators/scam-pipe.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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).",
Expand Down
5 changes: 2 additions & 3 deletions docs/generated/packages/angular/generators/scam.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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).",
Expand Down
5 changes: 2 additions & 3 deletions packages/angular/src/generators/component/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -113,6 +112,6 @@
"x-priority": "important"
}
},
"required": ["name"],
"required": ["name", "project"],
"examplesFile": "../../../docs/component-examples.md"
}
3 changes: 2 additions & 1 deletion packages/angular/src/generators/host/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"$default": {
"$source": "argv",
"index": 0
}
},
"pattern": "^[a-zA-Z].*$"
},
"remotes": {
"type": "array",
Expand Down
3 changes: 2 additions & 1 deletion packages/angular/src/generators/remote/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"$default": {
"$source": "argv",
"index": 0
}
},
"pattern": "^[a-zA-Z].*$"
},
"host": {
"type": "string",
Expand Down
5 changes: 2 additions & 3 deletions packages/angular/src/generators/scam-directive/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -77,5 +76,5 @@
"x-priority": "important"
}
},
"required": ["name"]
"required": ["name", "project"]
}
5 changes: 2 additions & 3 deletions packages/angular/src/generators/scam-pipe/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -58,5 +57,5 @@
"x-priority": "important"
}
},
"required": ["name"]
"required": ["name", "project"]
}
5 changes: 2 additions & 3 deletions packages/angular/src/generators/scam/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -123,5 +122,5 @@
"x-priority": "important"
}
},
"required": ["name"]
"required": ["name", "project"]
}

1 comment on commit 46b3767

@vercel
Copy link

@vercel vercel bot commented on 46b3767 Mar 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-nrwl.vercel.app
nx-dev-git-master-nrwl.vercel.app
nx-five.vercel.app
nx.dev

Please sign in to comment.