From 6c43c37d5362c5f70e1f9d1c6b40756697d8d706 Mon Sep 17 00:00:00 2001 From: Artem-Darius Atlas Date: Fri, 30 Jun 2023 20:30:57 +0300 Subject: [PATCH] docs: update commands for nx react sturybook --- docs/frontend/01_NX_COMANDS.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/frontend/01_NX_COMANDS.md b/docs/frontend/01_NX_COMANDS.md index 6815434..1d4bdc4 100644 --- a/docs/frontend/01_NX_COMANDS.md +++ b/docs/frontend/01_NX_COMANDS.md @@ -1,5 +1,5 @@ # 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 nx g @nrwl/react:lib ui ``` @@ -7,11 +7,15 @@ nx g @nrwl/react:lib ui ```bash 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 ```bash nx run ui:build-storybook ``` -### This command will run Storybook +### This command will run Styorybook ```bash nx run ui:storybook ```