-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (38 loc) · 1 KB
/
Makefile
File metadata and controls
49 lines (38 loc) · 1 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
.PHONY: help install build test lint lint-fix audit clean all
# Default target
help:
@echo "Available targets:"
@echo " make install - Install dependencies"
@echo " make build - Build the project"
@echo " make test - Run tests"
@echo " make lint - Run linter"
@echo " make lint-fix - Run linter with auto-fix"
@echo " make audit - Audit dependencies for vulnerabilities"
@echo " make clean - Clean build artifacts"
@echo " make all - Install, build, lint, check and test"
# Install dependencies
install:
npm ci
# Build the project
build:
npm run build
# Run tests
test:
npm test
# Run linter
lint:
npm run lint
# Check lint, test and audit
check: lint audit test
# Run linter with auto-fix
lint-fix:
npm run lint:fix
# Audit dependencies
audit:
npm audit
# Clean build artifacts
clean:
rm -rf dist/
# Run all checks (install, build, lint, check and test)
all: install build check clean
@echo "All checks passed!"