@mangrovedao/commonlib.js
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Common JavaScript and TypeScript library code employed by multiple Mangrove packages.

Usage

This package is not intended for use outside of the Mangrove monorepo.

Inside the monorepo, dependencies to this package can be added using the workspace:* version range, e.g:

$ yarn add "@mangrovedao/commonlib.js@workspace:*"

which will add

  "dependencies": {
    "@mangrovedao/commonlib.js": "workspace:*"
  }

to package.json.

Development

First, clone the repo and install the prerequisites for the monorepo described in the root README.md.

Next, run the following commands:

$ cd <Mangrove monorepo>/packages/commonlib.js
$ yarn install   # Sets up the Mangrove monorepo and install dependencies
$ yarn build     # Builds the commonlib and its dependencies

Tests are executed with

$ yarn test

When making changes in this library, you should build and test the whole repo, to ensure that packages depending on commonlib.js still work:

$ cd <Mangrove monorepo>
$ yarn build
$ yarn test

Readme

Keywords

Package Sidebar

Install

npm i @mangrovedao/commonlib.js

Weekly Downloads

2

Version

1.0.0

License

BSD-2-Clause

Unpacked Size

41.5 kB

Total Files

31

Last publish

Collaborators

  • maxencerb
  • danielrx
  • mangrove-automation