Skip to content

Commit

Permalink
docs(angular): fix schema for host application (#9602)
Browse files Browse the repository at this point in the history
  • Loading branch information
Coly010 committed Mar 30, 2022
1 parent 0312fde commit b952d0c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 22 deletions.
18 changes: 7 additions & 11 deletions docs/generated/packages/angular.json
Expand Up @@ -988,32 +988,28 @@
"$schema": "http://json-schema.org/schema",
"$id": "NxMFEHost",
"cli": "nx",
"title": "Nx MFE Host App",
"title": "Nx MFE Host Application",
"description": "Create an Angular Host Micro Frontend Application",
"type": "object",
"examples": [
{
"command": "nx g @nrwl/angular:mfe-host appName --remotes=remote1",
"description": "Create an Angular app with configuration in place for MFE. If remotes is provided, attach the remote app to this app's configuration."
"description": "Create an Angular application with configuration in place for MFE. If the `remotes` option is provided, attach the remote application to this application's configuration"
}
],
"properties": {
"name": {
"type": "string",
"description": "The name to give to the host Angular app.",
"description": "The name to give to the host Angular application.",
"$default": { "$source": "argv", "index": 0 }
},
"host": {
"type": "string",
"description": "The name of the host app to attach this host app to."
},
"port": {
"type": "number",
"description": "The port on which this app should be served."
"remotes": {
"type": "array",
"description": "The names of the remote applications to add to the host."
},
"dynamic": {
"type": "boolean",
"description": "Should the host app use dynamic federation?",
"description": "Should the host application use dynamic federation?",
"default": false
}
},
Expand Down
18 changes: 7 additions & 11 deletions packages/angular/src/generators/mfe-host/schema.json
Expand Up @@ -2,35 +2,31 @@
"$schema": "http://json-schema.org/schema",
"$id": "NxMFEHost",
"cli": "nx",
"title": "Nx MFE Host App",
"title": "Nx MFE Host Application",
"description": "Create an Angular Host Micro Frontend Application",
"type": "object",
"examples": [
{
"command": "nx g @nrwl/angular:mfe-host appName --remotes=remote1",
"description": "Create an Angular app with configuration in place for MFE. If remotes is provided, attach the remote app to this app's configuration."
"description": "Create an Angular application with configuration in place for MFE. If the `remotes` option is provided, attach the remote application to this application's configuration"
}
],
"properties": {
"name": {
"type": "string",
"description": "The name to give to the host Angular app.",
"description": "The name to give to the host Angular application.",
"$default": {
"$source": "argv",
"index": 0
}
},
"host": {
"type": "string",
"description": "The name of the host app to attach this host app to."
},
"port": {
"type": "number",
"description": "The port on which this app should be served."
"remotes": {
"type": "array",
"description": "The names of the remote applications to add to the host."
},
"dynamic": {
"type": "boolean",
"description": "Should the host app use dynamic federation?",
"description": "Should the host application use dynamic federation?",
"default": false
}
},
Expand Down

1 comment on commit b952d0c

@vercel
Copy link

@vercel vercel bot commented on b952d0c Mar 30, 2022

Choose a reason for hiding this comment

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

Please sign in to comment.