Skip to content

Commit 0acd149

Browse files
committed
make start-all
1 parent 9b9e2c7 commit 0acd149

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ bindings:
1111
# Generate new bindings
1212
@forge bind --bindings-path ./crates/bindings --crate-name bindings --overwrite \
1313
--alloy --alloy-version v0.9.2
14+
@$(CARGO) fmt --manifest-path ./crates/bindings/Cargo.toml
1415

1516
## build: building the project
1617
build: bindings wasi-build
@@ -56,6 +57,13 @@ test:
5657
setup:
5758
@forge install
5859

60+
## start-all: starting anvil and WAVS with docker compose
61+
start-all: clean-docker
62+
@trap 'kill $(jobs -pr)' EXIT
63+
# running anvil out of compose is a temp work around for MacOS
64+
@anvil &
65+
@docker compose up
66+
@wait
5967

6068
# Declare phony targets
6169
.PHONY: build build-release clean fmt bindings test

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,7 @@ cp ./lib/WAVS/packages/cli/cli.toml .
9090
# Docker Engine -> Settings -> Resources -> Network -> 'Enable Host Networking'
9191
# or
9292
# brew install chipmk/tap/docker-mac-net-connect && sudo brew services start chipmk/tap/docker-mac-net-connect
93-
94-
# TODO: this is a temp workaround for MacOS (running anvil out of compose)
95-
anvil
96-
97-
make clean-docker; docker compose up --build
93+
make start-all
9894
```
9995

10096
Upload your WAVS Service contract

0 commit comments

Comments
 (0)