-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjustfile
42 lines (32 loc) · 1011 Bytes
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# justfile
# Default recipe to run when just is called without arguments
default:
@just --list
# Install all dependencies (npm + forge)
install:
cd frontend && npm install
forge install
# Build the smart contracts using Forge
build-contracts:
forge build
# Serve the frontend using Vite
serve-frontend:
cd frontend && npm run dev
# Build supersim
build-supersim:
cd supersim && go build -o supersim cmd/main.go
# Run supersim
run-supersim:
./supersim/supersim
# Run supersim with --interop.autorelay flag
run-supersim-autorelay:
./supersim/supersim --interop.autorelay
# Build contracts, run supersim, and serve frontend in parallel
dev: build-contracts
just run-supersim & just serve-frontend
# Build contracts, run supersim with autorelay, and serve frontend in parallel
dev-autorelay: build-contracts
just run-supersim-autorelay & just serve-frontend
# Build both contracts and frontend for production
build: build-contracts
cd frontend && npm run build