From a4fb8374f7d4825c044114a2cb8a9f7d49b59657 Mon Sep 17 00:00:00 2001 From: Colum Ferry Date: Wed, 30 Mar 2022 12:59:57 +0000 Subject: [PATCH] docs(angular): fix schema for host application (#9602) --- docs/generated/packages/angular.json | 18 +++++++----------- .../src/generators/mfe-host/schema.json | 18 +++++++----------- 2 files changed, 14 insertions(+), 22 deletions(-) diff --git a/docs/generated/packages/angular.json b/docs/generated/packages/angular.json index 149ff2a31b3d7..82cfacf10ea60 100644 --- a/docs/generated/packages/angular.json +++ b/docs/generated/packages/angular.json @@ -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 } }, diff --git a/packages/angular/src/generators/mfe-host/schema.json b/packages/angular/src/generators/mfe-host/schema.json index 27f9d847780e0..0ed0b68547573 100644 --- a/packages/angular/src/generators/mfe-host/schema.json +++ b/packages/angular/src/generators/mfe-host/schema.json @@ -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 } },