-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
116 lines (87 loc) · 1.87 KB
/
Makefile
File metadata and controls
116 lines (87 loc) · 1.87 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
.PHONY: help install dev build start test lint format clean docker-build docker-run docker-dev
# Default target
help:
@echo "Available commands:"
@echo " install - Install dependencies"
@echo " dev - Start development server"
@echo " build - Build for production"
@echo " start - Start production server"
@echo " test - Run tests"
@echo " test-watch - Run tests in watch mode"
@echo " lint - Run linter"
@echo " format - Format code"
@echo " clean - Clean build artifacts"
@echo " docker-build - Build Docker image"
@echo " docker-run - Run Docker container"
@echo " docker-dev - Start development with Docker"
@echo " db-migrate - Run database migrations"
@echo " db-seed - Seed database"
@echo " db-reset - Reset database"
# Install dependencies
install:
npm install
# Development
dev:
npm run dev
# Build
build:
npm run build
# Start production server
start:
npm start
# Testing
test:
npm test
test-watch:
npm run test:watch
test-coverage:
npm run test:coverage
# Code quality
lint:
npm run lint
lint-fix:
npm run lint:fix
format:
npm run format
type-check:
npm run type-check
# Database
db-migrate:
npm run db:migrate
db-seed:
npm run db:seed
db-reset:
npm run db:reset
# Clean
clean:
npm run clean
# Docker
docker-build:
docker build -t rechain-dao .
docker-run:
docker run -p 3000:3000 rechain-dao
docker-dev:
docker-compose -f docker-compose.dev.yml up
docker-prod:
docker-compose -f docker-compose.yml up
docker-stop:
docker-compose down
# Security
security-audit:
npm audit
security-scan:
npm run security:scan
# Documentation
docs-generate:
npm run docs:generate
docs-serve:
npm run docs:serve
# Release
release:
npm run release
release-major:
npm run release:major
release-minor:
npm run release:minor
release-patch:
npm run release:patch