Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jamonholmgren
Copy link
Member

@jamonholmgren jamonholmgren commented Jun 3, 2021

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/cli aka react-native-cli and 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-rename on it -- since your app is probably not named HelloWorld.

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.

await copyBoilerplate(toolbox, {
boilerplatePath,
projectName,
excluded: ["node_modules", "yarn.lock", /.?\.expo\..?/],
Copy link
Member

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

Copy link
Member Author

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

Copy link
Member

@markrickert markrickert left a 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.

@jamonholmgren
Copy link
Member Author

Pushing up a fix for the test failure.

Copy link
Contributor

@bryanstearns bryanstearns left a comment

Choose a reason for hiding this comment

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

Looks good! 🎉

@jamonholmgren jamonholmgren merged commit a318803 into master Jun 3, 2021
@jamonholmgren jamonholmgren deleted the bypass-rn-cli branch June 3, 2021 18:10
infinitered-circleci pushed a commit that referenced this pull request Jun 3, 2021
## [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))
@infinitered-circleci
Copy link
Collaborator

🎉 This PR is included in version 7.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

5 participants