You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
chitselb, ctrlplusb, jinalskothari, jakubrpawlowski, unowiz and 2 more
Activity
gaearon commentedon Nov 30, 2016
I don’t know enough about Yeoman but we had a few constraints:
npm start
,npm test
andnpm run build
, and we don't want to make an impression that we will scaffold any code for you.react-scripts
(which is the actual code). So you don't need to update the CLI when starting new projects: you always use latestreact-scripts
by default. For this to work, we need CLI to callinit.js
insidereact-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 commentedon Dec 1, 2016
Yes, thank you for taking the time to answer this @gaearon. :)
Closing...