Steps for alternative testing workflow on the cli
This commit is contained in:
parent
a2d58203b8
commit
539c4d0f64
|
@ -106,3 +106,15 @@ After upgrading to Node 4 you might also need to reinstall npm. What worked for
|
|||
$ nvm install npm
|
||||
|
||||
See the [nvm guide](https://github.com/creationix/nvm#usage) for more info.
|
||||
|
||||
### Alternative workflow
|
||||
|
||||
If you don't want to install Sinopia you could still test changes done on the cli by creating a sample project and installing your checkout of `react-native` on that project instead of downloading it from npm. The simplest way to do this is by:
|
||||
|
||||
$ npm init AwesomeProject
|
||||
$ cd AwesomeProject
|
||||
$ npm install $REACT_NATIVE_GITHUB
|
||||
|
||||
Note that `REACT_NATIVE_GITHUB` should point to the directory where you have a checkout.
|
||||
|
||||
Also, if the changes you're making get triggered when running `react-native init AwesomeProject` you will want to tweak the global installed `react-native-cli` library to install the local checkout instead of downloading the module from npm. To do so just change this [line](https://github.com/facebook/react-native/blob/master/react-native-cli/index.js#L191) and refer the local checkout instead.
|
||||
|
|
Loading…
Reference in New Issue