-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmakefile
More file actions
73 lines (51 loc) · 1.16 KB
/
Copy pathmakefile
File metadata and controls
73 lines (51 loc) · 1.16 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
GREETING := Hello from RowSQL!
SHELL := /bin/bash
.PHONY: default backend-build frontend-build backend-dev frontend-dev dev build run doc test release lint clean install format
.ONESHELL:
default:
@echo "$(GREETING)"
generate-schema:
go run ./cmd/schema/main.go
backend-build:
go run ./cmd/schema/main.go
go build -ldflags="-s -w" -trimpath -o bin/rowsql ./cmd/server
frontend-build:
cd ./frontend && pnpm run build
backend-dev:
air -c air.toml
frontend-dev: generate-schema
cd ./frontend/ && pnpm run dev
dev:
$(MAKE) -j2 frontend-dev backend-dev
build: doc frontend-build backend-build
echo "build was successful"
run: build
./bin/rowsql
doc:
go run ./cmd/schema/...
test:
go test ./... -failfast
release:
goreleaser release --clean --snapshot
release-full:
goreleaser release
lint:
golangci-lint run
cd ./frontend && pnpm lint
lint-staged:
cd frontend && pnpx lint-staged
clean:
rm -rf dist/
rm -rf bin/
rm -rf tmp/
rm -rf frontend/dist/
rm -rf frontend/node_modules/
install:
go mod download
cd ./frontend && pnpm install
format:
gofmt -w .
cd ./frontend && pnpm run format
format-check:
gofmt -l .
cd ./frontend && pnpm run format:check