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

Display next steps after running an adder #390

Closed
manuel3108 opened this issue Jun 13, 2024 · 0 comments · Fixed by #409
Closed

Display next steps after running an adder #390

manuel3108 opened this issue Jun 13, 2024 · 0 comments · Fixed by #409
Assignees
Labels
enhancement New feature or request

Comments

@manuel3108
Copy link
Member

manuel3108 commented Jun 13, 2024

Topic

core, all adders

Description

After installing some more complicated adders like #379 or #338 it would be helpful to provide the user with a next steps section, so that he knows what he needs to do now.

I think we should ignore stuff like

  • change to that directory
  • install dependencies (if the user select not to)
  • start the dev server

If the user is using svelte-add we could assume that he already knows what he is doing and does not need to be informed about such trivial stuff. Especially if the command was run on an existing project, this wouldn't be much useless information.

Instead, we should provide the user more context for the tool he installed. Considering drizzle we should point the user to the docs to read and write data to the database and give him a note that he needs to run db:push in order to seed the database with our example (at least that's what I understand).

Describe the solution you'd like

We should display a prompt similar to the preconditions one:
image

The title could be "Next steps" or something similar.

Each adder that was applied should have a hook inside adder.js which returns a string with the next steps for each adder. Let's keep in mind, that multiple adders can be applied at one time by using pnpm dlx svelte-add

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

Successfully merging a pull request may close this issue.

1 participant