-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
70 lines (57 loc) · 1.41 KB
/
Makefile
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
# Include external make configurations
include .make/tag.mk
# Application name
APP_NAME := ts-ws-client
# Set default target to help
.DEFAULT_GOAL := help
# Remove dist folder
rmdist:
@echo "Removing dist folder..."
@pnpm rmdist
# Clean project
clean:
@echo "Cleaning project..."
@pnpm clean
# Build the package
build: rmdist
@echo "Building package..."
@pnpm build
# Run tests
test:
@echo "Running tests..."
@pnpm test
# Update version
version-up:
@echo "Updating version..."
@pnpm version-up
# Run pre-commit checks
pre:
@echo "Running pre-commit checks..."
@pnpm pre-commit
# Run linter
lint:
@echo "Running linter..."
@pnpm lint
# Format code
format:
@echo "Formatting code..."
@pnpm format
# Run all checks
check: lint format
@echo "Running all checks..."
@pnpm check
# Help target
help:
@echo "Available targets:"
@echo " clean - Clean project (remove node_modules and lock file)"
@echo " rmdist - Remove dist folder"
@echo " build - Build the package"
@echo " test - Run the test suite"
@echo " version-up - Update version"
@echo " pre - Run pre-commit checks"
@echo " lint - Run linter"
@echo " format - Format code"
@echo " check - Run all checks (lint and format)"
@echo " help - Show this help message"
# Declare phony targets
.PHONY: clean rmdist build test version-up pre lint format check help