docs(react): buildable lib generation docs (#15422)

This commit is contained in:
Katerina Skroumpelou 2023-03-06 03:00:41 +02:00 committed by GitHub
parent bb13465a09
commit 7d52fc77ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -36,7 +36,8 @@ And add a new library as follows:
nx g @nrwl/react:lib my-new-lib
# If you want the library to be buildable or publishable to npm
nx g @nrwl/react:lib my-new-lib --buildable
nx g @nrwl/react:lib my-new-lib --bundler=vite
nx g @nrwl/react:lib my-new-lib --bundler=rollup
nx g @nrwl/react:lib my-new-lib \
--publishable \
--importPath=@myorg/my-new-lib
@ -100,7 +101,7 @@ React applications can be build with:
nx build my-new-app
```
And if you generated a library with `--buildable`, then you can build a library as well:
And if you generated a library with `--bundler` specified, then you can build a library as well:
```shell
nx build my-new-lib

View File

@ -36,7 +36,8 @@ And add a new library as follows:
nx g @nrwl/react:lib my-new-lib
# If you want the library to be buildable or publishable to npm
nx g @nrwl/react:lib my-new-lib --buildable
nx g @nrwl/react:lib my-new-lib --bundler=vite
nx g @nrwl/react:lib my-new-lib --bundler=rollup
nx g @nrwl/react:lib my-new-lib \
--publishable \
--importPath=@myorg/my-new-lib
@ -100,7 +101,7 @@ React applications can be build with:
nx build my-new-app
```
And if you generated a library with `--buildable`, then you can build a library as well:
And if you generated a library with `--bundler` specified, then you can build a library as well:
```shell
nx build my-new-lib