Hi Does anyone know how to Run Storybook Chromatic in an NX workspace ? My Angular app and libs are working fine when Serving locally, I have run Stories for my projects fine. I have even built and published the stories locally. What I want is to publish it to remote using Chromatic but I do not know how.
Is there a process for this? I have not found one yet.
I am trying something really messy at the moment - but it is not working.
This is my failed attempt:
Adding a run script to the Workspace package.json:
"build-storybook": "./node_modules/@storybook/angular/bin/index.js build-storybook --output-dir ./dist/storybook -c ./libs/cwb-panel/.storybook”
Gives this error:
Command failed with exit code 1: npm run --silent build-storybook -- --output-dir /var/folders/qz/2d3l6_blahblahblah
error: unknown option '--output-dir'
I am stumped, there must be a way, just not sure what it is :(