/swap-orders-lib

Gelato swap orders library

Primary LanguageTypeScript

GelatoNetwork Orders Library monorepo

Development

Add a new react-component-library range-orders-react

mkdir packages/range-orders-react
cd packages/range-orders-react
yarn init
lerna add @gelatonetwork/limit-orders-lib --scope=@gelatonetwork/range-orders-react #asuming `range-orders-react` also uses `limit-orders-lib`
yarn build

Add newly created component to example

cd packages/range-orders-react
yarn link
cd ../../example
yarn link @gelatonetwork/range-orders-react

Build specific package

yarn workspace @gelatonetwork/limit-orders-react build

Publish packages

yarn publish:lerna # publish latest versions
yarn publish:lerna:next # publish next versions