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

Feature: interactive meteor create command #12803

Conversation

mr-loop-1
Copy link
Contributor

@mr-loop-1 mr-loop-1 commented Oct 4, 2023

Closes #12791

If either or both of application name and skeleton flag is missed in the create command, there will be prompts for choosing them.

@mr-loop-1 mr-loop-1 changed the title Feature/interactive meteor create command Feature: interactive meteor create command Oct 4, 2023
@CLAassistant
Copy link

CLAassistant commented Oct 4, 2023

CLA assistant check
All committers have signed the CLA.

@denihs denihs added the hacktoberfest hacktoberfest issues for contribuition. label Oct 5, 2023
@StorytellerCZ StorytellerCZ linked an issue Oct 6, 2023 that may be closed by this pull request
@mr-loop-1 mr-loop-1 marked this pull request as ready for review October 7, 2023 19:07
@mr-loop-1
Copy link
Contributor Author

Hi @StorytellerCZ ,
The PR is ready for review. Also, I am not sure why there are changes in packages/non-core/blaze after I took the pull of devel branch. Can you please look into that as well.

@Grubba27
Copy link
Contributor

Grubba27 commented Oct 9, 2023

I added testing this PR to my todo's

@Grubba27 Grubba27 added this to the Release 2.14 milestone Oct 9, 2023
const skeletonExplicitOption = AVAILABLE_SKELETONS.find(skeleton =>
!!options[skeleton]);

if(skeletonExplicitOption) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If a name is provided as an arg, the interactivity should be disabled and it use the default skeleton if non was provided. This is needed to avoid breaking scripts that use meteor create.

Copy link
Contributor Author

@mr-loop-1 mr-loop-1 Oct 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zodern Yes, that would be one of the cases where we wouldn't want to make prompts.
So, in that case, we only bring up the prompts when app name is not provided?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zodern Alternatively, we could have a simple info line for users when they provide an app name but no template. It could go along the lines of - no skeleton specified, using default React....

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, in that case, we only bring up the prompts when app name is not provided?

Yes.

Showing a message like you suggest when using the default skeleton makes sense.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zodern made some changes

@wyq09

This comment was marked as off-topic.

@mr-loop-1 mr-loop-1 requested a review from zodern October 10, 2023 16:47
@meteor meteor deleted a comment from 07tAnYa Oct 12, 2023
@Grubba27 Grubba27 changed the base branch from devel to dev-bundle-14.21.4.4 October 31, 2023 19:27
@Grubba27
Copy link
Contributor

Needs a new dev-bundle. cc @StorytellerCZ

Copy link
Contributor

@denihs denihs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Grubba27 Grubba27 merged commit a65aed0 into meteor:dev-bundle-14.21.4.4 Nov 1, 2023
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest hacktoberfest issues for contribuition. Project:Release Process Project:Tool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature - Make meteor create more interactive.
7 participants