-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
👍 DX | Making sure storybook
can be started encapsulated from the docs
.
#525
base: main
Are you sure you want to change the base?
👍 DX | Making sure storybook
can be started encapsulated from the docs
.
#525
Conversation
…exists. (cherry picked from commit 170b3c467358e02155c411364cbf5a89ecde5bbb)
|
docs
.
docs
.Storybook
can be started encapsulated from the docs
.
Storybook
can be started encapsulated from the docs
.storybook
can be started encapsulated from the docs
.
Sorry @rezrah, I just updated the branch, mind triggering the workflows again, so I can see whats wrong and fix it? |
I'd love to fix those failing actions, but I do not think I am allowed to. It looks like they are asking for secrets. Ui test, Visual test, & Deploy all seem to use the action But the secret should be tied to the repository, right? Hopefully not the PAT? |
Summary
Hey 👋 ,
Cool stuff we have here. I wanted to contribute slightly to the DX. Currently we have two apps who live inside of this monorepo:
docs
storybook
They're (to my understanding) supposed to be able to run and live in parallel. I noticed that when starting the storybook in preview mode, that was not the case, as the build would fail, because of a built resource from Gatsby would be missing, and the
-o
argument inside of thestorybook build
script would fail.This fixes that, and allows devs to just start storybook, avoiding a race condition. Vice versa, it does not mess with the
docs
build progress.List of notable
build-storybook
command not looks for if a directory$STATIC_DIR
exists, if not, it creates it. Thanks to the-p
command, we don't have to create a side effect to create it.apps/docs/README.md
as it references a command which does not exist.What should reviewers focus on?
Ive tested pretty thoroughly that the built is not encapsulated in such a way that we can start storybook without messing with the Gatsby build, for quick and easy previewing.
Steps to test:
npm i
(in root)npm run build:storybook:preview
(in root)npm run start:storybook
(in root)On
main
:ERR! Failed to load static files, no such directory: [outside of module]/apps/docs/public/static
On
branch
:🎺 We get a preview of storybook!
Supporting resources (related issues, external links, etc):
Contributor checklist:
Reviewer checklist:
Screenshots:
Before:
sad.webm
After:
happy.webm