Skip to content

Commit

Permalink
Steps for alternative testing workflow on the cli
Browse files Browse the repository at this point in the history
  • Loading branch information
martinbigio committed Oct 28, 2015
1 parent a2d5820 commit 539c4d0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions react-native-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit 539c4d0

Please sign in to comment.