-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Draft][wip] Adding storybook static site generation and percy storybook script #57628
Conversation
packages/kbn-storybook/index.js
Outdated
}); | ||
|
||
// Line is only reached when building the static version | ||
process.exit(); |
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.
I don't love this. I went with it because I was having issues with this CLI tool continuing to run despite the storybook promise resolving (and I disabled the --watch on the sass watcher too). There's probably something I'm missing.
@@ -27,7 +27,7 @@ import { create } from '@storybook/theming'; | |||
if (process.env.NODE_ENV === 'test') { | |||
// eslint-disable-next-line | |||
require('babel-plugin-require-context-hook/register')(); | |||
} else { | |||
} else if (!process.env.PERCY_TOKEN) { |
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.
I don't love this either. We're deciding not to add all the storybook decorations if we have a PERCY_TOKEN defined in the environment. I couldn't find a great way to pass in flags to a storybook config but I'm def open to other suggestions
Co-Authored-By: Vadim Dalecky <[email protected]>
f39c90c
to
6183463
Compare
6183463
to
1387297
Compare
Going to re-open once #58050 is merged |
💔 Build FailedTest FailuresKibana Pipeline / kibana-oss-agent / Firefox UI Functional Tests.test/functional/apps/visualize/_tsvb_chart·ts.visualize app visual builder switch index patterns "before each" hook for "should be able to switch between index patterns"Standard Out
Stack Trace
Kibana Pipeline / kibana-xpack-agent / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/index_patterns/feature_controls/index_patterns_spaces·ts.Index Patterns feature controls spaces space with Index Patterns disabled redirects to Kibana homeStandard Out
Stack Trace
Kibana Pipeline / kibana-xpack-agent / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/advanced_settings/feature_controls/advanced_settings_security·ts.Advanced Settings security feature controls no advanced_settings privileges does not allow navigation to advanced settings; redirects to management homeStandard Out
Stack Trace
and 1 more failures, only showing the first 3. History
To update your PR or re-run it, just comment with: |
Summary
--site
flagAn example of the percy-storybook run can be found here running using Canvas stories: https://percy.io/elastic/kibana-canvas/builds/4154578
TODO