Skip to content

timewave-computer/valence-protocol-ts

Repository files navigation

Valence Protocol Turborepo

This repository is a Turborepo monorepo managed with pnpm.

Prerequisities

  1. NixOs This codebase uses Nix to create a reproducible development environment. https://nixos.org/download/

Getting Started

  1. Install dependencies:

    nix develop

    This will create an isolated development environment. Run project commands within the nix shell.

  2. Run builds:

    turbo build

    This will run the build pipeline for all packages and apps using Turborepo.

  3. Run linting:

    turbo lint

    Husky will automatically format files on commit. Run manually on staged files with pnpm lint-staged, or pnpm prettier --write . to format all.

  4. Run tests:

    turbo test

Adding Packages or Apps

  • Place new packages in the packages/ directory.
  • Place new apps in the apps/ directory.
  • Each package or app should have its own package.json.

Useful Turborepo Commands

  • turbo build — Run the build pipeline across the monorepo
  • turbo lint — Run linting across the monorepo
  • turbo test — Run tests across the monorepo

For more, see the Turborepo docs and pnpm docs.

Working with turborepo

Add dependency to a package

pnpm install <X> --filter @valence-protocol/domain-clients-core

pnpm install <X> --filter @valence-protocol/domain-clients-react

Build a package

turbo build --filter @valence-protocol/domain-clients-core

turbo build --filter @valence-protocol/domain-clients-react

Run apps

Start apps in development mode.

turbo dev

turbo dev --filter @valence-protocol/domain-clients-example

About

Typescript libraries for interacting with blockchains across ecosystems

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages