Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

makerdao/dai.js

Repository files navigation

DEPRECATED

Active maintenance of this library has been discontinued. Please visit https://chat.makerdao.com for support.

No Maintenance Intended

Dai.js SDK monorepo

Build Status Coverage Status

Uses Lerna. Automatically lints and prettifies code on commit.

Documentation

Please view README.md for each individual package (e.g. packages/dai) and/or docs.makerdao.com.

Getting started

yarn
curl https://dapp.tools/install | sh // Installs dapptools
yarn lerna bootstrap // Installs dependencies & links all local dependencies together
yarn build // builds each plugin for local use

Running the testchain

yarn testchain
yarn test:logs // get testchain logs

Running tests

yarn test
yarn test:integration
yarn test:build

Run yarn coverage to generate a test coverage report.

Creating a UMD build

See packages/dai/README.md for instructions.

Adding a package as dependency of another

 npx lerna add @makerdao/services-core packages/dai-plugin-mcd

Releasing a version

From the root of the project:

npx lerna version prerelease
npx lerna publish from-package

This will create a new version for all the packages and publish automatically, prerelease is for alpha versions.

If you want a release or another kind please check lerna version documentation.