-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
SImplify "astro add" by removing confusing multi-select #3715
Conversation
🦋 Changeset detectedLatest commit: b04410c The changes in this PR will be included in the next version bump. This PR includes changesets to release 9 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Does the command support specifying multiple integrations to add in one call? If so, that would be great, and it should be reflected in the help output somehow. So rather than What I also currently find a bit misleading is that you're introducing astro add in the usage line as a command to install I'd personally also be confused why those integrations are all "recommended". Does that mean I should install all of them? I'd therefore propose to change the list headers to something like |
Hippo's ideas seem smart — plus one on those. Re: docs — yes we describe the current CLI output in detail in our install guide, which will need updating. In fact, how will this work as part of |
Agreed! Updated copy based on @hippotastic's comments.
Great! PR to update created: withastro/docs#867
Good call out! I updated the PR to update create-astro for this change. Video preview added to OP. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’m a big plus one on these changes. The multi-select was also really hard to describe in docs, so this will make our life easier 😅
Spotted a couple of tiny things, but otherwise LGTM!
await logAndWait(''); | ||
await logAndWait(`Stuck? Come join us at ${bold(cyan('https://astro.build/chat'))}`, 1000); | ||
await logAndWait(dim('Good luck out there, astronaut.')); | ||
await logAndWait('', 300); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice touch with the staggered output!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I was kind of just playing around at first but it feels a lot more human.
The 1000
wait before "good luck out there" is a bit of a cheesy touch, so if anyone has any thoughts I'm okay to scrap it or shrink it down to a smaller wait. You can see it in action in the video above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it! I bet there are some speed freaks who’d be disgusted, but you need to develop patience for a journey to the stars.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Had a few small comments and would love to see existing feedback addressed before approving.
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM once tests are passing!
* wip * update create-astro for new astro add * update copy * update git prompt * Update packages/astro/src/core/logger/node.ts Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> * Update packages/create-astro/test/install-step.test.js Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> * update git prompt * update test Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Changes
Bonus!
create-astro
also updated with a few style changes and bug fixes.Bonus! Added link to our full integration catalog.
Bonus! Cleaned up the
printHelp()
function to be a bit more pretty across all the commands, and updated its API to be a bit more flexible.Screenshot:
astro add
multi-select replaced with this outputRecording: The new, updated
create-astro
flowScreen.Recording.2022-06-26.at.10.48.21.PM.mov
Testing
astro add
isn't tested yet)Docs