nuxt-modules / storybook

Storybook integration with Nuxt.
https://storybook.nuxtjs.org
402 stars 92 forks source link

chore: merge storybook-nuxt repo #594

Closed tobiasdiez closed 4 months ago

tobiasdiez commented 4 months ago

Merge the storybook addon () into this repo while preserving the commit history.

This is needed as https://github.com/nuxt-modules/storybook/pull/592 will integrate the nuxt module closer with the storybook addon, and thus more often simultaneous changes are necessary. Moreover, we don't need to replicate ci and testing infrastructure.

This PR only adds the code and making ci pass. Adding the proper workspace integration and ci builds will be done as follow-ups.

Please merge this PR and not squash it since otherwise the old commit history is lost.

netlify[bot] commented 4 months ago

Deploy request for nuxt-storybook pending review.

Visit the deploys page to approve it

Name Link
Latest commit 35e79ed8a869eddb2c1ebfa6b46bad92348a2927
tobiasdiez commented 4 months ago

@chakAs3 what do you think?

chakAs3 commented 4 months ago

@chakAs3 what do you think?

Honestly, making maintenance simpler may seem like a good idea, but it's not quite that simple. The Storybook preset @storybook-vue/nuxt doesn't depend on the Nuxt module, and it shouldn't.

The preset ( addon ) does its own thing in Storybook, while the Nuxt module extends Nuxt app functionalities.

Updating the Nuxt module doesn't affect the Storybook preset.

Usually, we'd follow the same process as with the Next.js preset. Once it's stable, we'll move it to the Storybook monorepo.

I still recommend keeping @storybook/nuxt in a separate repository, linked to nuxt-modules/storybook as a package. This aligns with the practice followed by the Nuxt team for their Nuxi CLI, which is no longer part of the monorepo.

tobiasdiez commented 4 months ago

Honestly, making maintenance simpler may seem like a good idea, but it's not quite that simple. The Storybook preset @storybook-vue/nuxt doesn't depend on the Nuxt module, and it shouldn't.

It was not definitely not my intention to change this. The Storybook addon should still be independent of the Nuxt module. I only would like to have them in the same repository so that

Once the Storybook addon is more stable, we can indeed move it to the storybook repo if they are interested. There is no problem with that.

chakAs3 commented 4 months ago

@tobiasdiez, we're good on this. I'm completely aligned with you. However, I can't create a merge commit for this; the only option is to squash. That's fine with me since it's still a preview version, and we need to stabilize it more before it's production-ready.

tobiasdiez commented 4 months ago

Awesome! Thanks for the feedback. I'll work on the ci integration etc in the coming days.