From a4c7fdd7e1e622089c73af8296417eabcabc10ec Mon Sep 17 00:00:00 2001 From: Artem-Darius Atlas Date: Fri, 30 Jun 2023 20:21:20 +0300 Subject: [PATCH] docs: created doc for frontend nx storybook commands --- docs/frontend/01_NX_COMANDS.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 docs/frontend/01_NX_COMANDS.md diff --git a/docs/frontend/01_NX_COMANDS.md b/docs/frontend/01_NX_COMANDS.md new file mode 100644 index 0000000..6815434 --- /dev/null +++ b/docs/frontend/01_NX_COMANDS.md @@ -0,0 +1,21 @@ +# 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 +```bash +nx g @nrwl/react:lib ui +``` +### This command will configure library to be a Storybook library +```bash +nx g @nrwl/react:storybook-configuration --name=ui +``` +### This command will build Storybook +```bash +nx run ui:build-storybook +``` +### This command will run Storybook +```bash +nx run ui:storybook +``` +### This command will generate Storybook Stories +```bash +nx g @nrwl/react:component button --project=ui --export +```