Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/graphprotocol/common-ts

Common TypeScript library for use in Graph Protocol components
https://github.com/graphprotocol/common-ts

Last synced: 6 days ago
JSON representation

Common TypeScript library for use in Graph Protocol components

Awesome Lists containing this project

README

        

# Common TypeScript library for Graph Protocol components

[![CI](https://github.com/graphprotocol/common-ts/workflows/CI/badge.svg)](https://github.com/graphprotocol/common-ts/actions?query=workflow%3ACI)
[![Coverage](https://codecov.io/gh/graphprotocol/common-ts/branch/master/graph/badge.svg)](https://codecov.io/gh/graphprotocol/common-ts)

## Usage / Documentation

More information can be found in the [`@graphprotocol/common-ts`
README](./packages/common-ts/).

## Development notes

### General notes

- This repository is managed using [Lerna](https://lerna.js.org/) and [Yarn
workspaces](https://classic.yarnpkg.com/en/docs/workspaces/).

- [Chan](https://github.com/geut/chan/tree/master/packages/chan) is used to
maintain [changelogs](./packages/common-ts/CHANGELOG.md).

### Install dependencies

```sh
yarn
```

### Build

```sh
yarn prepublish
```

### Test

The following environment variables need to be defined for the test suite to run:

- `POSTGRES_TEST_HOST`
- `POSTGRES_TEST_PORT` (optional)
- `POSTGRES_TEST_USERNAME`
- `POSTGRES_TEST_PASSWORD`
- `POSTGRES_TEST_DATABASE`

After that, the test suite can be run with:

```sh
yarn test
```

### Release

1. Update the changelog(s).
2. Run
```sh
yarn publish
```

## Copyright

Copyright © 2020 The Graph Foundation.

Licensed under the [MIT license](LICENSE).