docs(react): update react lib generator (#30527)

the examples are outdated, the new ones make more sense
This commit is contained in:
MaxKless 2025-04-16 17:01:24 +02:00 committed by GitHub
parent 8844e245fb
commit 5dcec84e63
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 8 deletions

View File

@ -10,12 +10,12 @@
"type": "object",
"examples": [
{
"command": "nx g lib mylib --directory=myapp",
"description": "Generate `libs/myapp/mylib`"
"command": "nx g @nx/react:lib libs/mylib",
"description": "Generate a library under `libs/mylib`"
},
{
"command": "nx g lib mylib --appProject=myapp",
"description": "Generate a library with routes and add them to `myapp`"
"command": "nx g @nx/react:lib mylib --appProject=myapp",
"description": "Generate a library under mylib with routes and add them to `myapp`"
}
],
"properties": {

View File

@ -7,12 +7,12 @@
"type": "object",
"examples": [
{
"command": "nx g lib mylib --directory=myapp",
"description": "Generate `libs/myapp/mylib`"
"command": "nx g @nx/react:lib libs/mylib",
"description": "Generate a library under `libs/mylib`"
},
{
"command": "nx g lib mylib --appProject=myapp",
"description": "Generate a library with routes and add them to `myapp`"
"command": "nx g @nx/react:lib mylib --appProject=myapp",
"description": "Generate a library under mylib with routes and add them to `myapp`"
}
],
"properties": {