The official GoodDollar library to open up core functionalities to be used in your own application
The mono-repo currently holds:
- our SDK package
For Windows users, we recommend using WSL (Windows Subsystem for Linux) for better compatibility with Yarn Workspaces and symlinks.
This avoids common permission issues and path inconsistencies.
To install WSL (with default Ubuntu):
wsl --installAfter that, proceed with the general setup below.
To install dependencies and build the initial package(s)
yarnIt will install all dependencies necessary from all packages, and mostly hoist it to the root node_modules,
besides it looks for package.json files in the packages folder and run the build script.
To build single packages, run yarn in the root of that package.
To add a new package
mkdir packages/<package-name>
cd packages/<package-name>Add a package.json with the name prefixed @gooddollar/ For default typescript configuration extend the root tsconfig.build.json
For locally testing a package we suggest to install yalc
npm -i -g yalcthen publish your package (first-time)
yalc publishto update to a published package
yalc publish --pushLink the package in your application
yalc link @gooddollar/<package-name>We use Storybook to preview and test UI components in isolation.
To run Storybook locally:
yarn storybookFor enforcing a specific version across all packages add the dependency to the root package.json,
else add the dependency to specific package