1.0.0 • Published 1 year ago

swifydex-analytics v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

SwifyDex Labs Analytics

The swifydex-analytics package is a npm package of React components and functions used to provide Analytics capability to Uniswap Labs products.

This package is intended to be used with the swifydex-analytics-events package, which provides the constant definitions used inside this package.

Installation

Install via npm or yarn.

yarn add swifydex-analytics
npm i --save swifydex-analytics

Make sure the environment variable REACT_APP_STAGING is set to false in production.

Development

When making changes to this package, first ensure your changes are designed as needed by installing your changes from a tarball. To generate the tarball (with version 0.0.1 to indicate a test version) use the following command:

yarn tarball

To install in the relevant repo, copy the tarball to the root of your project's package.json and run the following commands in your project's root:

# yarn
yarn cache clean
yarn add file:swifydex-analytics-dev.tgz

# npm
npm install swifydex-analytics-dev.tgz

Alternatively, you can install with a direct file reference from your local analytics repository.

Once you have verified your changes, submit a PR, merge your code, and install the package directly from npm to pick up the official changes.

1.0.0

1 year ago