-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (34 loc) · 1021 Bytes
/
Makefile
File metadata and controls
43 lines (34 loc) · 1021 Bytes
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
43
.PHONY: help install dev build test deploy-local-v2 clean
help:
@echo "Available commands:"
@echo " make install - Install all dependencies"
@echo " make dev - Start development server"
@echo " make build - Build production app"
@echo " make test - Run contract tests"
@echo " make anvil - Start local Anvil fork"
@echo " make deploy-local-v2 - Deploy V2 contracts to local Anvil"
@echo " make clean - Clean build artifacts"
install:
bun install
cd contract && forge install
dev:
cd app && bun dev
build:
cd app && bun run build
test:
cd contract && forge test -vvv
anvil:
./scripts/start-anvil.sh
deploy-local-v2:
./scripts/deploy-local-v2.sh
clean:
rm -rf node_modules
rm -rf app/node_modules app/.next
rm -rf contract/cache contract/out
setup-env:
@if [ ! -f .env ]; then \
cp .env.template .env; \
echo "Created .env file from template. Please update with your values."; \
else \
echo ".env file already exists."; \
fi