1.4 KiB
1.4 KiB
Install and run
Shell scripts for local development environment setup and E2E testing.
Prerequisites
- Node.js 22+
- tmux
- Rust (optional, for cargo check)
Scripts
setup
Sets up the local development environment by running the same build steps as GitHub CI.
yarn ci setup [OPTIONS]
Build Steps:
- Check Node.js version (22+)
- Enable corepack
- Install dependencies (
yarn install --immutable) - Build CS packages (cait-sith WASM)
- Build Frost packages (frost-ed25519 WASM)
- Build internal packages
- Build SDK packages
- Run TypeScript typecheck
- Run Rust cargo check
Options:
| Option | Description |
|---|---|
--skip-rust |
Skip Rust cargo check |
--skip-typecheck |
Skip TypeScript typecheck |
-h, --help |
Show help message |
Examples:
# Full setup
yarn ci setup
# Quick setup (skip checks)
yarn ci setup --skip-rust --skip-typecheck
Typical Workflow
If you are not familiar with "tmux", please refer to the document at
internals/tmux/README.md.
First time setup (fresh clone):
./internals/ci/ci-setup.sh
./internals/tmux/tmux-e2e-start.sh --reset
Already set up, just start services:
./internals/tmux/tmux-e2e-start.sh
Stop all services:
./internals/tmux/tmux-e2e-stop.sh