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

Move rcbilling-demo to purchases-js #32

Merged
merged 9 commits into from
Jan 17, 2024

Conversation

tonidero
Copy link
Contributor

@tonidero tonidero commented Jan 16, 2024

Motivation / Description

We wanted to unify the rcbilling-demo repo into purchases-js. This will help with development, since we can update usages of API changes within the same repo/PR and have tests using both together. Additionally, this will be helpful to write E2E tests.

Note: This PR is based on #24 and the rcbilling-demo changes include the changes in https://github.com/RevenueCat/rcbilling-demo/pull/24 to try to avoid collisions.

Changes introduced

Linear ticket (if any)

Additional comments

@@ -0,0 +1,58 @@
name: Test (rcbilling-demo)
Copy link
Contributor Author

@tonidero tonidero Jan 16, 2024

Choose a reason for hiding this comment

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

This was brought over from the rcbilling-demo repo. I think we should unify CI systems but was running into some issues getting AWS commands to work in azure pipelines and wanted to get this merged earlier to avoid conflicts later. I just renamed the jobs so it's clear it refers to the billing demo for the tests/deploy. I'm planning to unify these systems later

run: |
npm run build
env:
CI: true
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 had to add these 2 commands first since now the demo app is pointing to the local version of purchases-js

*.test.d.ts
examples/*
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We don't want to include the rcbilling-demo app in the published package

"prettier:ci": "prettier --check ."
},
"dependencies": {
"@revenuecat/purchases-js": "file:../..",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note that we are now pointing to the local version of the package.


### Development

- Install and build dependencies in the root `purchases-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've updated these steps since now we need to make sure the library is built and updated before running the demo app.

@tonidero tonidero marked this pull request as ready for review January 16, 2024 18:14
@tonidero tonidero requested a review from a team January 16, 2024 18:15
@tonidero tonidero changed the title Move rcbilling demo to purchases js Move rcbilling-demo to purchases-js Jan 16, 2024
@tonidero tonidero force-pushed the move-rcbilling-demo-to-purchases-js branch from 7a0798a to 8d6fbe5 Compare January 16, 2024 18:16
Base automatically changed from franco/experiment/embedded-ui to main January 16, 2024 19:13
@tonidero tonidero force-pushed the move-rcbilling-demo-to-purchases-js branch from 8d6fbe5 to 1fe7b89 Compare January 16, 2024 19:16
Co-authored-by: Franco Correa <4152942+francocorreasosa@users.noreply.github.com>
@tonidero tonidero merged commit 81e753c into main Jan 17, 2024
2 checks passed
@tonidero tonidero deleted the move-rcbilling-demo-to-purchases-js branch January 17, 2024 09: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.

2 participants