Skip to content

Conversation

@clintandrewhall
Copy link
Contributor

Summary

I noticed the Storybook start time had dramatically increased, and looking into it, noticed a number of dependencies had creeped in. This PR offloads more of that heavy lifting to the DLL, improving the start time by about 40%.

In addition, I took the opportunity to improve and consolidate the scripts, using @spalger's new awesomeness. You can now build a Webpack stats collection to debug performance from the CLI.

node scripts/storybook

  Storybook runner for Canvas.

  Options:
    --clean            Forces a clean of the Storybook DLL and exits.
    --dll              Cleans and builds the Storybook dependency DLL and exits.
    --stats            Produces a Webpack stats file.
    --site             Produces a site deployment of this Storybook.
    --verbose, -v      Log verbosely
    --debug            Log debug messages (less than verbose)
    --quiet            Only log errors
    --silent           Don't log anything
    --help             Show this message

@clintandrewhall clintandrewhall added review dev Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// loe:small Small Level of Effort v8.0.0 release_note:skip Skip the PR/issue when compiling release notes impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. v7.5.0 labels Aug 30, 2019
@clintandrewhall clintandrewhall requested a review from a team as a code owner August 30, 2019 16:09
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-canvas

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@spalger spalger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@clintandrewhall clintandrewhall merged commit edc13bf into elastic:master Aug 31, 2019
clintandrewhall added a commit to clintandrewhall/kibana that referenced this pull request Aug 31, 2019
* Improve Storybook Scripts and load time

* Remove extra module rule
jloleysens added a commit to jloleysens/kibana that referenced this pull request Sep 2, 2019
…-to-np-ready

* 'master' of github.com:elastic/kibana: (409 commits)
  [ML] Data frame analytics: Fix source index checks. (elastic#44479)
  [Code] try fix this test (elastic#43692)
  skip flaky suite (elastic#44572) (elastic#42111) (elastic#44286) (elastic#43557) (elastic#42567)
  skip flaky suite (elastic#44560)
  skip flaky suite (elastic#44250)
  disable flaky suite (elastic#41336)
  [code] Update download URLs for go lsp. (elastic#44581)
  disable flaky suite (elastic#44575)
  disable flaky suite (elastic#44576)
  [Code] add functional test to verify lang server full api symbol/reference counts (elastic#44051)
  Improve Storybook scripts and load time (elastic#44511)
  Update Dependencies (elastic#44519)
  Remove use of injecti18n in Embeddables plugin (elastic#44043)
  [SIEM] Adds a configuraton option for the default SIEM date time range (elastic#44540)
  [Uptime]Fix/issue 40584  section headline should be inside panel (elastic#43468)
  disable flaky suite (elastic#22322)
  Changes network to use ECS fields (elastic#44392)
  Fix 'workpad flash' when loading new workpad (elastic#44387)
  [renovate] bump new PR version labels
  Update dependency cmd-shim to ^2.1.0 (elastic#44034)
  ...

# Conflicts:
#	src/legacy/core_plugins/console/public/index.html
clintandrewhall added a commit that referenced this pull request Sep 4, 2019
* Improve Storybook Scripts and load time

* Remove extra module rule
@clintandrewhall clintandrewhall deleted the storybook-script branch September 18, 2019 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dev impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:small Small Level of Effort release_note:skip Skip the PR/issue when compiling release notes review Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// v7.5.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants