-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Remove react-native-cli and copy over files ourselves #1697
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
Conversation
| await copyBoilerplate(toolbox, { | ||
| boilerplatePath, | ||
| projectName, | ||
| excluded: ["node_modules", "yarn.lock", /.?\.expo\..?/], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice! Excluding all expo files with a regex :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Took me a bit to remember if the wildcard should be ?. or .?. haha
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I like this method of making an ignite boilerplate project better than the old way anyways.
|
Pushing up a fix for the test failure. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! 🎉
## [7.0.1](v7.0.0...v7.0.1) (2021-06-03) ### Bug Fixes * **cli:** Remove react-native-cli and copy over files ourselves ([#1697](#1697) by [@jamonholmgren](https://github.com/jamonholmgren)) ([a318803](a318803))
|
🎉 This PR is included in version 7.0.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This was spurred on by some (apparently local?) problems I was having with the react-native CLI. However, I think it's worth a look even if react-native-cli works fine.
This PR removes our dependency on
@react-native-community/cliakareact-native-cliand instead undertakes copying over the boilerplate files ourselves (when not using Expo).Since the boilerplate is essentially already a runnable project, this is a pretty straightforward copy operation. We still do some cleanup by removing any stray Expo files that make it in and also run
npx react-native-renameon it -- since your app is probably not namedHelloWorld.It seems that most of the time spinning up a new Ignite app is still when it's
yarn installing. We probably need to spend time stripping our dependencies down a bit more.This shouldn't make any breaking changes to the boilerplate. This would also supplant #1696 if we merge it.