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

fix: improve providing project name in init command #2071

Merged
merged 3 commits into from
Sep 19, 2023

Conversation

szymonrybczak
Copy link
Collaborator

Summary:

Closes #2063

Test Plan:

  1. Clone the repository and do all the required steps from the Contributing guide
  2. Run this command:
node /path/to/react-native-cli/packages/cli/build/bin.js init 

Should prompt user for the project name.

Checklist

  • Documentation is up to date to reflect these changes.
  • Follows commit message convention described in CONTRIBUTING.md

@szymonrybczak szymonrybczak changed the title fix: improve providing project name fix: improve providing project name in init command Sep 11, 2023
const {projName} = await prompts({
type: 'text',
name: 'projName',
message: 'What is the project name?',
Copy link
Member

Choose a reason for hiding this comment

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

Would that wording make sense?

Suggested change
message: 'What is the project name?',
message: 'How would you like to name the app?',

Also, how about adding a hint guiding the user on what is about to happen? Something like:

New app will be initialized in the directory of the same name. Android and iOS projects will use this name for publishing setup

If this wording works, we can also reflect it in the command description

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Also, how about adding a hint guiding the user on what is about to happen? Something like:

Fun fact: when using type: 'text' prompt, we cannot show the hint 🙈

If this wording works, we can also reflect it in the command description

Done ✅

@szymonrybczak szymonrybczak force-pushed the fix/improve-providing-project-name branch from 1273a28 to 951b2de Compare September 18, 2023 20:20
@thymikee thymikee merged commit c50e077 into main Sep 19, 2023
@thymikee thymikee deleted the fix/improve-providing-project-name branch September 19, 2023 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Creating a project without a project name is a bad experience
2 participants