forked from Shonen-Labs/StarkFinder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
23 lines (15 loc) · 964 Bytes
/
makefile
File metadata and controls
23 lines (15 loc) · 964 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
help:
@echo "StarkFinder Development Commands"
@echo "make install - Install dependencies and build contracts"
@echo "make build - Build frontend and Cairo contracts"
@echo "make test - Run Cairo contract tests"
install:
# Install root Node dependencies
npm install || echo "⚠️ Root npm install failed"
cd client && npm install || echo "⚠️ Frontend npm install failed"
if command -v scarb >/dev/null 2>&1; then cd contracts && scarb build; else echo "⚠️ Scarb not found. Skipping contract build."; fi
build:
# Build frontend
cd client && npm run build || echo "⚠️ Frontend build failed"
if command -v scarb >/dev/null 2>&1; then cd contracts && scarb build; else echo "⚠️ Scarb not found. Skipping contract build."; fi
if command -v scarb >/dev/null 2>&1; then cd contracts && scarb test; else echo "⚠️ Scarb not found. Please install Scarb to run tests: https://docs.swmansion.com/scarb/download.html"; fi