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

Add a programmatic interface to create-svelte #3421

Closed
Rich-Harris opened this issue Jan 19, 2022 · 0 comments · Fixed by #3437
Closed

Add a programmatic interface to create-svelte #3421

Rich-Harris opened this issue Jan 19, 2022 · 0 comments · Fixed by #3437
Labels

Comments

@Rich-Harris
Copy link
Member

Describe the problem

create-svelte only works via the CLI, and only interactively. It would be helpful to expose a programmatic (and versioned) interface, so that we can keep a template repo up to date with sveltejs/kit (this template repo would be used to populate things like https://node.new/sveltekit, which will otherwise constantly be out of date)

Describe the proposed solution

Something like this:

import { create } from 'create-svelte';

await create(dir, {
  eslint: false,
  typescript: false,
  prettier: true
});

Alternatives considered

No response

Importance

would make my life easier

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants