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

Update building.md with updated instructions, point README to building.md #4004

Merged
merged 6 commits into from
Oct 11, 2021

Conversation

tomduncalf
Copy link
Contributor

@tomduncalf tomduncalf commented Oct 6, 2021

What, How & Why?

The existing instructions on how to setup and build the project are out of date, and are somewhat duplicated between README.md and building.md, each with slightly different methods of doing things.

This PR moves all the instructions into building.md and points to that from the README, and updates the instructions to reflect changes in the way the app should now be built – e.g. using the scripts rather than invoking Gradle directly, some homebrew related changes as packages have moved, etc. The instructions have also been tidied up a bit so they are in a logical order.

This should ensure that new contributors have a smoother onboarding experience.

Note to reviewers: reading through the complete, rendered building.md using "View File" is probably easier than comparing the diffs!

☑️ ToDos

  • Confirm that we are still happy with the "Workflow Suggestion" section (conclusion: split out existing workflow to its own file and link to both that and the watchman workflow)
  • 📝 Changelog entry
  • 📝 Compatibility label is updated or copied from previous entry
  • 🚦 Tests
  • 📝 Public documentation PR created or is not necessary
  • 💥 Breaking label has been applied or is not necessary

@tomduncalf tomduncalf force-pushed the td/update-setup-notes branch 3 times, most recently from 537cac8 to 3f2613d Compare October 6, 2021 16:03
@tomduncalf tomduncalf force-pushed the td/update-setup-notes branch from 3f2613d to 61f06ae Compare October 6, 2021 16:17
@tomduncalf tomduncalf changed the title Update building.md with updated instructions, point README to it Update building.md with updated instructions, point README to building.md Oct 6, 2021
@tomduncalf tomduncalf requested a review from kraenhansen October 6, 2021 16:48
@tomduncalf tomduncalf marked this pull request as ready for review October 6, 2021 16:48
@tomduncalf tomduncalf requested review from kneth and takameyer October 7, 2021 08:04
Copy link
Member

@kraenhansen kraenhansen left a comment

Choose a reason for hiding this comment

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

I like the general approach 👍

Merging this without integrating fixes for my comments would be okay as well and we can iterate from there.

contrib/building.md Show resolved Hide resolved
contrib/building.md Show resolved Hide resolved
contrib/building.md Outdated Show resolved Hide resolved
contrib/building.md Show resolved Hide resolved
@tomduncalf tomduncalf force-pushed the td/update-setup-notes branch from e341f2d to eada617 Compare October 7, 2021 10:11
Copy link
Contributor

@kneth kneth left a comment

Choose a reason for hiding this comment

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

Great job. Nice to put the build and test instructions in one place. And only good to see README.md becoming a bit shorter which will increase the likelihood that people will actually read it.

contrib/building.md Show resolved Hide resolved
Copy link
Contributor

@takameyer takameyer left a comment

Choose a reason for hiding this comment

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

Nice work Tom! The docs just keep getting better and better :D

contrib/building.md Outdated Show resolved Hide resolved

This is one suggested workflow for testing your local changes to Realm JS against two sample apps, making use of a script to automatically copy any changes from the `realm-js` project into the two sample projects.

## Sample projects for testing changes
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we could highlight our React Native templates in here.

npx react-native init TsExample --template react-native-template-realm-ts
#or
npx react-native init JsExample --template react-native-template-realm-js

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wonder if this is the right place for highlighting them, given that this document is very specific to this flow with the watch script. Perhaps we could mention them in README.md more generally, and then a future enhancement is to rewrite the guide on development workflow, what do you think?

Copy link
Contributor Author

@tomduncalf tomduncalf Oct 8, 2021

Choose a reason for hiding this comment

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

How about this change to the README? 02ad469

contrib/guide-testing-with-sample-apps.md Show resolved Hide resolved
@tomduncalf tomduncalf force-pushed the td/update-setup-notes branch from cc2afe0 to dac007d Compare October 7, 2021 16:31
@cla-bot cla-bot bot added the cla: yes label Oct 8, 2021
@tomduncalf tomduncalf force-pushed the td/update-setup-notes branch from 22a1d97 to 02ad469 Compare October 8, 2021 09:39
@tomduncalf tomduncalf merged commit 99eb092 into master Oct 11, 2021
@tomduncalf tomduncalf deleted the td/update-setup-notes branch October 11, 2021 10:53
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants