diff --git a/docs/generated/packages/web/executors/dev-server.json b/docs/generated/packages/web/executors/dev-server.json index 53f8ee4093..eb17bab052 100644 --- a/docs/generated/packages/web/executors/dev-server.json +++ b/docs/generated/packages/web/executors/dev-server.json @@ -53,7 +53,8 @@ }, "publicHost": { "type": "string", - "description": "Public URL where the application will be served." + "description": "Public URL where the application will be served.", + "x-priority": "important" }, "open": { "type": "boolean", @@ -74,9 +75,12 @@ }, "baseHref": { "type": "string", - "description": "Base url for the application being built." + "description": "Base url for the application being built.", + "x-priority": "important" } }, + "additionalProperties": false, + "required": ["buildTarget"], "presets": [] }, "description": "Serve a web application.", diff --git a/docs/generated/packages/web/executors/file-server.json b/docs/generated/packages/web/executors/file-server.json index 55aa9a7c4b..1481eec902 100644 --- a/docs/generated/packages/web/executors/file-server.json +++ b/docs/generated/packages/web/executors/file-server.json @@ -64,7 +64,8 @@ "spa": { "type": "boolean", "description": "Redirect 404 errors to index.html (useful for SPA's)", - "default": false + "default": false, + "x-priority": "important" }, "staticFilePath": { "type": "string", diff --git a/docs/generated/packages/web/executors/rollup.json b/docs/generated/packages/web/executors/rollup.json index b84ee01e7c..ab420617b0 100644 --- a/docs/generated/packages/web/executors/rollup.json +++ b/docs/generated/packages/web/executors/rollup.json @@ -40,7 +40,8 @@ "description": "Only build the specified comma-separated formats (`esm,umd,cjs`)", "alias": "f", "items": { "type": "string", "enum": ["esm", "umd", "cjs"] }, - "default": ["esm"] + "default": ["esm"], + "x-priority": "important" }, "external": { "type": "array", @@ -79,7 +80,8 @@ "x-completion-glob": "rollup?(*)@(.js|.ts)" } ], - "description": "Path to a function which takes a rollup config and returns an updated rollup config." + "description": "Path to a function which takes a rollup config and returns an updated rollup config.", + "x-priority": "important" }, "extractCss": { "type": ["boolean", "string"], @@ -119,7 +121,8 @@ "type": "string", "enum": ["babel", "swc"], "default": "babel", - "description": "Which compiler to use." + "description": "Which compiler to use.", + "x-priority": "important" }, "javascriptEnabled": { "type": "boolean", diff --git a/docs/generated/packages/web/executors/webpack.json b/docs/generated/packages/web/executors/webpack.json index b326f36f4b..55fcc63a1d 100644 --- a/docs/generated/packages/web/executors/webpack.json +++ b/docs/generated/packages/web/executors/webpack.json @@ -29,7 +29,8 @@ "type": "string", "description": "The compiler to use.", "enum": ["babel", "swc"], - "default": "babel" + "default": "babel", + "x-priority": "important" }, "outputPath": { "type": "string", @@ -48,11 +49,13 @@ }, "baseHref": { "type": "string", - "description": "Base url for the application being built." + "description": "Base url for the application being built.", + "x-priority": "important" }, "deployUrl": { "type": "string", - "description": "URL where the application will be deployed." + "description": "URL where the application will be deployed.", + "x-priority": "important" }, "vendorChunk": { "type": "boolean", @@ -376,7 +379,8 @@ "type": "string", "description": "Path to a function which takes a webpack config, some context and returns the resulting webpack config. See https://nx.dev/guides/customize-webpack", "x-completion-type": "file", - "x-completion-glob": "webpack?(*)@(.js|.ts)" + "x-completion-glob": "webpack?(*)@(.js|.ts)", + "x-priority": "important" } }, "required": ["tsConfig", "main", "index"], diff --git a/docs/generated/packages/web/generators/application.json b/docs/generated/packages/web/generators/application.json index e0001547e6..51a1a47357 100644 --- a/docs/generated/packages/web/generators/application.json +++ b/docs/generated/packages/web/generators/application.json @@ -48,14 +48,16 @@ "type": "string", "description": "The compiler to use", "enum": ["babel", "swc"], - "default": "babel" + "default": "babel", + "x-priority": "important" }, "bundler": { "type": "string", "description": "The bundler to use.", "enum": ["webpack", "none", "vite"], "default": "webpack", - "x-prompt": "Which bundler do you want to use?" + "x-prompt": "Which bundler do you want to use?", + "x-priority": "important" }, "linter": { "description": "The tool to use for running lint checks.", @@ -66,7 +68,8 @@ "skipFormat": { "description": "Skip formatting files", "type": "boolean", - "default": false + "default": false, + "x-priority": "internal" }, "unitTestRunner": { "type": "string", @@ -100,7 +103,7 @@ "x-deprecated": "Nx only supports standaloneConfig" } }, - "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 @nrwl/web: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 @nrwl/web:app my-app --bundler=vite\n```\n\n{% /tab %}\n\n{% tab label=\"Specify directory\" %}\n\nCreate an application named `my-app` in the `my-dir` directory:\n\n```bash\nnx g @nrwl/web:app my-app --directory=my-dir\n```\n\n{% /tab %}\n\n{% tab label=\"Add tags\" %}\n\nAdd tags to the application (used for linting).\n\n```bash\nnx g @nrwl/web:app my-app --tags=scope:admin,type:ui\n```\n\n{% /tab %}\n{% /tabs %}\n", "presets": [] }, diff --git a/packages/web/src/executors/dev-server/schema.json b/packages/web/src/executors/dev-server/schema.json index 0c235b263b..9f644f5812 100644 --- a/packages/web/src/executors/dev-server/schema.json +++ b/packages/web/src/executors/dev-server/schema.json @@ -50,7 +50,8 @@ }, "publicHost": { "type": "string", - "description": "Public URL where the application will be served." + "description": "Public URL where the application will be served.", + "x-priority": "important" }, "open": { "type": "boolean", @@ -71,7 +72,10 @@ }, "baseHref": { "type": "string", - "description": "Base url for the application being built." + "description": "Base url for the application being built.", + "x-priority": "important" } - } + }, + "additionalProperties": false, + "required": ["buildTarget"] } diff --git a/packages/web/src/executors/file-server/schema.json b/packages/web/src/executors/file-server/schema.json index 3a22f64715..8a99193957 100644 --- a/packages/web/src/executors/file-server/schema.json +++ b/packages/web/src/executors/file-server/schema.json @@ -66,7 +66,8 @@ "spa": { "type": "boolean", "description": "Redirect 404 errors to index.html (useful for SPA's)", - "default": false + "default": false, + "x-priority": "important" }, "staticFilePath": { "type": "string", diff --git a/packages/web/src/executors/rollup/schema.json b/packages/web/src/executors/rollup/schema.json index 99debb9b4e..ad548593ce 100644 --- a/packages/web/src/executors/rollup/schema.json +++ b/packages/web/src/executors/rollup/schema.json @@ -40,7 +40,8 @@ "type": "string", "enum": ["esm", "umd", "cjs"] }, - "default": ["esm"] + "default": ["esm"], + "x-priority": "important" }, "external": { "type": "array", @@ -81,7 +82,8 @@ "x-completion-glob": "rollup?(*)@(.js|.ts)" } ], - "description": "Path to a function which takes a rollup config and returns an updated rollup config." + "description": "Path to a function which takes a rollup config and returns an updated rollup config.", + "x-priority": "important" }, "extractCss": { "type": ["boolean", "string"], @@ -100,7 +102,8 @@ "type": "string", "enum": ["babel", "swc"], "default": "babel", - "description": "Which compiler to use." + "description": "Which compiler to use.", + "x-priority": "important" }, "javascriptEnabled": { "type": "boolean", diff --git a/packages/web/src/executors/webpack/schema.json b/packages/web/src/executors/webpack/schema.json index 51b7e81f9d..8e01be78f5 100644 --- a/packages/web/src/executors/webpack/schema.json +++ b/packages/web/src/executors/webpack/schema.json @@ -26,7 +26,8 @@ "type": "string", "description": "The compiler to use.", "enum": ["babel", "swc"], - "default": "babel" + "default": "babel", + "x-priority": "important" }, "outputPath": { "type": "string", @@ -45,11 +46,13 @@ }, "baseHref": { "type": "string", - "description": "Base url for the application being built." + "description": "Base url for the application being built.", + "x-priority": "important" }, "deployUrl": { "type": "string", - "description": "URL where the application will be deployed." + "description": "URL where the application will be deployed.", + "x-priority": "important" }, "vendorChunk": { "type": "boolean", @@ -252,7 +255,8 @@ "type": "string", "description": "Path to a function which takes a webpack config, some context and returns the resulting webpack config. See https://nx.dev/guides/customize-webpack", "x-completion-type": "file", - "x-completion-glob": "webpack?(*)@(.js|.ts)" + "x-completion-glob": "webpack?(*)@(.js|.ts)", + "x-priority": "important" } }, "required": ["tsConfig", "main", "index"], diff --git a/packages/web/src/generators/application/schema.json b/packages/web/src/generators/application/schema.json index 499fe80267..ef15dbe98a 100644 --- a/packages/web/src/generators/application/schema.json +++ b/packages/web/src/generators/application/schema.json @@ -51,14 +51,16 @@ "type": "string", "description": "The compiler to use", "enum": ["babel", "swc"], - "default": "babel" + "default": "babel", + "x-priority": "important" }, "bundler": { "type": "string", "description": "The bundler to use.", "enum": ["webpack", "none", "vite"], "default": "webpack", - "x-prompt": "Which bundler do you want to use?" + "x-prompt": "Which bundler do you want to use?", + "x-priority": "important" }, "linter": { "description": "The tool to use for running lint checks.", @@ -69,7 +71,8 @@ "skipFormat": { "description": "Skip formatting files", "type": "boolean", - "default": false + "default": false, + "x-priority": "internal" }, "unitTestRunner": { "type": "string", @@ -103,6 +106,6 @@ "x-deprecated": "Nx only supports standaloneConfig" } }, - "required": [], + "required": ["name"], "examplesFile": "../../../docs/application-examples.md" }