Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (35 loc) · 1.46 KB
/
Copy pathMakefile
File metadata and controls
49 lines (35 loc) · 1.46 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
# Thin wrapper — all logic lives in scripts/*.js and package.json.
# Works in any shell where make + node are available.
.PHONY: dev build test lint release tag dist version clean help major minor patch
# No-op targets so "make release minor" works
major minor patch:
@node -e ""
# Detect bump type
ifneq ($(filter major,$(MAKECMDGOALS)),)
BUMP := major
else ifneq ($(filter minor,$(MAKECMDGOALS)),)
BUMP := minor
else
BUMP := patch
endif
.DEFAULT_GOAL := help
help:
@node -e "console.log(['',' WinRaid','',' Dev',' make dev Start electron-vite dev server',' make build Build renderer + main',' make test Run Vitest unit tests',' make lint Run ESLint','',' Release (CI builds + publishes on the pushed v* tag)',' make release Lint+test gate, bump patch, tag, push',' make release minor Bump minor version',' make release major Bump major version',' make tag Bump, tag, push (no quality gate)',' make dist Build installer locally (smoke test)','',' Helpers',' make version Show latest release tag',' make clean Remove build output',''].join('\n'))"
dev:
npx electron-vite dev
build:
npx electron-vite build
test:
npx vitest run
lint:
npx eslint src electron
release:
node scripts/release.js $(BUMP)
tag:
node scripts/tag.js $(BUMP)
dist:
npm run dist
version:
node scripts/version.js
clean:
node scripts/clean.js