-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (33 loc) · 897 Bytes
/
Makefile
File metadata and controls
44 lines (33 loc) · 897 Bytes
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
# Development commands using Docker
.PHONY: build dev shell test lint format all clean
# Build the development container
build:
docker compose build dev
# Start a development shell
shell: build
docker compose run --rm dev
# Run tests
test: build
docker compose run --rm dev npm test
# Run linter
lint: build
docker compose run --rm dev npm run lint
# Format code
format: build
docker compose run --rm dev npm run format
# Check formatting
format-check: build
docker compose run --rm dev npm run format:check
# Build the action (compile TypeScript)
build-action: build
docker compose run --rm dev npm run build
# Run all checks (format, lint, test, build)
all: build
docker compose run --rm dev npm run all
# Install/update dependencies
install: build
docker compose run --rm dev npm install
# Clean up
clean:
docker compose down --rmi local
rm -rf node_modules dist coverage