39 lines
542 B
Makefile
Executable File
39 lines
542 B
Makefile
Executable File
.PHONY: proto build run clean setup test
|
|
|
|
# Generate TypeScript types from proto files
|
|
proto:
|
|
npm run proto
|
|
|
|
# Install dependencies
|
|
setup:
|
|
npm install
|
|
|
|
# Build the TypeScript code
|
|
build:
|
|
npm run build
|
|
|
|
# Run the smart contract (production)
|
|
run: build
|
|
npm start -- --config config.yaml
|
|
|
|
# Run in development mode (with ts-node)
|
|
dev:
|
|
npm run dev -- --config config.yaml
|
|
|
|
# Clean build artifacts
|
|
clean:
|
|
npm run clean
|
|
rm -rf node_modules
|
|
|
|
# Run tests
|
|
test:
|
|
npm test
|
|
|
|
# Lint code
|
|
lint:
|
|
npm run lint
|
|
|
|
# Format code
|
|
format:
|
|
npm run format
|