WIP This is a work in progress it is not ready to be consumed!
Install Node
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
nvm install
Instal pnpm
corepack enable pnpm
corepack use [email protected]
Install Dependencies & Build
pnpm i
pnpm nx run-many -t build
Each package contains the following tasks:
build
lint
lint:fix
typecheck
test
You can run these tasks individually in a single package or across all packages.
Linting
# Lint all packages
pnpm nx run-many -t lint
# Lint a single package
pnpm nx run <package>:lint
Typechecking
# Typecheck all packages
pnpm nx run-many -t typecheck
# Typecheck a single package
pnpm nx run <package>:typecheck
Unit Testing
# Run unit tests for all packages
pnpm nx run-many -t test
# Run unit tests for a single package
pnpm nx run <package>:test
Run the CLI
pnpm nx run cli:dev <command>
You can override the RPC URL by setting the {name}_RPC_URL
environment variable.
For example, lets say we wanted to override OP & Base Mainnet we could do.
OP_RPC_URL=...
BASE_RPC_URL=...
It uses the keys that exist in the superchain registry.