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",
|
||||
"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": {
|
||||
|
||||
@ -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": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user