-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add postlink scripts #450
Add postlink scripts #450
Conversation
…into add-postlink-hooks
"code-push": "1.8.0-beta" | ||
"code-push": "1.8.0-beta", | ||
"inquirer": "^1.1.2", | ||
"plist": "^1.2.0" |
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.
Should we pin these dependencies too?
@@ -110,6 +114,8 @@ In order to accommodate as many developer preferences as possible, the CodePush | |||
|
|||
*Note: If you don't already have RNPM installed, you can do so by simply running `npm i -g rnpm` and then executing the above command. If you already have RNPM installed, make sure you have v1.9.0+ in order to benefit from this one step install.* | |||
|
|||
2. You will be prompted for the deployment key you'd like to use. If you don't already have it, you can retreive this value by running `code-push deployment ls <appName> -k`, or you can choose to ignore it (by simply hitting `<ENTER>`) and add it in later. To get started, we would recommend just using your `Staging` deployment key, so that you can test out the CodePush end-to-end. |
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.
retrieve
Would it be worth doing something to check that the app version is semver and/or allow them to change it? |
I'm hesitant.. mainly a) I don't see that as part of linking and b) not everyone uses RNPM/ |
This PR adds postlink scripts that RNPM will automatically call when executing
react-native link react-native-code-push
orrnpm link react-native-code-push
so as to simplify setup.Once facebook/react-native#9157 goes through, we can also add
postunlink
scripts as well to simplify removal of our plugin.