From 44b145a2ba0bee8bd29daabfb357680c5a9bfb54 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 27 Apr 2020 15:04:17 +0200 Subject: [PATCH] add Travis --- .travis.yml | 14 ++++++++++++++ README.md | 1 + src/hooks/useConsume/useConsume.ts | 1 - src/index.ts | 3 ++- src/providers/index.ts | 1 + 5 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..42c34e6 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +dist: xenial +language: node_js +node_js: node + +cache: + npm: true + +script: + # will run `npm ci` automatically here + - npm test + # - npm run build + +notifications: + email: false diff --git a/README.md b/README.md index 053aa6b..2bd4c60 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ > 🎣 React hooks & components on top of squid.js +[![Build Status](https://travis-ci.com/oceanprotocol/react.svg?token=3psqw6c8KMDqfdGQ2x6d&branch=master)](https://travis-ci.com/oceanprotocol/react) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-7b1173.svg?style=flat-square)](https://github.com/prettier/prettier) [![js oceanprotocol](https://img.shields.io/badge/js-oceanprotocol-7b1173.svg)](https://github.com/oceanprotocol/eslint-config-oceanprotocol) diff --git a/src/hooks/useConsume/useConsume.ts b/src/hooks/useConsume/useConsume.ts index 291031b..540d274 100644 --- a/src/hooks/useConsume/useConsume.ts +++ b/src/hooks/useConsume/useConsume.ts @@ -1,7 +1,6 @@ import { useState } from 'react' import { DID } from '@oceanprotocol/squid' import { useOcean } from '../../providers' -import { AgreementData } from '@oceanprotocol/squid/dist/node/keeper/contracts/managers' interface UseConsume { consume: (did: DID) => Promise diff --git a/src/index.ts b/src/index.ts index 6eceb45..6550c7e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,2 +1,3 @@ -export * from './hooks' export * from './providers' +export * from './hooks' +export * from './components' diff --git a/src/providers/index.ts b/src/providers/index.ts index 0cc537c..5e8bae6 100644 --- a/src/providers/index.ts +++ b/src/providers/index.ts @@ -1 +1,2 @@ export * from './OceanProvider' +export * from './Web3Provider'