Install Node
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
nvm installInstall pnpm
corepack enable pnpm
corepack use pnpm@9.0.2Install Dependencies & Build
pnpm i
pnpm nx run-many -t buildEach package contains the following tasks:
buildlintlint:fixtypechecktest
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>:lintTypechecking
# Typecheck all packages
pnpm nx run-many -t typecheck
# Typecheck a single package
pnpm nx run <package>:typecheckUnit Testing
# Run unit tests for all packages
pnpm nx run-many -t test
# Run unit tests for a single package
pnpm nx run <package>:testRun 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.