docs(react): update react lib generator (#30527)
the examples are outdated, the new ones make more sense
This commit is contained in:
parent
8844e245fb
commit
5dcec84e63
@ -10,12 +10,12 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"examples": [
|
"examples": [
|
||||||
{
|
{
|
||||||
"command": "nx g lib mylib --directory=myapp",
|
"command": "nx g @nx/react:lib libs/mylib",
|
||||||
"description": "Generate `libs/myapp/mylib`"
|
"description": "Generate a library under `libs/mylib`"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "nx g lib mylib --appProject=myapp",
|
"command": "nx g @nx/react:lib mylib --appProject=myapp",
|
||||||
"description": "Generate a library with routes and add them to `myapp`"
|
"description": "Generate a library under mylib with routes and add them to `myapp`"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
|
|||||||
@ -7,12 +7,12 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"examples": [
|
"examples": [
|
||||||
{
|
{
|
||||||
"command": "nx g lib mylib --directory=myapp",
|
"command": "nx g @nx/react:lib libs/mylib",
|
||||||
"description": "Generate `libs/myapp/mylib`"
|
"description": "Generate a library under `libs/mylib`"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "nx g lib mylib --appProject=myapp",
|
"command": "nx g @nx/react:lib mylib --appProject=myapp",
|
||||||
"description": "Generate a library with routes and add them to `myapp`"
|
"description": "Generate a library under mylib with routes and add them to `myapp`"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user