Skip to content

Commit 1b28542

Browse files
authored
Merge pull request #20 from tokenhost/feat/cli-dev
CLI DX: add th dev (interactive + non-interactive end-to-end workflow)
2 parents 12dec2a + c4f9daa commit 1b28542

3 files changed

Lines changed: 989 additions & 558 deletions

File tree

Readme.md

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,14 @@ Turns a Token Host Schema (THS) document into deterministic Solidity artifacts a
1212

1313
## Quickstart (New Pipeline)
1414

15-
Prereqs: Node >= 20, pnpm (repo uses `packageManager`), Foundry optional unless deploying.
15+
Prereqs: Node >= 20, pnpm (repo uses `packageManager`), Foundry required for local anvil (`th dev` default) and for `th verify`.
1616

1717
```bash
1818
pnpm install
1919
pnpm th doctor
2020

21-
# Validate + build artifacts (Solidity + compile + manifest)
22-
pnpm th validate apps/example/job-board.schema.json
23-
pnpm th build apps/example/job-board.schema.json --out artifacts/job-board
24-
25-
# In another terminal:
26-
anvil
27-
28-
# Deploy to local anvil (uses Anvil's default dev key unless ANVIL_PRIVATE_KEY is set)
29-
pnpm th deploy artifacts/job-board --chain anvil
30-
31-
# Serve the generated UI locally (no Python required)
32-
pnpm th preview artifacts/job-board
21+
# One command: validate + build + start anvil + deploy + serve UI
22+
pnpm th dev apps/example/job-board.schema.json
3323

3424
# Open http://127.0.0.1:3000/
3525
# MetaMask: approve switching/adding the Anvil network (chainId 31337).

0 commit comments

Comments
 (0)