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

[create-svelte] Add the ability to pass in options via the command #2542

Closed
chanced opened this issue Oct 1, 2021 · 2 comments
Closed

[create-svelte] Add the ability to pass in options via the command #2542

chanced opened this issue Oct 1, 2021 · 2 comments

Comments

@chanced
Copy link

chanced commented Oct 1, 2021

Describe the problem

It would be nice if create-svelte allowed for options to be passed in. For example:

pnpm init myPackage -- --template skeleton --typescript=true --eslint=true --prettier=true
# the -- is required to inform npm / pnpm to stop parsing

Describe the proposed solution

I have a pull request ready to go using Optionator. I'm creating an issue first for discussion.

Alternatives considered

No response

Importance

nice to have

Additional Information

No response

@Conduitry
Copy link
Member

This has come up before in #1231 and #2348, and I explain there why we don't want this.

@chanced
Copy link
Author

chanced commented Oct 1, 2021

I understand your reasonings. One thing I'd say is that in the future, once kit is released, it shouldn't be as big of an issue because you can fix the version of the generator. That should solve the trouble of breaking APIs relying upon it.

I was in the middle of creating my own template and just figured I'd offer it up. Sorry I created yet another duplicate issue.

It's available if ya'll change your mind.

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

No branches or pull requests

2 participants