docs: update commands for nx react sturybook

feature/front-base-layout
Artem-Darius Weber 2 years ago
parent a4c7fdd7e1
commit 6c43c37d53

@ -1,5 +1,5 @@
# Nx Commands # Nx Commands
### This command will generate a new React project in the libs folder and it will also add all the required script targets in your workspace.json ### This command will generate a new React library (React Component) in the libs folder and it will also add all the required script targets in your project.json
```bash ```bash
nx g @nrwl/react:lib ui nx g @nrwl/react:lib ui
``` ```
@ -7,11 +7,15 @@ nx g @nrwl/react:lib ui
```bash ```bash
nx g @nrwl/react:storybook-configuration --name=ui nx g @nrwl/react:storybook-configuration --name=ui
``` ```
### This command will generate a new React Story in selected library (component)
```bash
nx g @nrwl/react:stories --project=ui
```
### This command will build Storybook ### This command will build Storybook
```bash ```bash
nx run ui:build-storybook nx run ui:build-storybook
``` ```
### This command will run Storybook ### This command will run Styorybook
```bash ```bash
nx run ui:storybook nx run ui:storybook
``` ```

Loading…
Cancel
Save