Skip to content

blocknative/O2-Wallets

Repository files navigation

O2-Wallets

Packages @latest Version Size Description
@o2/injected-wallets - - Injected wallet modules
@o2/types - - Shared Typescript types
@o2/common - - Utils common to all packages

Contributing


git clone [email protected]:blocknative/O2-Wallets.git
cd O2-Wallets
yarn
yarn build

At the point the deps are installed and the modules are built and ready for integration.

Local integration

Using yarn link you can integrate these packages locally. First run yarn link in each module:

$(cd packages/types; yarn link)
$(cd packages/common; yarn link)
$(cd packages/injected; yarn link)

Note: the $() syntax allows us to execute the command without changing the current directory.

Now that these packages are linked we can go into our app and link them:

cd my-app
yarn link @o2/injected-wallets
yarn link @o2/common
yarn link @o2/types

Development:

Running yarn dev in the root package will run yarn dev in all subpackages which will rebuild on changes.

Adding shared deps

Adding a “common” dependency to ALL packages

yarn add dep-name -W

Adding a Local Sibling Dependency to a Specific Package:

lerna add sibling-dep --scope=dependant-package

Example:

lerna add @o2/types --scope=@o2/injected-wallets

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published