From 39c8c419ee30f0341b342ba7b4dae5ed492d11b0 Mon Sep 17 00:00:00 2001 From: Max Kless Date: Thu, 25 May 2023 16:03:07 +0200 Subject: [PATCH] chore(react): mark application generator as required --- docs/generated/packages/react/generators/application.json | 5 ++--- packages/react/src/generators/application/schema.json | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/docs/generated/packages/react/generators/application.json b/docs/generated/packages/react/generators/application.json index 1d345099545de..90006ff44d5d8 100644 --- a/docs/generated/packages/react/generators/application.json +++ b/docs/generated/packages/react/generators/application.json @@ -28,8 +28,7 @@ "type": "string", "$default": { "$source": "argv", "index": 0 }, "x-prompt": "What name would you like to use for the application?", - "pattern": "^[a-zA-Z].*$", - "x-priority": "important" + "pattern": "^[a-zA-Z].*$" }, "directory": { "description": "The directory of the new application.", @@ -185,7 +184,7 @@ "default": false } }, - "required": [], + "required": ["name"], "examplesFile": "## Examples\n\n{% tabs %}\n{% tab label=\"Simple Application\" %}\n\nCreate an application named `my-app`:\n\n```bash\nnx g @nx/react:application my-app\n```\n\n{% /tab %}\n\n{% tab label=\"Application using Vite as bundler\" %}\n\nCreate an application named `my-app`:\n\n```bash\nnx g @nx/react:app my-app --bundler=vite\n```\n\n{% /tab %}\n\n{% tab label=\"Specify directory and style extension\" %}\n\nCreate an application named `my-app` in the `my-dir` directory and use `scss` for styles:\n\n```bash\nnx g @nx/react:app my-app --directory=my-dir --style=scss\n```\n\n{% /tab %}\n\n{% tab label=\"Add tags\" %}\n\nAdd tags to the application (used for linting).\n\n```bash\nnx g @nx/react:app my-app --tags=scope:admin,type:ui\n```\n\n{% /tab %}\n{% /tabs %}\n", "presets": [] }, diff --git a/packages/react/src/generators/application/schema.json b/packages/react/src/generators/application/schema.json index fec7f8af8b74e..5eb0249f8015d 100644 --- a/packages/react/src/generators/application/schema.json +++ b/packages/react/src/generators/application/schema.json @@ -28,8 +28,7 @@ "index": 0 }, "x-prompt": "What name would you like to use for the application?", - "pattern": "^[a-zA-Z].*$", - "x-priority": "important" + "pattern": "^[a-zA-Z].*$" }, "directory": { "description": "The directory of the new application.", @@ -191,6 +190,6 @@ "default": false } }, - "required": [], + "required": ["name"], "examplesFile": "../../../docs/application-examples.md" }