-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (23 loc) · 797 Bytes
/
Makefile
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
ROOT_DIR := .
FRONTEND_DIR := blockpost-frontend
OPERATOR_DIR := operator/cmd
SCRIPT_DIR := contracts/script
all:
$(MAKE) operator &
$(MAKE) frontend
frontend:
konsole --hold -e "bash -c 'cd $(FRONTEND_DIR) && npm start; exec bash'"
operator:
@dotenv -f .env -- sh -c 'cd $(OPERATOR_DIR) && go run main.go --config operator.anvil.yaml'
npm_build:
cd $(FRONTEND_DIR) && npm install
deploy:
cd $(SCRIPT_DIR) && forge script BlockPostDeployer.s.sol --rpc-url https://ethereum-holesky-rpc.publicnode.com --private-key $$PRIVATE_KEY --broadcast
.PHONY: all operator frontend deploy npm_build
SOL_TEST := contracts/test
OPERATOR_ROOT := operator
contract_tests:
cd $(SOL_TEST) && forge test
operator_tests:
cd $(OPERATOR_ROOT) && go test
runAllTests: contract_tests operator_tests