Skip to content

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

Open
@cge-taal

Description

@cge-taal

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

Activity

greptile-apps

greptile-apps commented on Jul 16, 2024

@greptile-apps
Contributor

** 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:

  • 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

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 · Edit Issue Bot Settings

changed the title [Bug]: No SvelteKit option for storybook@latest init CLI: Add SvelteKit to storybook@latest init in empty directory on Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

      Participants

      @shilman@cge-taal

      Issue actions

        CLI: Add SvelteKit to storybook@latest init in empty directory · Issue #28618 · storybookjs/storybook