Description
The React Native CLI uses Yeoman generators for 'react-native init'. Yeoman has tons of dependencies and significantly adds to the time it takes to install React Native and to the size of node_modules
.
We want to rewrite the code so it doesn't make use of Yeoman, so that we can remove the Yeoman dependency from package.json.
Here are the templates we currently process with Yeoman:
https://github.com/facebook/react-native/tree/master/local-cli/generator-android
https://github.com/facebook/react-native/tree/master/local-cli/generator-ios
We can probably use something much simpler, such as lodash templates or simple string replace :) Our templates are super simple, we just replace a few placeholders.
One thing to think about is also react-native upgrade
which uses Yeoman's fancy features for conflict resolution (shows which files would be overwritten by the upgrade). It shouldn't be hard to build something similar (simpler is fine).