Initial commit: smart contract templates for bash, go, python, and typescript
This commit is contained in:
38
typescript/Makefile
Executable file
38
typescript/Makefile
Executable file
@@ -0,0 +1,38 @@
|
||||
.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
|
||||
Reference in New Issue
Block a user