Skip to content

ambrosus/ui-library

Repository files navigation

@airdao/ui-library

Install library to dapp:

Install package

yarn add @airdao/ui-library
npm install @airdao/ui-library

Install peer dependencies

yarn add wagmi@2.12.16 viem@2.21.15 @tanstack/react-query@5.51.24
npm install wagmi@2.12.16 viem@2.21.15 @tanstack/react-query@5.51.24

Development

Note: Use npm to install library dependencies or make sure to install peer dependencies

Installation and testing

# Install Yalc globally if not installed
yarn add global yalc 

# Build library before linking
yarn build

# Publish library to Yalc
yalc publish

# Add library to dapp
yalc add @airdao/ui-library

Before release

For library

  • Build before pushing to make sure it works
  • Bump version in package.json

For dapp

  • Remove .yalc library from dapp (or add it to .gitignore)
  • Reinstall library from npm