Skip to content

[Question] Why a CLI over a Yeoman generator? #1119

@ctrlplusb

Description

@ctrlplusb

Not intended to sound snarky. My question comes from a place of interest and ignorance.

Activity

gaearon

gaearon commented on Nov 30, 2016

@gaearon
Contributor

I don’t know enough about Yeoman but we had a few constraints:

  • The "ejection" feature. It seems a bit tricky to implement on top of a generator that wasn’t designed for it in the first place.
  • There is no intention of code generation. We give you a project with npm start, npm test and npm run build, and we don't want to make an impression that we will scaffold any code for you.
  • Versioning. We want a very particular way of versioning: Create React App is a global CLI but it uses the latest version of react-scripts (which is the actual code). So you don't need to update the CLI when starting new projects: you always use latest react-scripts by default. For this to work, we need CLI to call init.js inside react-scripts so that we can safely change it in future versions without breaking backwards compat with the CLI.

I’m not sure if Yeoman satisfies them and we didn’t want to lock ourselves into something that would be hard to change. Does this help?

ctrlplusb

ctrlplusb commented on Dec 1, 2016

@ctrlplusb
Author

Yes, thank you for taking the time to answer this @gaearon. :)

Closing...

locked and limited conversation to collaborators on Jan 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @gaearon@ctrlplusb

        Issue actions

          [Question] Why a CLI over a Yeoman generator? · Issue #1119 · facebook/create-react-app