forked from BrainTease/Brain-Storm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (32 loc) · 1.04 KB
/
Makefile
File metadata and controls
39 lines (32 loc) · 1.04 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
.PHONY: setup dev test build lint clean help
help:
@echo "Brain-Storm Makefile"
@echo "--------------------"
@echo "make setup - Install dependencies and build contracts"
@echo "make dev - Start backend and frontend in development mode"
@echo "make test - Run all tests (backend, frontend, contracts)"
@echo "make build - Build all apps (production mode)"
@echo "make lint - Run linter on all apps"
@echo "make clean - Remove node_modules and target files"
setup:
@echo "==> Installing Node.js dependencies..."
npm install
@echo "==> Building smart contracts..."
rustup target add wasm32-unknown-unknown
./scripts/build.sh
@echo "==> Setup complete!"
dev:
@echo "==> Starting backend and frontend..."
npm run dev:backend & npm run dev:frontend
test:
@echo "==> Running all tests..."
npm run test
build:
@echo "==> Building for production..."
npm run build
lint:
@echo "==> Running lint checks..."
npm run lint
clean:
@echo "==> Cleaning project..."
rm -rf node_modules apps/backend/dist apps/frontend/.next target