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

feat: improve cli #420

Merged
merged 7 commits into from Mar 15, 2024
Merged

feat: improve cli #420

merged 7 commits into from Mar 15, 2024

Conversation

injurka
Copy link
Contributor

@injurka injurka commented Mar 12, 2024

Description

The current config setup via cli is pretty basic, and doesn't cover all possibilities with the needs of those who can use the current config. It would be nice to be able to customize a preset for special frameworks whose packages are not included in the default set of dependencies

For example I have a project on astro and I want to add eslint support to it using this config. The documentation says that I need to download eslint-plugin-astro, but there will be no automatic formatting when saving the code. To make it happen, as the documentation says, download eslint-plugin-format. But even now it wont work, because we need to download a specific formatter for astro, so now download prettier-plugin-astro. And now everything works. This example is just to show how dependencies of one thing on another appear

Linked Issues

#414

Additional context

Framework stage

Utils stage

@antfu
Copy link
Owner

antfu commented Mar 13, 2024

Thank you, that would be a nice addition. Maybe we could try using https://github.com/natemoo-re/clack for a nicer interface?

@injurka
Copy link
Contributor Author

injurka commented Mar 13, 2024

@antfu Tried adding @clack/prompts, result visually is something like this:

What do you think about that?

@antfu
Copy link
Owner

antfu commented Mar 15, 2024

Looks great, thank you!

@antfu antfu changed the title feat: cli presets feat: improve cli Mar 15, 2024
@antfu antfu merged commit bc13ba5 into antfu:main Mar 15, 2024
5 checks passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants