From dd9bbb4bcabe5a308bc70fe2a82f5dc831721165 Mon Sep 17 00:00:00 2001 From: Martin Konicek Date: Wed, 26 Aug 2015 16:02:43 +0100 Subject: [PATCH] Update react-native-cli/CONTRIBUTING.md --- react-native-cli/CONTRIBUTING.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/react-native-cli/CONTRIBUTING.md b/react-native-cli/CONTRIBUTING.md index 571e8cf8c..5a4c8cb64 100644 --- a/react-native-cli/CONTRIBUTING.md +++ b/react-native-cli/CONTRIBUTING.md @@ -45,6 +45,8 @@ Now you can run sinopia by simply doing: Now we need to publish the two React Native packages to our local registry. To do this, we configure npm to use the new registry, unpublish any existing packages and then publish the new ones: react-native$ npm set registry http://localhost:4873/ + # Check that it worked: + react-native$ npm config list react-native$ npm unpublish --force react-native$ npm publish react-native$ cd react-native-cli/ @@ -74,4 +76,12 @@ These tests actually create a very similar setup to what is described above (usi Both of these types of tests also run on Travis both continuously and on pull requests. [sinopia]: https://www.npmjs.com/package/sinopia -[xctool]: https://github.com/facebook/xctool \ No newline at end of file +[xctool]: https://github.com/facebook/xctool + +## Clean up + +To unset the npm registry, do: + + $ npm config delete registry + # Check that it worked: + $ npm config list