Skip to content
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

Merged
merged 6 commits into from
Aug 11, 2016
Merged

Add postlink scripts #450

merged 6 commits into from
Aug 11, 2016

Conversation

geof90
Copy link
Contributor

@geof90 geof90 commented Aug 2, 2016

This PR adds postlink scripts that RNPM will automatically call when executing react-native link react-native-code-push or rnpm 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.

"code-push": "1.8.0-beta"
"code-push": "1.8.0-beta",
"inquirer": "^1.1.2",
"plist": "^1.2.0"
Copy link
Contributor

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.
Copy link
Contributor

Choose a reason for hiding this comment

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

retrieve

@richardhuaaa
Copy link
Contributor

Would it be worth doing something to check that the app version is semver and/or allow them to change it?

@geof90
Copy link
Contributor Author

geof90 commented Aug 5, 2016

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/react-native link so its not going to help everyone. If anything, I feel like we could display a warning when they use release-react.

@geof90 geof90 merged commit 5ab949a into master Aug 11, 2016
@richardhuaaa richardhuaaa deleted the add-postlink-hooks branch October 12, 2016 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants