https://github.com/blocknative/o2-wallets
https://github.com/blocknative/o2-wallets
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/blocknative/o2-wallets
- Owner: blocknative
- Created: 2021-09-30T21:59:08.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-15T17:18:43.000Z (over 4 years ago)
- Last Synced: 2025-05-20T03:11:59.686Z (11 months ago)
- Language: TypeScript
- Size: 389 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# O2-Wallets
| Packages | `@latest` Version | Size | Description |
| ---------------------------------------- | ----------------- | ---- | ---------------------------- |
| [@o2/injected-wallets][injected-wallets] | - | - | Injected wallet modules |
| [@o2/types][types-wallets] | - | - | Shared Typescript types |
| [@o2/common][common-wallets] | - | - | Utils common to all packages |
# Contributing
```
git clone git@github.com: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:
```bash
$(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:
```bash
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
```bash
yarn add dep-name -W
```
### Adding a Local Sibling Dependency to a Specific Package:
```bash
lerna add sibling-dep --scope=dependant-package
```
Example:
```bash
lerna add @o2/types --scope=@o2/injected-wallets
```
```bash
```
[injected-wallets]: ./packages/injected
[types-wallets]: ./packages/types
[common-wallets]: ./packages/common