docs(repo): update docs/schemas to use nx scoped packages - nx labs (#16865)

This commit is contained in:
Caleb Ukle 2023-05-09 08:30:52 -05:00 committed by GitHub
parent 54eb7be765
commit ad841c9048
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
66 changed files with 108 additions and 102 deletions

View File

@ -6,7 +6,7 @@
"outputCapture": "direct-nodejs", "outputCapture": "direct-nodejs",
"$schema": "http://json-schema.org/draft-07/schema", "$schema": "http://json-schema.org/draft-07/schema",
"title": "Schema for Webpack Dev Server", "title": "Schema for Webpack Dev Server",
"description": "The webpack-dev-server executor is very similar to the standard dev server builder provided by the Angular Devkit. It is usually used in tandem with `@nrwl/angular:webpack-browser` when your Angular application uses a custom webpack configuration.", "description": "The webpack-dev-server executor is very similar to the standard dev server builder provided by the Angular Devkit. It is usually used in tandem with `@nx/angular:webpack-browser` when your Angular application uses a custom webpack configuration.",
"examplesFile": "##### Seving an application with a custom webpack configuration\n\nThis executor should be used along with `@nx/angular:webpack-browser` to serve an application using a custom webpack configuration.\n\nYour `project.json` file should contain a `build` and `serve` target that matches the following:\n\n```json\n\"build\": {\n \"executor\": \"@nx/angular:webpack-browser\",\n \"options\": {\n ...\n \"customWebpackConfig\": {\n \"path\": \"apps/appName/webpack.config.js\"\n }\n }\n},\n\"serve\": {\n \"executor\": \"@nx/angular:webpack-dev-server\",\n \"configurations\": {\n \"production\": {\n \"browserTarget\": \"appName:build:production\"\n },\n \"development\": {\n \"browserTarget\": \"appName:build:development\"\n }\n },\n \"defaultConfiguration\": \"development\",\n}\n```\n", "examplesFile": "##### Seving an application with a custom webpack configuration\n\nThis executor should be used along with `@nx/angular:webpack-browser` to serve an application using a custom webpack configuration.\n\nYour `project.json` file should contain a `build` and `serve` target that matches the following:\n\n```json\n\"build\": {\n \"executor\": \"@nx/angular:webpack-browser\",\n \"options\": {\n ...\n \"customWebpackConfig\": {\n \"path\": \"apps/appName/webpack.config.js\"\n }\n }\n},\n\"serve\": {\n \"executor\": \"@nx/angular:webpack-dev-server\",\n \"configurations\": {\n \"production\": {\n \"browserTarget\": \"appName:build:production\"\n },\n \"development\": {\n \"browserTarget\": \"appName:build:development\"\n }\n },\n \"defaultConfiguration\": \"development\",\n}\n```\n",
"type": "object", "type": "object",
"presets": [ "presets": [

View File

@ -6,7 +6,7 @@
"outputCapture": "direct-nodejs", "outputCapture": "direct-nodejs",
"$schema": "http://json-schema.org/draft-07/schema", "$schema": "http://json-schema.org/draft-07/schema",
"title": "Schema for Webpack Server", "title": "Schema for Webpack Server",
"description": "The webpack-dev-server executor is very similar to the standard server builder provided by the Angular Devkit. It is usually used in tandem with `@nrwl/angular:webpack-browser` when your Angular application uses a custom webpack configuration and NgUniversal for SSR.", "description": "The webpack-dev-server executor is very similar to the standard server builder provided by the Angular Devkit. It is usually used in tandem with `@nx/angular:webpack-browser` when your Angular application uses a custom webpack configuration and NgUniversal for SSR.",
"type": "object", "type": "object",
"properties": { "properties": {
"assets": { "assets": {

View File

@ -10,7 +10,7 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/angular:add-linting --prefix=cool --projectName=cool-lib --projectRoot=libs/cool-lib", "command": "nx g @nx/angular:add-linting --prefix=cool --projectName=cool-lib --projectRoot=libs/cool-lib",
"description": "Adds ESLint with Angular-specific rules for an existing project named `cool-lib` with the [prefix](https://angular.io/guide/styleguide#style-02-07) `cool`" "description": "Adds ESLint with Angular-specific rules for an existing project named `cool-lib` with the [prefix](https://angular.io/guide/styleguide#style-02-07) `cool`"
} }
], ],

View File

@ -11,7 +11,7 @@
"additionalProperties": false, "additionalProperties": false,
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/angular:convert-to-with-mf --project mf-app", "command": "nx g @nx/angular:convert-to-with-mf --project mf-app",
"description": "Convert a Module Federation Project using legacy webpack config to use the `withModuleFederation` helper." "description": "Convert a Module Federation Project using legacy webpack config to use the `withModuleFederation` helper."
} }
], ],

View File

@ -10,7 +10,7 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/angular:host appName --remotes=remote1", "command": "nx g @nx/angular:host appName --remotes=remote1",
"description": "Create an Angular application with configuration in place for Module Federation. If the `remotes` option is provided, attach the remote application to this application's configuration" "description": "Create an Angular application with configuration in place for Module Federation. If the `remotes` option is provided, attach the remote application to this application's configuration"
} }
], ],

View File

@ -6,12 +6,12 @@
"$id": "SchematicsAngularModuleInit", "$id": "SchematicsAngularModuleInit",
"cli": "nx", "cli": "nx",
"title": "Init Angular Plugin", "title": "Init Angular Plugin",
"description": "Initializes the `@nrwl/angular` plugin. NOTE: Does not work in the `--dry-run` mode.", "description": "Initializes the `@nx/angular` plugin. NOTE: Does not work in the `--dry-run` mode.",
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/angular:init --style=scss", "command": "nx g @nx/angular:init --style=scss",
"description": "Installs angular dependencies and initializes the `@nrwl/angular` plugin with the `scss` stylesheet format." "description": "Installs angular dependencies and initializes the `@nx/angular` plugin with the `scss` stylesheet format."
} }
], ],
"properties": { "properties": {
@ -31,7 +31,7 @@
}, },
"skipInstall": { "skipInstall": {
"type": "boolean", "type": "boolean",
"description": "Skip installing after adding `@nrwl/workspace`.", "description": "Skip installing after adding `@nx/workspace`.",
"default": false, "default": false,
"x-priority": "internal" "x-priority": "internal"
}, },

View File

@ -10,7 +10,7 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/angular:move --project my-feature-lib --destination shared/my-feature-lib", "command": "nx g @nx/angular:move --project my-feature-lib --destination shared/my-feature-lib",
"description": "Move libs/my-feature-lib to libs/shared/my-feature-lib." "description": "Move libs/my-feature-lib to libs/shared/my-feature-lib."
} }
], ],

View File

@ -10,19 +10,19 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/angular:ngrx --root --parent=apps/my-app/src/app/app.module.ts --facade=false placeholder", "command": "nx g @nx/angular:ngrx --root --parent=apps/my-app/src/app/app.module.ts --facade=false placeholder",
"description": "Add root ngrx configration to the `my-app` application" "description": "Add root ngrx configration to the `my-app` application"
}, },
{ {
"command": "nx g @nrwl/angular:ngrx --parent=libs/my-lib/src/lib/my-lib.module.ts --facade=true --root=false users", "command": "nx g @nx/angular:ngrx --parent=libs/my-lib/src/lib/my-lib.module.ts --facade=true --root=false users",
"description": "Add a `users` state with a facade to the `my-lib` library. It will be tracked under the default `+state` folder in the lib" "description": "Add a `users` state with a facade to the `my-lib` library. It will be tracked under the default `+state` folder in the lib"
}, },
{ {
"command": "nx g @nrwl/angular:ngrx --parent=apps/my-app/src/app/app.config.ts --root", "command": "nx g @nx/angular:ngrx --parent=apps/my-app/src/app/app.config.ts --root",
"description": "Add a root state configuration to `my-app` when `my-app` uses Standalone APIs" "description": "Add a root state configuration to `my-app` when `my-app` uses Standalone APIs"
}, },
{ {
"command": "nx g @nrwl/angular:ngrx --parent=libs/my-lib/src/lib.routes.ts users", "command": "nx g @nx/angular:ngrx --parent=libs/my-lib/src/lib.routes.ts users",
"description": "Add a `users` feature state to the Route definition of a library using Standalone APIs" "description": "Add a `users` feature state to the Route definition of a library using Standalone APIs"
} }
], ],

View File

@ -10,7 +10,7 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/angular:remote appName --host=host --port=4201", "command": "nx g @nx/angular:remote appName --host=host --port=4201",
"description": "Create an Angular app with configuration in place for Module Federation. If host is provided, attach this remote app to host app's configuration." "description": "Create an Angular app with configuration in place for Module Federation. If host is provided, attach this remote app to host app's configuration."
} }
], ],

View File

@ -9,7 +9,7 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/angular:scam-directive --project=my-lib --flat=false my-sample", "command": "nx g @nx/angular:scam-directive --project=my-lib --flat=false my-sample",
"description": "Generate a `MySampleDirective` directive in a `my-sample` folder in the `my-lib` library" "description": "Generate a `MySampleDirective` directive in a `my-sample` folder in the `my-lib` library"
} }
], ],

View File

@ -9,7 +9,7 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/angular:scam-pipe --project=my-lib --flat=false my-transformation", "command": "nx g @nx/angular:scam-pipe --project=my-lib --flat=false my-transformation",
"description": "Generates a `MyTransformationPipe` in a `my-transformation` folder in the `my-lib` project" "description": "Generates a `MyTransformationPipe` in a `my-transformation` folder in the `my-lib` project"
} }
], ],

View File

@ -9,7 +9,7 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/angular:scam --project=my-lib my-sample", "command": "nx g @nx/angular:scam --project=my-lib my-sample",
"description": "Generate a `MySampleComponent` component in the `my-lib` library." "description": "Generate a `MySampleComponent` component in the `my-lib` library."
} }
], ],

View File

@ -10,7 +10,7 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/cypress:cypress-component-configuration --project=my-cool-lib ", "command": "nx g @nx/cypress:cypress-component-configuration --project=my-cool-lib ",
"description": "Add cypress component testing to an existing project named my-cool-lib" "description": "Add cypress component testing to an existing project named my-cool-lib"
} }
], ],

View File

@ -10,7 +10,7 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/cypress:migrate-to-cypress-11", "command": "nx g @nx/cypress:migrate-to-cypress-11",
"description": "Migrate existing cypress projects to Cypress v11" "description": "Migrate existing cypress projects to Cypress v11"
} }
], ],

View File

@ -8,11 +8,11 @@
"description": "Create an Expo Application for Nx.", "description": "Create an Expo Application for Nx.",
"examples": [ "examples": [
{ {
"command": "g @nrwl/expo:app myapp --directory=nested", "command": "g @nx/expo:app myapp --directory=nested",
"description": "Generate apps/nested/myapp" "description": "Generate apps/nested/myapp"
}, },
{ {
"command": "g @nrwl/expo:app myapp --classComponent", "command": "g @nx/expo:app myapp --classComponent",
"description": "Use class components instead of functional components" "description": "Use class components instead of functional components"
} }
], ],

View File

@ -9,11 +9,11 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "g @nrwl/expo:component my-component --project=mylib", "command": "g @nx/expo:component my-component --project=mylib",
"description": "Generate a component in the mylib library" "description": "Generate a component in the mylib library"
}, },
{ {
"command": "g @nrwl/expo:component my-component --project=mylib --classComponent", "command": "g @nx/expo:component my-component --project=mylib --classComponent",
"description": "Generate a class component in the mylib library" "description": "Generate a class component in the mylib library"
} }
], ],

View File

@ -9,7 +9,7 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "g @nrwl/expo:lib mylib --directory=myapp", "command": "g @nx/expo:lib mylib --directory=myapp",
"description": "Generate libs/myapp/mylib" "description": "Generate libs/myapp/mylib"
} }
], ],

View File

@ -5,8 +5,8 @@
"$schema": "http://json-schema.org/schema", "$schema": "http://json-schema.org/schema",
"$id": "NxTypescriptInit", "$id": "NxTypescriptInit",
"cli": "nx", "cli": "nx",
"title": "Init nrwl/js", "title": "Init nx/js",
"description": "Init generator placeholder for nrwl/js.", "description": "Init generator placeholder for nx/js.",
"properties": { "properties": {
"js": { "js": {
"type": "boolean", "type": "boolean",

View File

@ -10,7 +10,7 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/linter:workspace-rules-project", "command": "nx g @nx/linter:workspace-rules-project",
"description": "Create the Workspace Lint Rules Project" "description": "Create the Workspace Lint Rules Project"
} }
], ],

View File

@ -10,11 +10,11 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/next:cypress-component-configuration --project=my-next-project", "command": "nx g @nx/next:cypress-component-configuration --project=my-next-project",
"description": "Add component testing to your Next project" "description": "Add component testing to your Next project"
}, },
{ {
"command": "nx g @nrwl/next:cypress-component-configuration --project=my-next-project --generate-tests", "command": "nx g @nx/next:cypress-component-configuration --project=my-next-project --generate-tests",
"description": "Add component testing to your Next project and generate component tests for your existing components" "description": "Add component testing to your Next project and generate component tests for your existing components"
} }
], ],

View File

@ -6,7 +6,7 @@
"cli": "nx", "cli": "nx",
"$id": "NxPluginPreset", "$id": "NxPluginPreset",
"title": "Generator ran by create-nx-plugin", "title": "Generator ran by create-nx-plugin",
"description": "Initializes a workspace with an nx-plugin inside of it. Use as: `create-nx-plugin` or `create-nx-workspace --preset @nrwl/nx-plugin`.", "description": "Initializes a workspace with an nx-plugin inside of it. Use as: `create-nx-plugin` or `create-nx-workspace --preset @nx/nx-plugin`.",
"type": "object", "type": "object",
"properties": { "properties": {
"pluginName": { "pluginName": {

View File

@ -9,11 +9,11 @@
"description": "Create a React Application for Nx.", "description": "Create a React Application for Nx.",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/react-native:app myapp --directory=nested", "command": "nx g @nx/react-native:app myapp --directory=nested",
"description": "Generate `apps/nested/myapp`" "description": "Generate `apps/nested/myapp`"
}, },
{ {
"command": "nx g @nrwl/react-native:app myapp --classComponent", "command": "nx g @nx/react-native:app myapp --classComponent",
"description": "Use class components instead of functional components" "description": "Use class components instead of functional components"
} }
], ],

View File

@ -10,11 +10,11 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/react-native:component my-component --project=mylib", "command": "nx g @nx/react-native:component my-component --project=mylib",
"description": "Generate a component in the `mylib` library" "description": "Generate a component in the `mylib` library"
}, },
{ {
"command": "nx g @nrwl/react-native:component my-component --project=mylib --classComponent", "command": "nx g @nx/react-native:component my-component --project=mylib --classComponent",
"description": "Generate a class component in the `mylib` library" "description": "Generate a class component in the `mylib` library"
} }
], ],

View File

@ -10,7 +10,7 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/react-native:lib mylib --directory=myapp", "command": "nx g @nx/react-native:lib mylib --directory=myapp",
"description": "Generate `libs/myapp/mylib`" "description": "Generate `libs/myapp/mylib`"
} }
], ],

View File

@ -10,7 +10,7 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/react:component-test --project=my-react-project --component-path=src/lib/fancy-component.tsx", "command": "nx g @nx/react:component-test --project=my-react-project --component-path=src/lib/fancy-component.tsx",
"description": "Create a cypress component test for FancyComponent" "description": "Create a cypress component test for FancyComponent"
} }
], ],

View File

@ -10,11 +10,11 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/react:cypress-component-configuration --project=my-react-project", "command": "nx g @nx/react:cypress-component-configuration --project=my-react-project",
"description": "Add component testing to your react project" "description": "Add component testing to your react project"
}, },
{ {
"command": "nx g @nrwl/react:cypress-component-configuration --project=my-react-project --generate-tests", "command": "nx g @nx/react:cypress-component-configuration --project=my-react-project --generate-tests",
"description": "Add component testing to your react project and generate component tests for your existing components" "description": "Add component testing to your react project and generate component tests for your existing components"
} }
], ],

View File

@ -40,15 +40,15 @@
}, },
"buildTarget": { "buildTarget": {
"type": "string", "type": "string",
"description": "The build target of the project to be transformed to use the @nrwl/vite:build executor." "description": "The build target of the project to be transformed to use the @nx/vite:build executor."
}, },
"serveTarget": { "serveTarget": {
"type": "string", "type": "string",
"description": "The serve target of the project to be transformed to use the @nrwl/vite:dev-server and @nrwl/vite:preview-server executors." "description": "The serve target of the project to be transformed to use the @nx/vite:dev-server and @nrwl/vite:preview-server executors."
}, },
"testTarget": { "testTarget": {
"type": "string", "type": "string",
"description": "The test target of the project to be transformed to use the @nrwl/vite:test executor." "description": "The test target of the project to be transformed to use the @nx/vite:test executor."
}, },
"skipFormat": { "skipFormat": {
"description": "Skip formatting files.", "description": "Skip formatting files.",

View File

@ -38,7 +38,7 @@
}, },
"testTarget": { "testTarget": {
"type": "string", "type": "string",
"description": "The test target of the project to be transformed to use the @nrwl/vite:test executor.", "description": "The test target of the project to be transformed to use the @nx/vite:test executor.",
"hidden": true "hidden": true
}, },
"skipFormat": { "skipFormat": {

View File

@ -4,17 +4,17 @@
"schema": { "schema": {
"$schema": "http://json-schema.org/schema", "$schema": "http://json-schema.org/schema",
"$id": "SchematicsConvertToNxProject", "$id": "SchematicsConvertToNxProject",
"title": "@nrwl/workspace:fix-configuration", "title": "@nx/workspace:fix-configuration",
"description": "Migrates v1 config to v2 standalone configuration.", "description": "Migrates v1 config to v2 standalone configuration.",
"type": "object", "type": "object",
"cli": "nx", "cli": "nx",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/workspace:convert-to-nx-project --project my-feature-lib", "command": "nx g @nx/workspace:convert-to-nx-project --project my-feature-lib",
"description": "Convert the `my-feature-lib` project to use `project.json` file instead of `workspace.json`" "description": "Convert the `my-feature-lib` project to use `project.json` file instead of `workspace.json`"
}, },
{ {
"command": "nx g @nrwl/workspace:convert-to-nx-project --all", "command": "nx g @nx/workspace:convert-to-nx-project --all",
"description": "Convert all projects in `workspace.json` to separate `project.json` files" "description": "Convert all projects in `workspace.json` to separate `project.json` files"
} }
], ],

View File

@ -10,7 +10,7 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/workspace:move --project my-feature-lib --destination shared/my-feature-lib", "command": "nx g @nx/workspace:move --project my-feature-lib --destination shared/my-feature-lib",
"description": "Move `libs/my-feature-lib` to `libs/shared/my-feature-lib`" "description": "Move `libs/my-feature-lib` to `libs/shared/my-feature-lib`"
} }
], ],

View File

@ -10,11 +10,11 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/workspace:remove my-feature-lib", "command": "nx g @nx/workspace:remove my-feature-lib",
"description": "Remove `my-feature-lib` from the workspace" "description": "Remove `my-feature-lib` from the workspace"
}, },
{ {
"command": "nx g @nrwl/workspace:remove my-feature-lib --forceRemove", "command": "nx g @nx/workspace:remove my-feature-lib --forceRemove",
"description": "Force removal of `my-feature-lib` from the workspace" "description": "Force removal of `my-feature-lib` from the workspace"
} }
], ],

View File

@ -10,7 +10,7 @@
"cli": "nx", "cli": "nx",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/workspace:run-commands printhello --project my-feature-lib --command 'echo hello'", "command": "nx g @nx/workspace:run-commands printhello --project my-feature-lib --command 'echo hello'",
"description": "Add the `printhello` target to `my-feature-lib`" "description": "Add the `printhello` target to `my-feature-lib`"
} }
], ],

View File

@ -33,21 +33,27 @@ All other packages keep the same name, but change scope from `@nrwl` to `@nx`.
| Nx 15 and lower | Nx 16 and higher | | Nx 15 and lower | Nx 16 and higher |
| ------------------ | ---------------- | | ------------------ | ---------------- |
| @nrwl/angular | @nx/angular | | @nrwl/angular | @nx/angular |
| @nrwl/aws-lambda | @nx/aws-lambda |
| @nrwl/cypress | @nx/cypress | | @nrwl/cypress | @nx/cypress |
| @nrwl/deno | @nx/deno |
| @nrwl/detox | @nx/detox | | @nrwl/detox | @nx/detox |
| @nrwl/devkit | @nx/devkit | | @nrwl/devkit | @nx/devkit |
| @nrwl/esbuild | @nx/esbuild | | @nrwl/esbuild | @nx/esbuild |
| @nrwl/expo | @nx/expo | | @nrwl/expo | @nx/expo |
| @nrwl/express | @nx/express | | @nrwl/express | @nx/express |
| @nrwl/gatsby | @nx/gatsby |
| @nrwl/jest | @nx/jest | | @nrwl/jest | @nx/jest |
| @nrwl/js | @nx/js | | @nrwl/js | @nx/js |
| @nrwl/linter | @nx/linter | | @nrwl/linter | @nx/linter |
| @nrwl/nest | @nx/nest | | @nrwl/nest | @nx/nest |
| @nrwl/netlify | @nx/netlify |
| @nrwl/next | @nx/next | | @nrwl/next | @nx/next |
| @nrwl/node | @nx/node | | @nrwl/node | @nx/node |
| @nrwl/react | @nx/react | | @nrwl/react | @nx/react |
| @nrwl/react-native | @nx/react-native | | @nrwl/react-native | @nx/react-native |
| @nrwl/remix | @nx/remix |
| @nrwl/rollup | @nx/rollup | | @nrwl/rollup | @nx/rollup |
| @nrwl/rspack | @nx/rspack |
| @nrwl/storybook | @nx/storybook | | @nrwl/storybook | @nx/storybook |
| @nrwl/vite | @nx/vite | | @nrwl/vite | @nx/vite |
| @nrwl/web | @nx/web | | @nrwl/web | @nx/web |

View File

@ -3,7 +3,7 @@
"outputCapture": "direct-nodejs", "outputCapture": "direct-nodejs",
"$schema": "http://json-schema.org/draft-07/schema", "$schema": "http://json-schema.org/draft-07/schema",
"title": "Schema for Webpack Dev Server", "title": "Schema for Webpack Dev Server",
"description": "The webpack-dev-server executor is very similar to the standard dev server builder provided by the Angular Devkit. It is usually used in tandem with `@nrwl/angular:webpack-browser` when your Angular application uses a custom webpack configuration.", "description": "The webpack-dev-server executor is very similar to the standard dev server builder provided by the Angular Devkit. It is usually used in tandem with `@nx/angular:webpack-browser` when your Angular application uses a custom webpack configuration.",
"examplesFile": "../../../docs/webpack-dev-server-examples.md", "examplesFile": "../../../docs/webpack-dev-server-examples.md",
"type": "object", "type": "object",
"presets": [ "presets": [

View File

@ -3,7 +3,7 @@
"outputCapture": "direct-nodejs", "outputCapture": "direct-nodejs",
"$schema": "http://json-schema.org/draft-07/schema", "$schema": "http://json-schema.org/draft-07/schema",
"title": "Schema for Webpack Server", "title": "Schema for Webpack Server",
"description": "The webpack-dev-server executor is very similar to the standard server builder provided by the Angular Devkit. It is usually used in tandem with `@nrwl/angular:webpack-browser` when your Angular application uses a custom webpack configuration and NgUniversal for SSR.", "description": "The webpack-dev-server executor is very similar to the standard server builder provided by the Angular Devkit. It is usually used in tandem with `@nx/angular:webpack-browser` when your Angular application uses a custom webpack configuration and NgUniversal for SSR.",
"type": "object", "type": "object",
"properties": { "properties": {
"assets": { "assets": {

View File

@ -7,7 +7,7 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/angular:add-linting --prefix=cool --projectName=cool-lib --projectRoot=libs/cool-lib", "command": "nx g @nx/angular:add-linting --prefix=cool --projectName=cool-lib --projectRoot=libs/cool-lib",
"description": "Adds ESLint with Angular-specific rules for an existing project named `cool-lib` with the [prefix](https://angular.io/guide/styleguide#style-02-07) `cool`" "description": "Adds ESLint with Angular-specific rules for an existing project named `cool-lib` with the [prefix](https://angular.io/guide/styleguide#style-02-07) `cool`"
} }
], ],

View File

@ -8,7 +8,7 @@
"additionalProperties": false, "additionalProperties": false,
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/angular:convert-to-with-mf --project mf-app", "command": "nx g @nx/angular:convert-to-with-mf --project mf-app",
"description": "Convert a Module Federation Project using legacy webpack config to use the `withModuleFederation` helper." "description": "Convert a Module Federation Project using legacy webpack config to use the `withModuleFederation` helper."
} }
], ],

View File

@ -7,7 +7,7 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/angular:host appName --remotes=remote1", "command": "nx g @nx/angular:host appName --remotes=remote1",
"description": "Create an Angular application with configuration in place for Module Federation. If the `remotes` option is provided, attach the remote application to this application's configuration" "description": "Create an Angular application with configuration in place for Module Federation. If the `remotes` option is provided, attach the remote application to this application's configuration"
} }
], ],

View File

@ -3,12 +3,12 @@
"$id": "SchematicsAngularModuleInit", "$id": "SchematicsAngularModuleInit",
"cli": "nx", "cli": "nx",
"title": "Init Angular Plugin", "title": "Init Angular Plugin",
"description": "Initializes the `@nrwl/angular` plugin. NOTE: Does not work in the `--dry-run` mode.", "description": "Initializes the `@nx/angular` plugin. NOTE: Does not work in the `--dry-run` mode.",
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/angular:init --style=scss", "command": "nx g @nx/angular:init --style=scss",
"description": "Installs angular dependencies and initializes the `@nrwl/angular` plugin with the `scss` stylesheet format." "description": "Installs angular dependencies and initializes the `@nx/angular` plugin with the `scss` stylesheet format."
} }
], ],
"properties": { "properties": {
@ -28,7 +28,7 @@
}, },
"skipInstall": { "skipInstall": {
"type": "boolean", "type": "boolean",
"description": "Skip installing after adding `@nrwl/workspace`.", "description": "Skip installing after adding `@nx/workspace`.",
"default": false, "default": false,
"x-priority": "internal" "x-priority": "internal"
}, },

View File

@ -7,7 +7,7 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/angular:move --project my-feature-lib --destination shared/my-feature-lib", "command": "nx g @nx/angular:move --project my-feature-lib --destination shared/my-feature-lib",
"description": "Move libs/my-feature-lib to libs/shared/my-feature-lib." "description": "Move libs/my-feature-lib to libs/shared/my-feature-lib."
} }
], ],

View File

@ -7,19 +7,19 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/angular:ngrx --root --parent=apps/my-app/src/app/app.module.ts --facade=false placeholder", "command": "nx g @nx/angular:ngrx --root --parent=apps/my-app/src/app/app.module.ts --facade=false placeholder",
"description": "Add root ngrx configration to the `my-app` application" "description": "Add root ngrx configration to the `my-app` application"
}, },
{ {
"command": "nx g @nrwl/angular:ngrx --parent=libs/my-lib/src/lib/my-lib.module.ts --facade=true --root=false users", "command": "nx g @nx/angular:ngrx --parent=libs/my-lib/src/lib/my-lib.module.ts --facade=true --root=false users",
"description": "Add a `users` state with a facade to the `my-lib` library. It will be tracked under the default `+state` folder in the lib" "description": "Add a `users` state with a facade to the `my-lib` library. It will be tracked under the default `+state` folder in the lib"
}, },
{ {
"command": "nx g @nrwl/angular:ngrx --parent=apps/my-app/src/app/app.config.ts --root", "command": "nx g @nx/angular:ngrx --parent=apps/my-app/src/app/app.config.ts --root",
"description": "Add a root state configuration to `my-app` when `my-app` uses Standalone APIs" "description": "Add a root state configuration to `my-app` when `my-app` uses Standalone APIs"
}, },
{ {
"command": "nx g @nrwl/angular:ngrx --parent=libs/my-lib/src/lib.routes.ts users", "command": "nx g @nx/angular:ngrx --parent=libs/my-lib/src/lib.routes.ts users",
"description": "Add a `users` feature state to the Route definition of a library using Standalone APIs" "description": "Add a `users` feature state to the Route definition of a library using Standalone APIs"
} }
], ],

View File

@ -7,7 +7,7 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/angular:remote appName --host=host --port=4201", "command": "nx g @nx/angular:remote appName --host=host --port=4201",
"description": "Create an Angular app with configuration in place for Module Federation. If host is provided, attach this remote app to host app's configuration." "description": "Create an Angular app with configuration in place for Module Federation. If host is provided, attach this remote app to host app's configuration."
} }
], ],

View File

@ -6,7 +6,7 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/angular:scam-directive --project=my-lib --flat=false my-sample", "command": "nx g @nx/angular:scam-directive --project=my-lib --flat=false my-sample",
"description": "Generate a `MySampleDirective` directive in a `my-sample` folder in the `my-lib` library" "description": "Generate a `MySampleDirective` directive in a `my-sample` folder in the `my-lib` library"
} }
], ],

View File

@ -6,7 +6,7 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/angular:scam-pipe --project=my-lib --flat=false my-transformation", "command": "nx g @nx/angular:scam-pipe --project=my-lib --flat=false my-transformation",
"description": "Generates a `MyTransformationPipe` in a `my-transformation` folder in the `my-lib` project" "description": "Generates a `MyTransformationPipe` in a `my-transformation` folder in the `my-lib` project"
} }
], ],

View File

@ -6,7 +6,7 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/angular:scam --project=my-lib my-sample", "command": "nx g @nx/angular:scam --project=my-lib my-sample",
"description": "Generate a `MySampleComponent` component in the `my-lib` library." "description": "Generate a `MySampleComponent` component in the `my-lib` library."
} }
], ],

View File

@ -7,7 +7,7 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/cypress:cypress-component-configuration --project=my-cool-lib ", "command": "nx g @nx/cypress:cypress-component-configuration --project=my-cool-lib ",
"description": "Add cypress component testing to an existing project named my-cool-lib" "description": "Add cypress component testing to an existing project named my-cool-lib"
} }
], ],

View File

@ -7,7 +7,7 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/cypress:migrate-to-cypress-11", "command": "nx g @nx/cypress:migrate-to-cypress-11",
"description": "Migrate existing cypress projects to Cypress v11" "description": "Migrate existing cypress projects to Cypress v11"
} }
], ],

View File

@ -5,11 +5,11 @@
"description": "Create an Expo Application for Nx.", "description": "Create an Expo Application for Nx.",
"examples": [ "examples": [
{ {
"command": "g @nrwl/expo:app myapp --directory=nested", "command": "g @nx/expo:app myapp --directory=nested",
"description": "Generate apps/nested/myapp" "description": "Generate apps/nested/myapp"
}, },
{ {
"command": "g @nrwl/expo:app myapp --classComponent", "command": "g @nx/expo:app myapp --classComponent",
"description": "Use class components instead of functional components" "description": "Use class components instead of functional components"
} }
], ],

View File

@ -6,11 +6,11 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "g @nrwl/expo:component my-component --project=mylib", "command": "g @nx/expo:component my-component --project=mylib",
"description": "Generate a component in the mylib library" "description": "Generate a component in the mylib library"
}, },
{ {
"command": "g @nrwl/expo:component my-component --project=mylib --classComponent", "command": "g @nx/expo:component my-component --project=mylib --classComponent",
"description": "Generate a class component in the mylib library" "description": "Generate a class component in the mylib library"
} }
], ],

View File

@ -6,7 +6,7 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "g @nrwl/expo:lib mylib --directory=myapp", "command": "g @nx/expo:lib mylib --directory=myapp",
"description": "Generate libs/myapp/mylib" "description": "Generate libs/myapp/mylib"
} }
], ],

View File

@ -2,8 +2,8 @@
"$schema": "http://json-schema.org/schema", "$schema": "http://json-schema.org/schema",
"$id": "NxTypescriptInit", "$id": "NxTypescriptInit",
"cli": "nx", "cli": "nx",
"title": "Init nrwl/js", "title": "Init nx/js",
"description": "Init generator placeholder for nrwl/js.", "description": "Init generator placeholder for nx/js.",
"properties": { "properties": {
"js": { "js": {
"type": "boolean", "type": "boolean",

View File

@ -7,7 +7,7 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/linter:workspace-rules-project", "command": "nx g @nx/linter:workspace-rules-project",
"description": "Create the Workspace Lint Rules Project" "description": "Create the Workspace Lint Rules Project"
} }
], ],

View File

@ -7,11 +7,11 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/next:cypress-component-configuration --project=my-next-project", "command": "nx g @nx/next:cypress-component-configuration --project=my-next-project",
"description": "Add component testing to your Next project" "description": "Add component testing to your Next project"
}, },
{ {
"command": "nx g @nrwl/next:cypress-component-configuration --project=my-next-project --generate-tests", "command": "nx g @nx/next:cypress-component-configuration --project=my-next-project --generate-tests",
"description": "Add component testing to your Next project and generate component tests for your existing components" "description": "Add component testing to your Next project and generate component tests for your existing components"
} }
], ],

View File

@ -3,7 +3,7 @@
"cli": "nx", "cli": "nx",
"$id": "NxPluginPreset", "$id": "NxPluginPreset",
"title": "Generator ran by create-nx-plugin", "title": "Generator ran by create-nx-plugin",
"description": "Initializes a workspace with an nx-plugin inside of it. Use as: `create-nx-plugin` or `create-nx-workspace --preset @nrwl/nx-plugin`.", "description": "Initializes a workspace with an nx-plugin inside of it. Use as: `create-nx-plugin` or `create-nx-workspace --preset @nx/nx-plugin`.",
"type": "object", "type": "object",
"properties": { "properties": {
"pluginName": { "pluginName": {

View File

@ -6,11 +6,11 @@
"description": "Create a React Application for Nx.", "description": "Create a React Application for Nx.",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/react-native:app myapp --directory=nested", "command": "nx g @nx/react-native:app myapp --directory=nested",
"description": "Generate `apps/nested/myapp`" "description": "Generate `apps/nested/myapp`"
}, },
{ {
"command": "nx g @nrwl/react-native:app myapp --classComponent", "command": "nx g @nx/react-native:app myapp --classComponent",
"description": "Use class components instead of functional components" "description": "Use class components instead of functional components"
} }
], ],

View File

@ -7,11 +7,11 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/react-native:component my-component --project=mylib", "command": "nx g @nx/react-native:component my-component --project=mylib",
"description": "Generate a component in the `mylib` library" "description": "Generate a component in the `mylib` library"
}, },
{ {
"command": "nx g @nrwl/react-native:component my-component --project=mylib --classComponent", "command": "nx g @nx/react-native:component my-component --project=mylib --classComponent",
"description": "Generate a class component in the `mylib` library" "description": "Generate a class component in the `mylib` library"
} }
], ],

View File

@ -7,7 +7,7 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/react-native:lib mylib --directory=myapp", "command": "nx g @nx/react-native:lib mylib --directory=myapp",
"description": "Generate `libs/myapp/mylib`" "description": "Generate `libs/myapp/mylib`"
} }
], ],

View File

@ -145,7 +145,7 @@ export async function applicationGenerator(
tasks.push(webpackInitTask); tasks.push(webpackInitTask);
} else if (options.bundler === 'rspack') { } else if (options.bundler === 'rspack') {
const { configurationGenerator } = ensurePackage( const { configurationGenerator } = ensurePackage(
'@nrwl/rspack', '@nx/rspack',
nxRspackVersion nxRspackVersion
); );
const rspackTask = await configurationGenerator(host, { const rspackTask = await configurationGenerator(host, {
@ -231,7 +231,7 @@ export async function applicationGenerator(
host.write( host.write(
joinPathFragments(options.appProjectRoot, 'rspack.config.js'), joinPathFragments(options.appProjectRoot, 'rspack.config.js'),
stripIndents` stripIndents`
const { composePlugins, withNx, withWeb } = require('@nrwl/rspack'); const { composePlugins, withNx, withWeb } = require('@nx/rspack');
module.exports = composePlugins(withNx(), withWeb(), (config) => { module.exports = composePlugins(withNx(), withWeb(), (config) => {
config.module.rules.push({ config.module.rules.push({
test: /\\.[jt]sx$/i, test: /\\.[jt]sx$/i,

View File

@ -7,7 +7,7 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/react:component-test --project=my-react-project --component-path=src/lib/fancy-component.tsx", "command": "nx g @nx/react:component-test --project=my-react-project --component-path=src/lib/fancy-component.tsx",
"description": "Create a cypress component test for FancyComponent" "description": "Create a cypress component test for FancyComponent"
} }
], ],

View File

@ -7,11 +7,11 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/react:cypress-component-configuration --project=my-react-project", "command": "nx g @nx/react:cypress-component-configuration --project=my-react-project",
"description": "Add component testing to your react project" "description": "Add component testing to your react project"
}, },
{ {
"command": "nx g @nrwl/react:cypress-component-configuration --project=my-react-project --generate-tests", "command": "nx g @nx/react:cypress-component-configuration --project=my-react-project --generate-tests",
"description": "Add component testing to your react project and generate component tests for your existing components" "description": "Add component testing to your react project and generate component tests for your existing components"
} }
], ],

View File

@ -40,15 +40,15 @@
}, },
"buildTarget": { "buildTarget": {
"type": "string", "type": "string",
"description": "The build target of the project to be transformed to use the @nrwl/vite:build executor." "description": "The build target of the project to be transformed to use the @nx/vite:build executor."
}, },
"serveTarget": { "serveTarget": {
"type": "string", "type": "string",
"description": "The serve target of the project to be transformed to use the @nrwl/vite:dev-server and @nrwl/vite:preview-server executors." "description": "The serve target of the project to be transformed to use the @nx/vite:dev-server and @nrwl/vite:preview-server executors."
}, },
"testTarget": { "testTarget": {
"type": "string", "type": "string",
"description": "The test target of the project to be transformed to use the @nrwl/vite:test executor." "description": "The test target of the project to be transformed to use the @nx/vite:test executor."
}, },
"skipFormat": { "skipFormat": {
"description": "Skip formatting files.", "description": "Skip formatting files.",

View File

@ -35,7 +35,7 @@
}, },
"testTarget": { "testTarget": {
"type": "string", "type": "string",
"description": "The test target of the project to be transformed to use the @nrwl/vite:test executor.", "description": "The test target of the project to be transformed to use the @nx/vite:test executor.",
"hidden": true "hidden": true
}, },
"skipFormat": { "skipFormat": {

View File

@ -1,17 +1,17 @@
{ {
"$schema": "http://json-schema.org/schema", "$schema": "http://json-schema.org/schema",
"$id": "SchematicsConvertToNxProject", "$id": "SchematicsConvertToNxProject",
"title": "@nrwl/workspace:fix-configuration", "title": "@nx/workspace:fix-configuration",
"description": "Migrates v1 config to v2 standalone configuration.", "description": "Migrates v1 config to v2 standalone configuration.",
"type": "object", "type": "object",
"cli": "nx", "cli": "nx",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/workspace:convert-to-nx-project --project my-feature-lib", "command": "nx g @nx/workspace:convert-to-nx-project --project my-feature-lib",
"description": "Convert the `my-feature-lib` project to use `project.json` file instead of `workspace.json`" "description": "Convert the `my-feature-lib` project to use `project.json` file instead of `workspace.json`"
}, },
{ {
"command": "nx g @nrwl/workspace:convert-to-nx-project --all", "command": "nx g @nx/workspace:convert-to-nx-project --all",
"description": "Convert all projects in `workspace.json` to separate `project.json` files" "description": "Convert all projects in `workspace.json` to separate `project.json` files"
} }
], ],

View File

@ -7,7 +7,7 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/workspace:move --project my-feature-lib --destination shared/my-feature-lib", "command": "nx g @nx/workspace:move --project my-feature-lib --destination shared/my-feature-lib",
"description": "Move `libs/my-feature-lib` to `libs/shared/my-feature-lib`" "description": "Move `libs/my-feature-lib` to `libs/shared/my-feature-lib`"
} }
], ],

View File

@ -7,11 +7,11 @@
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/workspace:remove my-feature-lib", "command": "nx g @nx/workspace:remove my-feature-lib",
"description": "Remove `my-feature-lib` from the workspace" "description": "Remove `my-feature-lib` from the workspace"
}, },
{ {
"command": "nx g @nrwl/workspace:remove my-feature-lib --forceRemove", "command": "nx g @nx/workspace:remove my-feature-lib --forceRemove",
"description": "Force removal of `my-feature-lib` from the workspace" "description": "Force removal of `my-feature-lib` from the workspace"
} }
], ],

View File

@ -7,7 +7,7 @@
"cli": "nx", "cli": "nx",
"examples": [ "examples": [
{ {
"command": "nx g @nrwl/workspace:run-commands printhello --project my-feature-lib --command 'echo hello'", "command": "nx g @nx/workspace:run-commands printhello --project my-feature-lib --command 'echo hello'",
"description": "Add the `printhello` target to `my-feature-lib`" "description": "Add the `printhello` target to `my-feature-lib`"
} }
], ],