-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Framework: Add Component Storybook (tweaks) #17762
Conversation
e298c15
to
13c79dc
Compare
53b1101
to
d491df8
Compare
I see a failing unit test: https://travis-ci.com/WordPress/gutenberg/jobs/241941170#L5643
It looks like this test depends on the execution time so it might fail from time to time. We probably should limit this check to whether this string starts with |
13c79dc
to
f52cacd
Compare
I rebased changes against the |
We should also explore how to setup Storybook for RN: |
82498a8
to
2c47dcc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this test depends on the execution time so it might fail from time to time. We probably should limit this check to whether this string starts with success message.
We should mock timers, I thought we already did.
We should also explore how to setup Storybook for RN:
For running on-device
? Or are you proposing we have a second deployment that runs a web emulator?
2c47dcc
to
1778807
Compare
f52cacd
to
524b3ad
Compare
1778807
to
edd53d4
Compare
For running on the real device or the simulator. This is the only way to ensure that we build cross-platform components. |
524b3ad
to
00ad822
Compare
488d1ec
to
d564b55
Compare
I'll add it to my list. |
|
d564b55
to
f9591bc
Compare
@@ -199,8 +199,9 @@ jobs: | |||
if: branch = master | |||
name: Deploy Playground | |||
env: INSTALL_WORDPRESS=false | |||
install: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about we override install
here to skip npm run build
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if: branch = master
stops the entire stage from running outside of master, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I see what you mean, because the playground already runs build. Yeah, good catch!
Description
Some tweaks for the general setup of #17475.
Changes included:
@storybook/addon-docs
downgraded to the same version as other packagesbabel-loader
removed fromdevDependencies
- it isn't explicitly used so dependencies should have more freedom to pick a proper versiondesign-system:build
runs alsonpm run build:packages
as one of the steps to align with the playground and to fix the issue which will pop up as soon as we start using internal dependencies in stories@wordpress/babel-preset-default
preset added to the custom Babel config so we don't have to explicitly loadReact
as a dependnecy but rather use@wordpress/element
Unrelated cleanup changes:
How has this been tested?
The new storybook was verified to work in development (
npm run design-system:dev
) and production (npm run design-system:build
) modes.