Skip to content
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

CLI: Use ink in CLI #30202

Draft
wants to merge 130 commits into
base: next
Choose a base branch
from
Draft

CLI: Use ink in CLI #30202

wants to merge 130 commits into from

Conversation

ndelangen
Copy link
Member

@ndelangen ndelangen commented Jan 7, 2025

Closes #

What I did

Checklist for Contributors

Testing

The changes in this PR are covered in the following automated tests:

  • stories
  • unit tests
  • integration tests
  • end-to-end tests

Manual testing

This section is mandatory for all contributions. If you believe no manual test is necessary, please state so explicitly. Thanks!

Documentation

  • Add or update documentation reflecting your changes
  • If you are deprecating/removing a feature, make sure to update
    MIGRATION.MD

Checklist for Maintainers

  • When this PR is ready for testing, make sure to add ci:normal, ci:merged or ci:daily GH label to it to run a specific set of sandboxes. The particular set of sandboxes can be found in code/lib/cli-storybook/src/sandbox-templates.ts

  • Make sure this PR contains one of the labels below:

    Available labels
    • bug: Internal changes that fixes incorrect behavior.
    • maintenance: User-facing maintenance tasks.
    • dependencies: Upgrading (sometimes downgrading) dependencies.
    • build: Internal-facing build tooling & test updates. Will not show up in release changelog.
    • cleanup: Minor cleanup style change. Will not show up in release changelog.
    • documentation: Documentation only changes. Will not show up in release changelog.
    • feature request: Introducing a new feature.
    • BREAKING CHANGE: Changes that break compatibility in some way with current major version.
    • other: Changes that don't fit in the above categories.

🦋 Canary release

This pull request has been released as version 0.0.0-pr-30202-sha-958e81ef. Try it out in a new sandbox by running npx [email protected] sandbox or in an existing project with npx [email protected] upgrade.

More information
Published version 0.0.0-pr-30202-sha-958e81ef
Triggered by @ndelangen
Repository storybookjs/storybook
Branch norbert/cli-with-ink
Commit 958e81ef
Datetime Thu Jan 23 07:40:11 UTC 2025 (1737618011)
Workflow run 12924470121

To request a new release of this pull request, mention the @storybookjs/core team.

core team members can create a new canary release here or locally with gh workflow run --repo storybookjs/storybook canary-release-pr.yml --field pr=30202

name before after diff z %
createSize 0 B 0 B 0 B - -
generateSize 77.9 MB 77.9 MB 14.4 kB 2.28 0%
initSize 131 MB 132 MB 861 kB 58.47 0.7%
diffSize 53 MB 53.8 MB 847 kB 99.74 1.6%
buildSize 7.19 MB 7.19 MB 39 B 0.55 0%
buildSbAddonsSize 1.85 MB 1.85 MB 0 B -0.5 0%
buildSbCommonSize 195 kB 195 kB 0 B - 0%
buildSbManagerSize 1.87 MB 1.87 MB 0 B 0.5 0%
buildSbPreviewSize 0 B 0 B 0 B - -
buildStaticSize 0 B 0 B 0 B - -
buildPrebuildSize 3.91 MB 3.91 MB 0 B 0.5 0%
buildPreviewSize 3.28 MB 3.28 MB 39 B 0.75 0%
testBuildSize 0 B 0 B 0 B - -
testBuildSbAddonsSize 0 B 0 B 0 B - -
testBuildSbCommonSize 0 B 0 B 0 B - -
testBuildSbManagerSize 0 B 0 B 0 B - -
testBuildSbPreviewSize 0 B 0 B 0 B - -
testBuildStaticSize 0 B 0 B 0 B - -
testBuildPrebuildSize 0 B 0 B 0 B - -
testBuildPreviewSize 0 B 0 B 0 B - -
name before after diff z %
createTime 10.7s 21.6s 10.9s 1.24 🔺50.3%
generateTime 20.3s 21.5s 1.1s 0.45 5.5%
initTime 13.7s 16s 2.2s 0.53 14%
buildTime 12.1s 9.7s -2s -410ms 0.32 -24.7%
testBuildTime 0ms 0ms 0ms - -
devPreviewResponsive 4.4s 4.6s 132ms -0.61 2.9%
devManagerResponsive 3.3s 3.3s 37ms -0.5 1.1%
devManagerHeaderVisible 544ms 625ms 81ms 0.76 13%
devManagerIndexVisible 574ms 665ms 91ms 0.63 13.7%
devStoryVisibleUncached 1.8s 2s 153ms 0.63 7.5%
devStoryVisible 575ms 666ms 91ms 0.87 13.7%
devAutodocsVisible 498ms 628ms 130ms 1.73 🔺20.7%
devMDXVisible 479ms 464ms -15ms -0.75 -3.2%
buildManagerHeaderVisible 506ms 553ms 47ms -0.17 8.5%
buildManagerIndexVisible 590ms 662ms 72ms 0.17 10.9%
buildStoryVisible 488ms 542ms 54ms -0.11 10%
buildAutodocsVisible 393ms 548ms 155ms 1.07 28.3%
buildMDXVisible 413ms 458ms 45ms 0.16 9.8%

Copy link

nx-cloud bot commented Jan 7, 2025

View your CI Pipeline Execution ↗ for commit 4302698.

Command Status Duration Result
nx run-many -t build --parallel=3 ✅ Succeeded 1m 47s View ↗

☁️ Nx Cloud last updated this comment at 2025-01-24 16:14:03 UTC

@storybook-pr-benchmarking
Copy link

storybook-pr-benchmarking bot commented Jan 7, 2025

Package Benchmarks

Commit: 4302698, ran on 24 January 2025 at 16:19:22 UTC

The following packages have significant changes to their size or dependencies:

@storybook/experimental-addon-test

Before After Difference
Dependency count 60 60 0
Self size 832 KB 846 KB 🚨 +14 KB 🚨
Dependency size 14.19 MB 14.19 MB 🚨 +102 B 🚨
Bundle Size Analyzer Link Link

@storybook/core

Before After Difference
Dependency count 54 55 🚨 +1 🚨
Self size 19.09 MB 19.64 MB 🚨 +555 KB 🚨
Dependency size 14.43 MB 14.72 MB 🚨 +290 KB 🚨
Bundle Size Analyzer Link Link

storybook

Before After Difference
Dependency count 55 56 🚨 +1 🚨
Self size 22 KB 24 KB 🚨 +2 KB 🚨
Dependency size 33.52 MB 34.37 MB 🚨 +845 KB 🚨
Bundle Size Analyzer Link Link

sb

Before After Difference
Dependency count 56 57 🚨 +1 🚨
Self size 1 KB 1 KB 0 B
Dependency size 33.54 MB 34.39 MB 🚨 +847 KB 🚨
Bundle Size Analyzer Link Link

@storybook/cli

Before After Difference
Dependency count 399 407 🚨 +8 🚨
Self size 503 KB 248 KB 🎉 -255 KB 🎉
Dependency size 75.57 MB 77.68 MB 🚨 +2.11 MB 🚨
Bundle Size Analyzer Link Link

@storybook/codemod

Before After Difference
Dependency count 277 278 🚨 +1 🚨
Self size 612 KB 612 KB 0 B
Dependency size 65.38 MB 66.23 MB 🚨 +853 KB 🚨
Bundle Size Analyzer Link Link

create-storybook

Before After Difference
Dependency count 113 150 🚨 +37 🚨
Self size 1.11 MB 1.91 MB 🚨 +803 KB 🚨
Dependency size 42.66 MB 47.20 MB 🚨 +4.54 MB 🚨
Bundle Size Analyzer Link Link

@ndelangen ndelangen self-assigned this Jan 8, 2025
ndelangen and others added 30 commits January 21, 2025 16:50
…it will handle the telemetry notification itself
…y we can accurately detect the user passing the flag, and skip the step
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants