storybookjs / storybook

Storybook is the industry standard workshop for building, documenting, and testing UI components in isolation
https://storybook.js.org
MIT License
83.83k stars 9.18k forks source link

CLI: Add SvelteKit to storybook@latest init in empty directory #28618

Open cge-taal opened 1 month ago

cge-taal commented 1 month ago

Describe the bug

When I follow the turborepo storybook guide here, https://turbo.build/repo/docs/guides/tools/storybook , and run pnpm dlx storybook@latest init , there is no option for SvelteKit provided amongst the project templates.

Please add one for SvelteKit

Reproduction link

https://turbo.build/repo/docs/guides/tools/storybook

Reproduction steps

No response

System

Storybook 8.2.4

Additional context

No response

greptile-apps[bot] commented 1 month ago

Disclaimer This information might be inaccurate, due to it being generated automatically To add SvelteKit as an option for storybook@latest init, follow these steps:

  1. Update Initialization Command: Modify the initialization command to include SvelteKit as a framework option. This involves updating the relevant code handling initialization commands.

  2. Add SvelteKit Framework: Ensure the SvelteKit framework is properly set up in the .storybook/main.js or .storybook/main.ts configuration file.

Refer to the following files for implementation details:

These changes will enable SvelteKit as a selectable option during the Storybook initialization process.

References

/code/core/src/server-errors.ts /docs/_snippets/init-command.md /docs/_snippets/sveltekit-install.md /docs/_snippets/sveltekit-add-framework.md /docs/get-started/frameworks/sveltekit.mdx

#### About Greptile This response provides a starting point for your research, not a precise solution. Help us improve! Please leave a ๐Ÿ‘ if this is helpful and ๐Ÿ‘Ž if it is irrelevant. [Ask Greptile](https://app.greptile.com/chat/github/storybookjs/storybook/next) ยท [Edit Issue Bot Settings](https://app.greptile.com/apps/github)