This repository contains a collection of packages consumed by the white label apps, and all players running javascript. The idea is to enable as much code sharing as possible between the various apps and players.
rbm-ott-sdk. An auto generated integration to the ExposureApi. Includes data type definitions and methods for fetching data.app-sdk. A package managing data fetching and transformation for the white label apps, including an integration with the white label cms, and various utilities for generating carousels and components.app-sdk-react. A react wrapper based on react-query aroundapp-sdkandrbm-ott-sdk. Contains various hooks for for accessing data withing the react lifecycle.conventional-changelog-redbeemedia. A commandline tool for generating changelogs based on git history.etcd-clientA simple etcd-client. Used by the imagedeliveryservicenodejs-loggerSimple logger for nodejs services built around the winston-loggerexposure-sdkDEPRECATED. Replaced byrbm-ott-sdk. Data models and data fetching from the exposure api.whitelabel-sdkDEPRECATED. Replaced byapp-sdk. A package managing data type definitions and data fetching from the whitelabelinternalapiwhitelabel-reactDEPRECATED. replaced by app-sdk-react. A react wrapper based on react-query aroundwhitelabel-sdkandexposure-sdk. Contains various hooks for for accessing data withing the react lifecycle
Make sure you read Working with git before getting started.
npm install, this will install all dependencies and link together all packages in this reponpm run buildto build once andnpm run watchto rebuild on changesnpm install <path-to-this-repo>/packages/<package-to-work-with>run this from any project using these packages.npm run demoto run the demo appliction in the app-sdk-react package
To release and publish the NPM package to GitHub run the following in master branch:
npm run lerna:version This will create a specific commit message that will trigger a GitHub Actions workflow. The script will automatically detect updated packages and resolve any dependencies, it will also prompt you to select a version bump type, please follow the semver standard.