forked from Akanimoh12/Stellar-Tipz
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (32 loc) · 1.22 KB
/
Copy pathMakefile
File metadata and controls
40 lines (32 loc) · 1.22 KB
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
.PHONY: help setup dev build test lint clean deploy-testnet
help:
@echo "Stellar-Tipz Development Commands"
@echo "================================="
@echo ""
@echo " make setup Install all dependencies (contract + frontend)"
@echo " make dev Start development servers"
@echo " make build Build everything (contract + frontend)"
@echo " make test Run all tests (contract + frontend)"
@echo " make lint Run all linters"
@echo " make clean Clean build artifacts"
@echo " make deploy-testnet Deploy contract to testnet"
@echo ""
setup:
cd contracts && cargo build --target wasm32-unknown-unknown --release
cd frontend-scaffold && npm install --legacy-peer-deps
dev:
cd frontend-scaffold && npm run dev
build:
cd contracts && cargo build --target wasm32-unknown-unknown --release
cd frontend-scaffold && npm run build
test:
cd contracts && cargo test 2>/dev/null || echo "No contract tests found"
cd frontend-scaffold && npm run test -- --run
lint:
cd frontend-scaffold && npm run lint
clean:
cd contracts && cargo clean
cd frontend-scaffold && rm -rf build node_modules
rm -rf frontend-scaffold/build
deploy-testnet:
./scripts/deploy-testnet.sh --build