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 public types into client directory #424

Merged
merged 1 commit into from
Feb 6, 2023
Merged

Conversation

sisou
Copy link
Member

@sisou sisou commented Aug 10, 2020

For testing of related branches across Wallet and Hub (as is the case now for the Bitcoin integration) we want to achieve the following goals:

  • Make the state of development testable outside the development environment, e.g. on testnet servers or via the branch selector
  • Avoid releasing unstable NPM packages for the Keyguard and Hub clients to be used in the Hub and Wallet respectively

Linking NPM dependencies locally only works in a local dev environment.
Linking to Github branches only works when the package.json of the dependency is in the root directory of the repo (which it is not for the clients).

A promising method seems to be to use https://gitpkg.now.sh/, which can build packages of subdirectories of Github repos - This worked great for the Keyguard Client, which works independently of the rest of the Keyguard code. The Hub Client (HubApi), however, is depending on lib files from the main Hub codebase, and thus cannot be built by gitpkg.

This PR moves all public request types that are used in the Hub Client (HubApi) into the client folder and adjusts the references from other files linking to it. This leaves the main Hub still buildable as usual, but has the added benefit that now gitpkg can build packages for the HubApi of development branches, avoiding unstable NPM releases.

@sisou sisou requested review from danimoh and mraveux August 10, 2020 08:02
@sisou sisou self-assigned this Aug 10, 2020
To avoid requiring main Hub src for building the client.
@sisou sisou merged commit cff4a7c into master Feb 6, 2023
@sisou sisou deleted the soeren/public-client-types branch February 6, 2023 13:31
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